Admin Fully Refund A Payment
Admin Fully Refund A Payment.
Request
Request header:
POST https://api.ipaymy.com/v2/admin/payment/refund
Host: api.ipaymy.com
Accept: application/json
Request body:
{
"payment_id": 0,
"with_fee": true,
"refusal_reason_code": "",
"refusal_reason": "",
"other_refusal_reason": "",
"hold_request_id": 0
}
payment_id:
- Type: number
- Validate: required
with_fee:
- Type: boolean
- Validate: required
refusal_reason_code:
- Type: string
- Validate: required
refusal_reason:
- Type: string
- Validate: required
other_refusal_reason:
- Type: string
- Validate: required
hold_request_id:
- Type: number
Response
Response body:
{
"data": "",
"error": 0
}
Response codes:
- 200: Good stuff, and the response body should be easy to parse.
- 422: Typically malformed JSON, such as an integer in place of the required alphanumeric string, or a missing key. Check the response body for further details.