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 | BadRequest |
| 401 | Unauthorized |
| 403 | Forbidden |
| 410 | Offer expired |
| 422 | Unprocessable entity |
| 429 | TooManyRequests |
| 500 | InternalServerError |
- 400
- 401
- 403
- 410
- 422
- 429
- 500
BadRequest for the validation error
BadRequest
{
"errorType": "validation",
"errorMessage": "Validation error",
"errorDetails": [
{
"cause": "id",
"value": "Incorrect order ID"
}
]
}
BadRequest for the txType error
txType
{
"errorType": "BadRequest",
"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
}
Offer expired
{
"errorType": "offerExpired",
"errorMessage": "Offer expired",
"errorDetails": null
}
Unprocessable entity
{
"errorType": "unprocessableEntity",
"errorMessage": "Unprocessable entity",
"errorDetails": null
}
TooManyRequests
{
"errorType": "tooManyRequests",
"errorMessage": "Too many requests",
"errorDetails": null
}
InternalServerError
{
"errorType": "internalServerError",
"errorMessage": "Internal Server Error",
"errorDetails": null
}