Resend callback with current status
Resend a callback for the specified test order, without data updating.
HTTP request
post
/v1/sandbox/order/{id}/resend-callback
Request
Header parameters
Requires authentification.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | true | Test order ID. |
Sample cURL
curl --location --request GET
'https://fiat-api.changelly.com/v1/sandbox/order/5154302e-3stl-75p4/resend-callback'
--header 'X-Api-Key: {{apiKey}}'
--header 'X-Api-Signature: {{signature}}'
Response
Response params
| Name | Type | Required | Description |
|---|---|---|---|
| status | string | true | Callback status. Enum: success/failed |
Sample response
{
"status": "success"
}
Error response
Error response parameters
Check the error response schema.
Possible error types in the errorType:
| Type | Description |
|---|---|
| validation | The request does not match the schema. |
| txType | The id query parameter contains a production transaction ID. |
The errorDetails item schema:
| Name | Type | Required | Description |
|---|---|---|---|
| cause | string | true | Error cause. |
| value | string | true | Error value. |
Error codes
| Code | Message |
|---|---|
| 400 | Bad request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 410 | Offer expired |
| 422 | Unprocessable entity |
| 429 | Too many requests |
| 500 | Internal server error |
- 400
- 401
- 403
- 404
- 410
- 422
- 429
- 500
Bad Request for the validation error type
Bad Request
{
"errorType": "validation",
"errorMessage": "Validation error",
"errorDetails": [
{
"cause": "id",
"value": "Incorrect order ID"
}
]
}
Bad Request for the txType error type
Bad Request
{
"errorType": "txType",
"errorMessage": "Transaction type is not test",
"errorDetails": [
{
"cause": "type",
"value": "production"
}
]
}
Unauthorized
{
"errorType": "unauthorized",
"errorMessage": "Unauthorized",
"errorDetails": null
}
Forbidden
{
"errorType": "forbidden",
"errorMessage": "Forbidden",
"errorDetails": null
}
Not Found
{
"errorType": "notFound",
"errorMessage": "Not found",
"errorDetails": null
}
Gone
{
"errorType": "offerExpired",
"errorMessage": "Offer expired",
"errorDetails": null
}
Unprocessable Entity
{
"errorType": "unprocessableEntity",
"errorMessage": "Unprocessable entity",
"errorDetails": null
}
Too Many Requests
{
"errorType": "tooManyRequests",
"errorMessage": "Too many requests",
"errorDetails": null
}
Internal Server Error
{
"errorType": "internalServerError",
"errorMessage": "Internal Server Error",
"errorDetails": null
}