Credit memo webhook request body resource.
Credit memo webhook request body resource.
{ "creditMemoId": "crmm_0YVCNN22TWC3G8H82QNPNVZCHG", "eventType": "credit-memo-applied", "_embedded": { "creditMemo": { "id": "crmm_0YVCNN22TWC3G8H82QNPNVZCHG", "number": 0, "allocations": { "transactions": [ { "transactionId": "txn_0YVDTQJ8YWDGQACV2N2N5SPWQ0", "amount": 0.1, "currency": "USD", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z" } ], "invoices": [ { "invoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT", "amount": 0.1, "currency": "USD", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z" } ] }, "items": [ { "id": "crmm_itm_0YVCNN22TWC3G8H82QNPNVZCHG", "invoiceItemId": "ii_0YVFDEQS2KCFTBN9HXWJFY55GV", "description": "string", "unitPrice": 0.1, "quantity": 0, "price": 0.1, "productId": "prod_0YV7DES3WPC5J8JD8QTVNZBZNZ", "planId": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X", "tax": { "amount": 0.1, "description": "string", "rate": 0, "stateAmount": 0.94, "countyAmount": 0.04, "cityAmount": 0, "specialDistrictAmount": 0.38, "stateRate": 0, "countyRate": 0, "cityRate": 0, "specialDistrictRate": 0, "jurisdictions": { "country": "US", "state": "CA", "county": "LOS ANGELES", "city": "LOS ANGELES" } } } ], "status": "issued", "reason": "return", "description": "string", "shippingAmount": 0, "taxAmount": 0, "totalAmount": 0, "unusedAmount": 0, "revision": 0, "customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF", "currency": "USD", "invoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT", "createdTime": "2019-08-24T14:15:22Z", "updatedTime": "2019-08-24T14:15:22Z", "_links": [ { "href": "string", "rel": "self" } ] } }, "_links": [ { "href": "string", "rel": "creditMemo" } ] }
2xx
Returns any 2xx status to indicate that data is received.