# Transaction Endpoints (api/Transaction) ### **General Definitions**
**Parameter** | **Description** |
baseurl | Sandbox - [https://test.xprizo.com/api](https://test.xprizo.com/api) Live- [https://wallet.xprizo.com/api](https://wallet.xprizo.com/api) |
apiversion | 1.0 |
apikey | API key For authentication |
**Request**
```text curl --location '{baseurl}/Transaction/CardDeposit' \ --header 'Accept: text/plain; x-api-version=1.0' \ --header 'Content-Type: application/json; x-api-version=1.0' \ --header 'x-api-version: {apiversion}' \ --header 'x-api-key: {apikey}' \ --data '{ "description":**Response (200)**
```text { "key": , "statusCode":**Parameter** | **Description** |
key | a unique identifier for the transaction |
statusCode | The number equivalent of the Status |
status | - Active – The transaction was completed successfully - Pending – The transaction was unable to be completed and needs further action - Rejected - The transaction was rejected - Redirect – (3DS) the user needs to be redirected to another URL to complete the transaction |
value | - Active – the value will show the description - Pending - the value will show the description - Rejected - the value will show the reason - Redirect - the value will show the URL to redirect to |
Errors
- **400** (Bad Request) The transaction could not be completed. The reason is returned Check the error, contact Xprizo, or fix the problem and try again. -**Message** | **Detail of Message** |
Invalid routing code | Your account does not have the routing code configured. Please contact the Xprizo team to have this set up. |
Invalid routing code (No Mid Set) | Your account does not have the MID configured. Please reach out to the Xprizo team to have this configured. |
A transaction with this reference already exists | You need to generate a new reference and try again |
A pending transaction with this reference already exists (Ref:652-1706532591287)) | The transaction is already available for this reference number with status pending, please check the status of this or try again with a new reference number |
Test Configuration For Routing Options
**Routing Option** | **Routing Code Prefix** | **Configuration** |
Option A | MAN | **Amount** - $1.00 or $2.00 - Active( 2DS Success) - $3.00 or $4.00 - Rejected - $5.00 or $6.00 - Rdirect (3DS Redirect URL) - $7.00 or greater - Rejected Case In 3DS |
**Request**
```text curl --location '{baseurl}/Transaction/RequestPayment' \ --header 'Accept: text/plain; x-api-version=1.0' \ --header 'Content-Type: application/json; x-api-version=1.0' \ --header 'x-api-version: {apiversion}' \ --header 'x-api-key: {apikey}' \ --data '{ "fromAccountId":**Parameter** | **Description** |
fromAccountId | This is the ID of the payee's wallet - the user who is paying out the funds |
toAccountId | This is the ID of recipient's wallet - the user who will receive the funds |
description | (Optional) Text that can be used to describe the reason for the transaction |
amount | The amount of the transaction |
reference | A unique reference is created so that you can identify and link this transaction to your system |
**Response (200)**
```text { "key":, "approveById":