List credit notes
Use a valid access token and send a GET request to/v1/commerce/billing/credit-notes
with optional query parameters to filter results.
Query parameters
Parameter name | Description |
---|---|
page integer | Page number for pagination. Default is 1. |
per_page integer | Number of credit notes per page. Default is 10, maximum is 100. |
status string | 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_status string | 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_status string | 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 |
reason string | 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_from string | Filter credit notes issued from this date (YYYY-MM-DD format). |
issuing_date_to string | Filter credit notes issued until this date (YYYY-MM-DD format). |
external_customer_id string | Filter credit notes by external customer ID, the one returned when you registered a customer. |
invoice_id string | Filter credit notes by invoice ID, the one assigned when PayPal generates invoices. |
Note: For the exhaustive list of query and response parameters, see API reference.
Get credit note details
Use a valid access token and send a GET request to/v1/commerce/billing/credit-notes/{id}
.
Path parameter: id
is the credit note identifier that List credit notes returns.
On successful request processing, PayPal returns detailed credit note information.
Note: For the exhaustive list of response parameters, see API reference.
Void credit notes
Use a valid access token and send a POST request to/v1/commerce/billing/credit-notes/{id}/void
.
Path parameter: id
is the credit note identifier that List credit notes returns.
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.
Note: For the exhaustive list of response parameters, see API reference.