Refund Line Apply (POST)

Make a refund transaction against a payment.

Resource 

1/commerce/billing/refunds/{refundId}/actions/apply

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/commerce/billing/refunds/{0cbVc0000000G4nIAE}/actions/apply

Available Version 

64.0

HTTP Methods 

POST

Path Parameter for POST 

NameTypeDescriptionRequired or OptionalAvailable Version
refundIdStringID of the refund record.Required64.0

Request Body for POST 

JSON Example

1{
2  "appliedToId": "0aQR00000004ZkKMAU",
3  "amount": 10,
4  "effectiveDate": "2020-08-11T07:53:15.000Z",
5  "comments": "Payment application."
6}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
amountDoubleAmount to refund.Required64.0
appliedToIdStringID of a payment or credit memo record. The refund is applied to this object.Required64.0
commentsStringAdditional details of the refund request.Optional64.0
effectiveDateStringDate from when the refund is in effect.Optional64.0

Response Body for POST 

Refund Line Apply