Admin Partial Refund A Payment Fee
Admin Partial Refund A Payment Fee.
Request
Request header:
POST https://api.ipaymy.com/v2/admin/payment/partial_refund/fee
Host: api.ipaymy.com
Accept: application/json
Request body:
{
"payment_id": 0,
"new_rate": 0,
"current_rate": 0,
"refusal_reason_code": "",
"refusal_reason": "",
"other_refusal_reason": "",
"hold_request_id": 0
}
payment_id:
- Type: number
- Validate: required
new_rate:
- Type: number
- Validate: required
current_rate:
- Type: number
- Validate: required
refusal_reason_code:
- Type: strinf
- Validate: required
refusal_reason:
- Type: strinf
- Validate: required
other_refusal_reason:
- Type: strinf
- Validate: required
hold_request_id:
- Type: number
- Validate: required
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.