Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.
Voids a credit memo with a specified ID. Removes the invoice allocations of the credit memo and returns the allocated amounts to the invoices. If the credit memo is allocated to an invoice that is not payable, such as a paid invoice, the request fails with a 409 response and the credit memo is not changed. If the credit memo has an unresolved refund, the request fails with a 409 response and the credit memo is not changed.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/credit-memos/{id}/void
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/credit-memos/{id}/void
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/credit-memos/{id}/void
curl -i -X POST \
'https://www.rebilly.com/_mock/catalog/all/credit-memos/{id}/void' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE'Number of requests still available for this rate limit. For more information, see Rate limits.
| Enum Value | Description |
|---|---|
| draft | |
| quotation | Credit memo is associated with an issued quote. When the quote is accepted, the status changes to |
| issued | |
| applied | |
| partially-applied | |
| voided |
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.
{ "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": {} } }