VoidPayment
POST/v1/payment/void
Voids, or cancels, a payment, by ID. You cannot void an authorized payment that has been fully paid.
Request
- application/json
Body
required
id string
The midaspay id of order.
reference_id string
The merchant id of order.
merchant_id string
<= 64 characters
The id of merchant. If empty, defaults to the merchant_id of the signature authentication
Responses
- 200
- default
OK
- application/json
- Response
- Example
Response
succeed boolean
Voided status.
message string
Voided describe.
{
"succeed": true,
"message": "string"
}
Error response structure
- application/json
- Response
- Example
Response
Array [
]
Array [
]
name string
message string
details
object[]
@type string
The type of the serialized message.
debug_id string
causes
object[]
cause string
solution string
{
"name": "string",
"message": "string",
"details": [
{
"@type": "string"
}
],
"debug_id": "string",
"causes": [
{
"cause": "string",
"solution": "string"
}
]
}
Loading...