Credit memo is associated with an issued quote. When the quote is accepted, the status changes to issued, partially-applied, or applied, based on how much of the credit memo is allocated.
Security
SecretApiKey or JWT or ApplicationJWT
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/credit-memos/{id}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/credit-memos/{id}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/credit-memos/{id}
curl -i -X GET \
'https://www.rebilly.com/_mock/catalog/all/credit-memos/{id}' \
-H 'Accept: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'| Enum Value | Description |
|---|---|
| draft | |
| quotation | |
| issued | |
| applied | |
| partially-applied | |
| voided |
Enum:"return""product-unsatisfactory""order-change""order-cancellation""chargeback""write-off""waiver""customer-credit""prepayment""other"
Default:0
Default:0
Example:"cus_0YV7DDSDD1C8DA64KHH2W33CPF"
Example:"in_0YVF9605RKC62BP14NE2R7V2XT"
Example:"qt_0YVF9605RKC62BP14NE2R7V2XT"
ID of the transaction associated with the credit memo. Associating a transaction does not change the unused amount of the credit memo. The transaction must be approved and associated with the same customer as the credit memo. Approved transactions of any type are accepted, including refunds and voided sales. If the transaction result changes later, the association is retained. If this field is omitted in an update request, this field retains its current value. To remove the transaction from the credit memo, set this field to null.
Example:"txn_0YVDTQJ8YKC82BP14NE2R7V2XT"
Response
{ "id": "crmm_0YVCNN22TWC3G8H82QNPNVZCHG", "number": 0, "allocations": { "transactions": [ … ], "invoices": [ … ] }, "items": [ { … } ], "status": "draft", "reason": "return", "description": "string", "shippingAmount": 0, "taxAmount": 0, "totalAmount": 0, "unusedAmount": 0, "revision": 0, "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "currency": "USD", "invoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT", "quoteId": "qt_0YVF9605RKC62BP14NE2R7V2XT", "transactionId": "txn_0YVDTQJ8YKC82BP14NE2R7V2XT", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ { … } ], "_embedded": { "customer": {} } }