A credit memo is a means of providing a customer with store credit. A common use case for using a credit memo is to provide a customer with store credit, rather than a refund, if the customer pays more than they owe or returns a product.
Retrieve a list of credit memos.
filter | string The collection items filter requires a special format. Use "," for multiple allowed values. Use ";" for multiple fields. See the filter guide for more options and examples about this format. |
sort | Array of strings The collection items sort field and order (prefix with "-" for descending sort). |
limit | integer [ 0 .. 1000 ] The collection items limit. |
offset | integer >= 0 The collection items offset. |
q | string The partial search of the text fields. |
expand | string Expand a response to get a full related object included inside of the |
A list of credit memos was retrieved successfully.
Pagination-Total | integer Total items count. |
Pagination-Limit | integer Items per page limit. |
Pagination-Offset | integer Pagination offset. |
Unauthorized access, invalid credentials were used.
Access forbidden.
curl -i -X GET \ 'https://api-sandbox.rebilly.com/organizations/unknown/credit-memos?filter=string&sort=string&limit=1000&offset=0&q=string&expand=string' \ -H 'REB-APIKEY: YOUR_API_KEY_HERE'
[- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
]
Create a credit memo.
customerId required | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||
currency required | string (CurrencyCode) = 3 characters ISO 4217 alphabetic currency code. | ||||||||||||
invoiceId | string or null <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||
Array of objects | |||||||||||||
Array
| |||||||||||||
reason | string Credit memo reason code. | ||||||||||||
description | string A public description (visible to customers) clarifying the purpose of the credit memo. | ||||||||||||
shippingAmount | number <double> Default: 0 The (invoice's) shipping amount to credit. | ||||||||||||
taxAmount | number <double> Default: 0 The (invoice's) tax amount to credit. |
CreditMemo was created.
customerId required | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
currency required | string (CurrencyCode) = 3 characters ISO 4217 alphabetic currency code. | ||||||||||||||||
id | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
invoiceId | string or null <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
number | integer An auto-incrementing number based on the sequence of credit memos for any particular customer. | ||||||||||||||||
Array of objects | |||||||||||||||||
Array
| |||||||||||||||||
status | string Status of the credit memo.
| ||||||||||||||||
reason | string Credit memo reason code. | ||||||||||||||||
description | string A public description (visible to customers) clarifying the purpose of the credit memo. | ||||||||||||||||
shippingAmount | number <double> Default: 0 The (invoice's) shipping amount to credit. | ||||||||||||||||
taxAmount | number <double> Default: 0 The (invoice's) tax amount to credit. | ||||||||||||||||
totalAmount | number <double> Default: 0 The sum of all credits in the credit memo (items, shipping, tax). | ||||||||||||||||
unusedAmount | number <double> Default: 0 The amount of | ||||||||||||||||
revision | integer Increments when the credit memo is modified. | ||||||||||||||||
createdTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
updatedTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
Array of SelfLink (object) or CustomerLink (object) or InvoiceLink (object) The links related to resource. | |||||||||||||||||
Unauthorized access, invalid credentials were used.
Access forbidden.
Invalid data was sent.
{- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "items": [
- {
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
Retrieve a credit memo with specified identifier string.
expand | string Expand a response to get a full related object included inside of the |
Credit memo was retrieved successfully.
customerId required | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
currency required | string (CurrencyCode) = 3 characters ISO 4217 alphabetic currency code. | ||||||||||||||||
id | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
invoiceId | string or null <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
number | integer An auto-incrementing number based on the sequence of credit memos for any particular customer. | ||||||||||||||||
Array of objects | |||||||||||||||||
Array
| |||||||||||||||||
status | string Status of the credit memo.
| ||||||||||||||||
reason | string Credit memo reason code. | ||||||||||||||||
description | string A public description (visible to customers) clarifying the purpose of the credit memo. | ||||||||||||||||
shippingAmount | number <double> Default: 0 The (invoice's) shipping amount to credit. | ||||||||||||||||
taxAmount | number <double> Default: 0 The (invoice's) tax amount to credit. | ||||||||||||||||
totalAmount | number <double> Default: 0 The sum of all credits in the credit memo (items, shipping, tax). | ||||||||||||||||
unusedAmount | number <double> Default: 0 The amount of | ||||||||||||||||
revision | integer Increments when the credit memo is modified. | ||||||||||||||||
createdTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
updatedTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
Array of SelfLink (object) or CustomerLink (object) or InvoiceLink (object) The links related to resource. | |||||||||||||||||
Unauthorized access, invalid credentials were used.
Access forbidden.
Resource was not found.
curl -i -X GET \ 'https://api-sandbox.rebilly.com/organizations/unknown/credit-memos/{id}?expand=string' \ -H 'REB-APIKEY: YOUR_API_KEY_HERE'
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
Create or update a credit memo with predefined identifier string.
customerId required | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||
currency required | string (CurrencyCode) = 3 characters ISO 4217 alphabetic currency code. | ||||||||||||
invoiceId | string or null <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||
Array of objects | |||||||||||||
Array
| |||||||||||||
reason | string Credit memo reason code. | ||||||||||||
description | string A public description (visible to customers) clarifying the purpose of the credit memo. | ||||||||||||
shippingAmount | number <double> Default: 0 The (invoice's) shipping amount to credit. | ||||||||||||
taxAmount | number <double> Default: 0 The (invoice's) tax amount to credit. |
CreditMemo was updated.
customerId required | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
currency required | string (CurrencyCode) = 3 characters ISO 4217 alphabetic currency code. | ||||||||||||||||
id | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
invoiceId | string or null <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
number | integer An auto-incrementing number based on the sequence of credit memos for any particular customer. | ||||||||||||||||
Array of objects | |||||||||||||||||
Array
| |||||||||||||||||
status | string Status of the credit memo.
| ||||||||||||||||
reason | string Credit memo reason code. | ||||||||||||||||
description | string A public description (visible to customers) clarifying the purpose of the credit memo. | ||||||||||||||||
shippingAmount | number <double> Default: 0 The (invoice's) shipping amount to credit. | ||||||||||||||||
taxAmount | number <double> Default: 0 The (invoice's) tax amount to credit. | ||||||||||||||||
totalAmount | number <double> Default: 0 The sum of all credits in the credit memo (items, shipping, tax). | ||||||||||||||||
unusedAmount | number <double> Default: 0 The amount of | ||||||||||||||||
revision | integer Increments when the credit memo is modified. | ||||||||||||||||
createdTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
updatedTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
Array of SelfLink (object) or CustomerLink (object) or InvoiceLink (object) The links related to resource. | |||||||||||||||||
CreditMemo was created.
customerId required | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
currency required | string (CurrencyCode) = 3 characters ISO 4217 alphabetic currency code. | ||||||||||||||||
id | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
invoiceId | string or null <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
number | integer An auto-incrementing number based on the sequence of credit memos for any particular customer. | ||||||||||||||||
Array of objects | |||||||||||||||||
Array
| |||||||||||||||||
status | string Status of the credit memo.
| ||||||||||||||||
reason | string Credit memo reason code. | ||||||||||||||||
description | string A public description (visible to customers) clarifying the purpose of the credit memo. | ||||||||||||||||
shippingAmount | number <double> Default: 0 The (invoice's) shipping amount to credit. | ||||||||||||||||
taxAmount | number <double> Default: 0 The (invoice's) tax amount to credit. | ||||||||||||||||
totalAmount | number <double> Default: 0 The sum of all credits in the credit memo (items, shipping, tax). | ||||||||||||||||
unusedAmount | number <double> Default: 0 The amount of | ||||||||||||||||
revision | integer Increments when the credit memo is modified. | ||||||||||||||||
createdTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
updatedTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
Array of SelfLink (object) or CustomerLink (object) or InvoiceLink (object) The links related to resource. | |||||||||||||||||
Unauthorized access, invalid credentials were used.
Access forbidden.
Resource was not found.
Invalid data was sent.
{- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "items": [
- {
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
Void a credit memo with a specified identifier string.
Credit memo successfully voided .
customerId required | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
currency required | string (CurrencyCode) = 3 characters ISO 4217 alphabetic currency code. | ||||||||||||||||
id | string <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
invoiceId | string or null <= 50 characters The resource ID. Defaults to UUID v4. | ||||||||||||||||
number | integer An auto-incrementing number based on the sequence of credit memos for any particular customer. | ||||||||||||||||
Array of objects | |||||||||||||||||
Array
| |||||||||||||||||
status | string Status of the credit memo.
| ||||||||||||||||
reason | string Credit memo reason code. | ||||||||||||||||
description | string A public description (visible to customers) clarifying the purpose of the credit memo. | ||||||||||||||||
shippingAmount | number <double> Default: 0 The (invoice's) shipping amount to credit. | ||||||||||||||||
taxAmount | number <double> Default: 0 The (invoice's) tax amount to credit. | ||||||||||||||||
totalAmount | number <double> Default: 0 The sum of all credits in the credit memo (items, shipping, tax). | ||||||||||||||||
unusedAmount | number <double> Default: 0 The amount of | ||||||||||||||||
revision | integer Increments when the credit memo is modified. | ||||||||||||||||
createdTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
updatedTime | string <date-time> Read-only timestamp, automatically assigned on back-end. | ||||||||||||||||
Array of SelfLink (object) or CustomerLink (object) or InvoiceLink (object) The links related to resource. | |||||||||||||||||
Unauthorized access, invalid credentials were used.
Access forbidden.
Resource was not found.
curl -i -X POST \ 'https://api-sandbox.rebilly.com/organizations/unknown/credit-memos/{id}/void' \ -H 'REB-APIKEY: YOUR_API_KEY_HERE'
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
Credit memo webhook request body resource.
creditMemoId | string The credit memo ID. | ||||||||||||||||||||||||||||||||||||||||||||||||
eventType | string Rebilly webhooks event type. | ||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of CreditMemoLink (object) non-empty The links related to resource. | |||||||||||||||||||||||||||||||||||||||||||||||||
Return any 2xx status to indicate that the data was received successfully.
{- "creditMemoId": "string",
- "eventType": "credit-memo-applied",
- "_embedded": {
- "creditMemo": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
}, - "_links": [
- {
- "rel": "creditMemo",
- "href": "string"
}
]
}
Credit memo webhook request body resource.
creditMemoId | string The credit memo ID. | ||||||||||||||||||||||||||||||||||||||||||||||||
eventType | string Rebilly webhooks event type. | ||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of CreditMemoLink (object) non-empty The links related to resource. | |||||||||||||||||||||||||||||||||||||||||||||||||
Return any 2xx status to indicate that the data was received successfully.
{- "creditMemoId": "string",
- "eventType": "credit-memo-applied",
- "_embedded": {
- "creditMemo": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
}, - "_links": [
- {
- "rel": "creditMemo",
- "href": "string"
}
]
}
Credit memo webhook request body resource.
creditMemoId | string The credit memo ID. | ||||||||||||||||||||||||||||||||||||||||||||||||
eventType | string Rebilly webhooks event type. | ||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of CreditMemoLink (object) non-empty The links related to resource. | |||||||||||||||||||||||||||||||||||||||||||||||||
Return any 2xx status to indicate that the data was received successfully.
{- "creditMemoId": "string",
- "eventType": "credit-memo-applied",
- "_embedded": {
- "creditMemo": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
}, - "_links": [
- {
- "rel": "creditMemo",
- "href": "string"
}
]
}
Credit memo webhook request body resource.
creditMemoId | string The credit memo ID. | ||||||||||||||||||||||||||||||||||||||||||||||||
eventType | string Rebilly webhooks event type. | ||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of CreditMemoLink (object) non-empty The links related to resource. | |||||||||||||||||||||||||||||||||||||||||||||||||
Return any 2xx status to indicate that the data was received successfully.
{- "creditMemoId": "string",
- "eventType": "credit-memo-applied",
- "_embedded": {
- "creditMemo": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
}, - "_links": [
- {
- "rel": "creditMemo",
- "href": "string"
}
]
}
Credit memo webhook request body resource.
creditMemoId | string The credit memo ID. | ||||||||||||||||||||||||||||||||||||||||||||||||
eventType | string Rebilly webhooks event type. | ||||||||||||||||||||||||||||||||||||||||||||||||
object | |||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||
Array of CreditMemoLink (object) non-empty The links related to resource. | |||||||||||||||||||||||||||||||||||||||||||||||||
Return any 2xx status to indicate that the data was received successfully.
{- "creditMemoId": "string",
- "eventType": "credit-memo-applied",
- "_embedded": {
- "creditMemo": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "customerId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "number": 0,
- "items": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "invoiceItemId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "description": "string",
- "unitPrice": 0,
- "quantity": 0,
- "price": 0,
- "productId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "planId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}
], - "status": "issued",
- "reason": "return",
- "description": "string",
- "currency": "USD",
- "shippingAmount": 0,
- "taxAmount": 0,
- "totalAmount": 0,
- "unusedAmount": 0,
- "revision": 0,
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
}, - "_links": [
- {
- "rel": "creditMemo",
- "href": "string"
}
]
}