View as Markdown
API Spec (JSON)
API Spec (YAML)
Compact modeHides field descriptions and other prose for a more compact, scannable view of the API reference.Client CredentialsToken URLhttps://api-m.sandbox.paypal.com/v1/oauth2/tokenInheaderScopes
readwriteapplication/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/credit-notes/string/void"{ "id": "cn_01H2XT1G7N8E2JHJKBVPDS0TQD", "sequential_id": 3, "billing_entity_code": "lex_corp", "number": "CN-2023-0001", "invoice_id": "inv_01H2XT1G7N8E2JHJKBVPDS0TQD", "invoice_number": "INV-2023-001", "issuing_date": "2023-06-01", "credit_status": "VOIDED", "refund_status": "SUCCEEDED", "reason": "ORDER_CANCELLATION", "description": "Refund for cancelled subscription", "total_amount": { "value": 50, "currency_code": "USD" }, "credit_amount": { "value": 0, "currency_code": "USD" }, "refund_amount": { "value": 0, "currency_code": "USD" }, "balance_amount": { "value": 0, "currency_code": "USD" }, "taxes_amount": { "value": 0, "currency_code": "USD" }, "sub_total_excluding_taxes_amount": { "value": 0, "currency_code": "USD" }, "taxes_rate": 0.2, "created_at": "2023-05-10T14:32:18Z", "updated_at": "2023-06-15T10:45:22Z"}