SEP-24SEP-31SEP-6
Send Refund
POST/transactions/:id/refunds
Custody Server calls configured Custody Service to send refund. Custody transaction record is also created in DB.
Request
- application/json
Body
memo string
Memo value, that will be added to the refund payment.
memoType string
Type of memo, that will be added to the refund payment.
amount string
Amount, that will be refunded.
amountFee string
Fee of the refund.
Responses
- 200
- 400
- 404
- 429
- 500
- 503
Success.
- application/json
- Schema
- Example (from schema)
Schema
id string
External TX ID from custody service.
{
"id": "string"
}
Invalid Request.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
{
"error": "string"
}
Custody Transaction is not found.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
{
"error": "string"
}
Custody Service rate limit is exceeded.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
{
"error": "string"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
{
"error": "string"
}
Custody Service is unavailable.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
{
"error": "string"
}
Loading...