curl -i -X POST \
https://www.rebilly.com/_mock/docs/dev-docs/api/credit-memos \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"allocations": {
"transactions": [
{
"transactionId": "txn_0YVDTQJ8YWDGQACV2N2N5SPWQ0",
"amount": 0.1,
"currency": "USD"
}
],
"invoices": [
{
"invoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT",
"amount": 0.1,
"currency": "USD"
}
]
},
"items": [
{
"invoiceItemId": "ii_0YVFDEQS2KCFTBN9HXWJFY55GV",
"description": "string",
"unitPrice": 0.1,
"quantity": 0,
"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"
}
}
}
],
"reason": "return",
"description": "string",
"shippingAmount": 0,
"customerId": "cus_0YV7DDSDD1C8DA64KHH2W33CPF",
"currency": "USD",
"invoiceId": "in_0YVF9605RKC62BP14NE2R7V2XT"
}'