Refund Credit Memo (POST)

Initiate a refund against a credit memo.

Initiates a refund for a credit memo. Locks the credit memo, calls the Commerce Refund API, and applies the refund inline (sync) or defers the apply until the payment gateway event is received (async).

Resource 

1/revenue/billing/refunds/unreferenced-refunds/actions/process

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/revenue/billing/refunds/unreferenced-refunds/actions/process

Available Version 

68.0

HTTP Methods 

POST

Request Body for POST 

JSON Example

1{
2  "appliedToId": "0PMxx0000000001AAA",
3  "refundAmount": 100,
4  "currencyIsoCode": "USD",
5  "refundReason": "Customer requested refund",
6  "paymentMethodId": "08pxx0000000001AAA",
7  "refundNotes": "Refund processed per case 00298475."
8}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
applied​To​IdStringID of the credit memo that the refund is applied to.Required68.0
currency​Iso​CodeStringISO currency code. Required when multi-currency is enabled. Must match the credit memo’s currency.Required if multi-currency is enabled68.0
payment​Method​IdStringID of the payment method to issue the refund. Must reference a valid, active payment method.Required68.0
refund​AmountDoubleAmount to be refunded. Must be greater than 0 and not exceed the remaining balance on the credit memo.Required68.0
refund​NotesStringOptional notes that are stored in the comments of the refund entity.Optional68.0
refund​ReasonStringReason for the refund.Required68.0

Response Body for POST 

Refund Credit Memo