- Send refunds: Returns money directly to the customer’s payment method. Customers receive the refund immediately.
- Add credits: Returns credits to the customer’s credit wallet. PayPal auto-creates this wallet. PayPal consumes these credits during future billing.
Retry payment for an invoice
Use a valid access token and make a POST call to the/v1/commerce/billing/invoices/{invoice_id}/retry_payment endpoint.
Path parameter: invoice_id is the id returned in the List invoices response.
On successful request processing, PayPal returns 204 No Content.
Create credit notes
A credit note is a billing adjustment document that reduces or reverses charges on an existing invoice. While an invoice charges customers, a credit note returns money or provides account credits. Create credit notes when you need to correct billing after invoices have been issued. Each credit note references a specific invoice and can include both refund and credit amounts in a single adjustment. Use a valid access token and make a POST call to the/v1/commerce/billing/credit-notes endpoint with the required request parameters. On successful request processing, PayPal returns the created credit note details.
Request body parameters
| Parameter name | Description |
|---|---|
invoice_idRequired, string | Unique identifier that identifies the invoice. Use the id returned in the List invoices response. |
reasonstring | The reason for credit note creation. 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 |
descriptionstring | Description of the credit note for internal reference. |
credit_amountobject | The total amount to be credited to the customer balance for future use. Only include value field (currency is inherited from invoice). |
refund_amountobject | The total amount to be refunded to the customer immediately. Only include value field (currency is inherited from invoice). |
itemsRequired, array | Array of credit note items specifying which fees to credit or refund. Minimum 1 item required. |
items[].fee_idRequired, string | The fee unique identifier (UUID format) from the original invoice. |
items[].amountRequired, object | The amount of the credit note item to be processed. Only include value field. |
Response parameters
This section documents only the response parameters relevant for the next step. For the exhaustive list of response parameters, see API reference.
| Parameter name | Description and further action |
|---|---|
idstring | Unique identifier for the credit note. Use this id in future operations, such as when getting credit note details or voiding the credit note. |
billing_entity_codestring | The billing entity code associated with this credit note. |
numberstring | The formatted credit note number for reference and tracking. |
credit_statusstring | Status of the credit amount. Possible values: AVAILABLE, CONSUMED, VOIDED. |
refund_statusstring | Status of the refund amount. Possible values: PENDING, SUCCEEDED, FAILED, CANCELED. |
itemsarray | Detailed breakdown of the credit note items with their associated fees. |
Manage credit notes
| Possible management action | Impact |
|---|---|
| Void credit note: Permanently delete a credit note, making it no longer available for use. | Changes status to VOIDED and prevents further credit application to pay charges. |