Edit credit and debit memos through the API
Learn how to edit credit and debit memos through the API
To edit a credit or debit memo commonly, see Update a credit memo and Update a debit memo.
This section specifically introduces how to create and delete a credit memo item when editing a draft standalone credit memo. The operations on draft standalone debit memos are similar.
Create and add credit memo items of draft standalone credit memos
To create and add a credit memo item to a draft standalone credit memo based on an existing product rate plan charge through the "Update a credit memo" operation, perform the following steps:
- Determine the mandatory fields that you need for creating and adding a credit memo item, including:
- Path parameter:
creditMemoKey - Request fields:
amountproductRatePlanChargeId
- Path parameter:
- Use the "Update a credit memo" operation to create and add a credit memo item to a draft standalone credit memo.
|
Request |
|
|
Request body |
|
Delete credit memo items of draft standalone credit memos
To delete a credit memo item of a draft standalone credit memo through the "Update a credit memo" operation, perform the following steps:
- Determine the mandatory fields that you need for deleting a credit memo item, including:
- Path parameter:
creditMemoKey - Request fields:
iddelete
- Path parameter:
- Use the "Update a credit memo" operation to delete a credit memo item from a draft standalone credit memo.
The following sample API request deletes a credit memo item from a draft standalone credit memo:
|
Request |
|
|
Request body |
|