List credit notes
Use a valid access token and make a GET call to the/v1/commerce/billing/credit-notes endpoint with optional query parameters to filter results.
Query parameters
| Parameter name | Description |
|---|---|
pageinteger | Page number for pagination. Default is 1. |
per_pageinteger | Number of credit notes per page. Default is 10, maximum is 100. |
statusstring | Filter credit notes by its status. Possible values: DRAFT: Credit note is in draft state and can be modifiedFINALIZED: Credit note has been finalized and cannot be modifiedVOIDED: Credit note has been voided and is no longer valid |
credit_statusstring | Filter credit notes by credit status. Possible values: AVAILABLE: Credit amount remains available for future usageCONSUMED: Credit amount has been fully consumedVOIDED: Credit has been voided and is no longer available |
refund_statusstring | Filter credit notes by refund status. Possible values: PENDING: Refund is pending executionSUCCEEDED: Refund has been successfully executedFAILED: Refund has failed and was not processed |
reasonstring | Filter credit notes by reason. Possible values: DUPLICATED_CHARGE: Duplicate charge on customer accountPRODUCT_UNSATISFACTORY: Product or service was unsatisfactoryORDER_CHANGE: Changes made to the original orderORDER_CANCELLATION: Order was cancelledFRAUDULENT_CHARGE: Fraudulent or unauthorized chargeOTHER: Other reasons not covered by standard categories |
issuing_date_fromstring | Filter credit notes issued from this date (YYYY-MM-DD format). |
issuing_date_tostring | Filter credit notes issued until this date (YYYY-MM-DD format). |
external_customer_idstring | Filter credit notes by external customer ID. Use the external_id you provided when you registered the customer. |
invoice_idstring | Filter credit notes by invoice ID. Use the id returned when PayPal generates invoices. |
For the exhaustive list of response parameters, see API reference.
Get credit note details
Use a valid access token and make a GET call to the/v1/commerce/billing/credit-notes/{credit_note_id} endpoint.
Path parameter: credit_note_id is the id returned in the List credit notes response.
On successful request processing, PayPal returns detailed credit note information.
For the exhaustive list of response parameters, see API reference.
Void credit notes
Use a valid access token and make a POST call to the/v1/commerce/billing/credit-notes/{credit_note_id}/void endpoint.
Path parameter: credit_note_id is the id returned in the List credit notes response.
When you void a credit note, you make it no longer available for use. You cannot undo this action.
On successful request processing, PayPal returns the updated credit note with voided status.
For the exhaustive list of response parameters, see API reference.