Limited Release
Payment retry: PayPal generates invoices for your customers’ usage. As part of handling payment exceptions, you can retrieve the list of invoices with failed payment status and troubleshoot the issues. After you fix the problems, you can retry payments.
Reconciliation and refunds: Reconciliation involves comparing your billing records with actual usage data and payments to find discrepancies. After reconciliation, you may need to refund customers for billing adjustments. Common discrepancies include overcharges, duplicate charges, service interruptions, or pricing errors. To refund customers for these billing adjustments after invoice generation and payment processing, you can create credit notes. Credit notes can do the following:
- 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.
204 No Content response.
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. Include the following parameters:
| Parameter | Action |
|---|---|
invoice_idRequired, string | Set to the id returned when you listed the invoices. |
reasonstring | Set the reason for credit note creation. Possible values: DUPLICATED_CHARGE, PRODUCT_UNSATISFACTORY, ORDER_CHANGE, ORDER_CANCELLATION, FRAUDULENT_CHARGE, OTHER |
descriptionstring | Provide a description of the credit note for internal reference. |
credit_amountobject | Set the total amount to credit to the customer balance for future use. Only include value field (currency is inherited from invoice). |
refund_amountobject | Set the total amount to refund to the customer immediately. Only include value field (currency is inherited from invoice). |
itemsRequired, array | Provide an array of credit note items specifying which fees to credit or refund. Minimum 1 item required. |
items[].fee_idRequired, string | Set to the fee identifier from the original invoice. |
items[].amountRequired, object | Set the amount for this credit note item. Only include value field. |
201 Created response. The response includes the following parameters:
| Parameter | Description | Further action |
|---|---|---|
idstring | Unique identifier for the credit note. | Use this id when getting credit note details or voiding the credit note. |
credit_statusstring | Status of the credit amount. Possible values: AVAILABLE, CONSUMED, VOIDED. | Use this credit_status to filter credit notes. |
refund_statusstring | Status of the refund amount. Possible values: PENDING, SUCCEEDED, FAILED. | Use this refund_status to filter credit notes. |
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. |