Admin Partial Refund Payment Principal With Fees
Admin Partial Refund Payment Principal With Fees.
Request
Request header:
POST https://api.ipaymy.com/v2/admin/payment/partial_refund/principal_fees
Host: api.ipaymy.com
Accept: application/json
Request body:
{
"payment_id": 0,
"payees": [
{
"refunded_amount": 0
}
],
"new_rate": 0,
"current_rate": 0,
"flash_pay": true,
"fund_safe_guarding": 0,
"minimum_transaction_fee": true,
"refunded_fee_amount": 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
flash_pay:
- Type: boolean
- Validate: required
fund_safe_guarding:
- Type: number
- Validate: required
refunded_fee_amount:
- 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.