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
memostring
Memo value, that will be added to the refund payment.
memoTypestring
Type of memo, that will be added to the refund payment.
amountstring
Amount, that will be refunded.
amountFeestring
Fee of the refund.
Responses
- 200
- 400
- 404
- 429
- 500
- 503
Success.
- application/json
- Schema
- Example (from schema)
Schema
idstring
External TX ID from custody service.
{
"id": "string"
}
Invalid Request.
- application/json
- Schema
- Example (from schema)
Schema
errorstringrequired
{
"error": "string"
}
Custody Transaction is not found.
- application/json
- Schema
- Example (from schema)
Schema
errorstringrequired
{
"error": "string"
}
Custody Service rate limit is exceeded.
- application/json
- Schema
- Example (from schema)
Schema
errorstringrequired
{
"error": "string"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
errorstringrequired
{
"error": "string"
}
Custody Service is unavailable.
- application/json
- Schema
- Example (from schema)
Schema
errorstringrequired
{
"error": "string"
}