Generate a new refund from a deposit transaction
POST/api/refunds
Generate a new refund from a deposit transaction
Request
- application/json
Body
required
value floatrequired
Value to be refunded
description description (string)
Description of the return
transaction_uuid transaction_uuid (string)required
Uuid of the transaction that should be refunded
merchant_id merchant_id (string)required
Field to use as identification purpose
Responses
- 201
- 400
- 401
- 403
- 404
- 408
- 422
- 500
Successful operation
- application/json
- Schema
- Example (from schema)
Schema
status status (string)required
Possible values: [awaiting, failed]
Status about the refund
message message (string)
Description of the refund
transaction_uuid transaction_uuid (string)
Uuid of the transaction that should be refunded
merchant_id merchant_id (string)
Field to use as identification purpose
{
  "status": "awaiting",
  "message": "Refund of funds",
  "transaction_uuid": "1a3259d0-f3b9-40dd-ab60-f594996a6453",
  "merchant_id": "refund_001"
}
Bad Request
Unauthenticated
- application/json
- Schema
- Example (from schema)
Schema
message message (integer)
Response 401
{
  "message": "Invalid x-api-key"
}
Forbidden
Not Found
Request timeout
Unprocessable entity
- application/json
- Schema
- Example (from schema)
Schema
message message (string)
Error message
errors undefined[]
Errors occurred during data validation request
{
  "message": "string",
  "errors": [
    null
  ]
}
Error
Loading...