Get status
POST getStatus
With the transaction ID obtained from createTransaction or createFixTransaction call, you can get exchange status to notify your user or provide additional support.
Possible transaction statuses:
| Status | Description |
|---|---|
| waiting | Transaction is waiting for an incoming payment. Functionally equivalent to the new status in createTransaction/createFixTransaction response. However, when you retrieve the transaction's status using an ID with the getStatus or getTransactions request, it will be represented as waiting instead of new. |
| confirming | We have received payin and are waiting for certain amount of confirmations depending on the incoming currency. |
| exchanging | Payment was confirmed and is being exchanged. |
| sending | Coins are being sent to the recipient address. |
| finished | Coins were successfully sent to the recipient address. |
| failed | Transaction has failed. In most cases, the reason is that the amount was less than the minimum. Please contact support and provide a transaction ID. |
| refunded | Exchange failed and coins were refunded to user's wallet. The wallet address should be provided by user. |
| hold* | Due to AML/KYC procedure, exchange may be delayed. |
| overdue | In case payin for floating rate transaction was not sent within the indicated timeframe. |
| expired | In case payin for fixed rate transaction was not sent within the indicated timeframe. |
HTTP request
https://api.criptointercambio.com/v2/#getStatus
Request
- Request
- Payload
- cURL
Header parameters
| Name | Type | Required | Description |
|---|---|---|---|
| X-Api-Key | string | true | Your API key (SHA256 from Public Key) |
| X-Api-Signature | string | true | The query's serialized body signed by your private key according to the RSA-SHA256 method. |
Body parameters
| Name | Type | Required | Description |
|---|---|---|---|
| jsonrpc | string | true | JSON-RPC version. |
| id | string | true | Client's custom ID. |
| method | string | true | API method name. |
| params | object | true | Request parameters. |
params object:
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | true | Transaction ID. |
application/json
{
"jsonrpc": "2.0",
"id": "test",
"method": "getStatus",
"params": {
"id": "pgj********2minj"
}
}
curl --location --request POST 'https://api.criptointercambio.com/v2' \
--header 'X-Api-Key: {{apiKey}}' \
--header 'X-Api-Signature: {{sign}}' \
--data-raw '{
"jsonrpc": "2.0",
"id": "test",
"method": "getStatus",
"params": {
"id": "pgj********2minj"
}
}'
Response
- Example
- Success
- Errors
Sample response
application/json
{
"jsonrpc": "2.0",
"id": "test",
"result": "waiting"
}
Response params
| Name | Type | Description |
|---|---|---|
| jsonrpc | string | JSON-RPC version. |
| id | string | Client's custom ID. |
| result | string | Transaction status. |
Error schema
| Name | Type | Description |
|---|---|---|
| jsonrpc | string | JSON-RPC version. |
| id | string | Client's custom ID. |
| error | object | Possible errors. |
| »code | integer | Error code. |
| »message | string | Error message. |
Error codes
| Code | Message | Description |
|---|---|---|
-32600 | Error: You reached requests limit {limit} rps | You have been sending more than 10 requests per second. |
-32602 | Parameter {param} is invalid | You've specified an invalid parameter. |
-32603 | Internal Error or Error | Most likely, the problem is on our side. Further investigation is required. |