Do Partial Refund
Do the partial refund of the order item.
Post
https://store.payproglobal.com/api/Orders/DoPartialRefundRequest Parameters
application/jsonDoPartialRefundRequestModel
objectorderItemId
integerrequired
The order item ID you want to partially refund. Its value is passed
via the parameter ORDER_ITEM_ID in IPN/webhook or PayPro Order Notification email.
via the parameter ORDER_ITEM_ID in IPN/webhook or PayPro Order Notification email.
refundAmount
numberrequired
The amount you want to reimburse to the customer.
changeSubscriptionPrice
booleanoptional
Possible values are true or false. If true,
the recurring subscription price will be updated according to the remaining amount
after the refund. If false, the recurring subscription price won't be changed. False by default.
the recurring subscription price will be updated according to the remaining amount
after the refund. If false, the recurring subscription price won't be changed. False by default.
refundReason
stringrequired
The reason for the partial refund.
cancelSubscription
booleanoptional
Possible values are true or false. If true, the subscription
will get Suspended status. If false, it remains active. False by default.
will get Suspended status. If false, it remains active. False by default.
subscriptionCancellationReasonText
stringoptional
The reason for subscription cancelation.
vendorAccountId
integerrequired
The vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringrequired
The vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
Response Parameters
application/jsonDoChargeResponseModel
objectresponse
objectorderItemId
integerThe order item ID you want to partially refund.
isRefundSuccessful
booleanPossible values are true or false. If true, the partial refund request
is successful. If false, the partial refund request failed.
is successful. If false, the partial refund request failed.
refundNotice
stringThe note if the refund request failed.
request
objectorderItemId
integerThe order item ID you want to partially refund. Its value is passed
via the parameter ORDER_ITEM_ID in IPN/webhook or PayPro Order Notification email.
via the parameter ORDER_ITEM_ID in IPN/webhook or PayPro Order Notification email.
refundAmount
numberThe amount you want to reimburse to the customer.
changeSubscriptionPrice
booleanPossible values are true or false. If true,
the recurring subscription price will be updated according to the remaining amount
after the refund. If false, the recurring subscription price won't be changed. False by default.
the recurring subscription price will be updated according to the remaining amount
after the refund. If false, the recurring subscription price won't be changed. False by default.
refundReason
stringThe reason for the partial refund.
cancelSubscription
booleanPossible values are true or false. If true, the subscription
will get Suspended status. If false, it remains active. False by default.
will get Suspended status. If false, it remains active. False by default.
subscriptionCancellationReasonText
stringThe reason for subscription cancelation.
vendorAccountId
integerThe vendor account ID identifies your PayPro Global account.
It can be found in Account settings > Business info.
It can be found in Account settings > Business info.
apiSecretKey
stringThe vendor account API secret key is a unique key
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
that was generated specifically for authenticating API requests.
It can be found in Store settings > General settings > Integration tab.
errors
array[object]propertyWithError
stringpropertyErrorMessages
array[string]isSuccess
booleanRequest Sample
{
"orderItemId": 87654321,
"refundAmount": 20.0,
"changeSubscriptionPrice": false,
"refundReason": "your_refund_reason",
"cancelSubscription": true,
"subscriptionCancellationReasonText": "your_cancellation_reason",
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
}
Response Sample
{
"response": {
"orderItemId": 87654321,
"isRefundSuccessful": true,
"refundNotice": null
},
"request": {
"orderItemId": 87654321,
"refundAmount": 20.0,
"changeSubscriptionPrice": false,
"refundReason": "your_refund_reason",
"cancelSubscription": true,
"subscriptionCancellationReasonText": "your_cancellation_reason",
"vendorAccountId": 123456,
"apiSecretKey": "your_api_secret_key"
},
"errors": [],
"isSuccess": true
}