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.Deprecation notice: TheCaptures and processes an authorization, by ID. The original payment call must specify an intent of/v1/paymentsendpoint is deprecated. Use the/v2/paymentsendpoint instead. For details, see PayPal Checkout Basic Integration.
authorize.Oauth 2.0 authentication
In: header
Scope: https://api.paypal.com/v1/payments/.*
application/json
TypeScript Definitions
Use the request body type in TypeScript.
amountobject<amount>OptionaltotalstringRequiredsubtotalstringOptionalNote: For an order authorization or capture, you cannot include the subtotal parameter.handling_feestringOptionalNote: For an order authorization or capture, you cannot include the handling_fee parameter.shipping_discountstringOptionalNote: For an order authorization or capture, you cannot include the shipping_discount parameter.insurancestringOptionalNote: For an order authorization or capture, you cannot include the insurance parameter.application/json
application/json
curl -X POST "https://example.com/v1/payments/authorization/string/capture" \ -H "Content-Type: application/json" \ -d '{ "amount": { "currency": "USD", "total": "4.54" }, "is_final_capture": true }'{ "id": "string", "amount": { "currency": "string", "total": "string", "details": { "subtotal": "string", "shipping": "string", "tax": "string", "handling_fee": "string", "shipping_discount": "string", "insurance": "string", "gift_wrap": "string" } }, "is_final_capture": false, "state": "pending", "reason_code": "CHARGEBACK", "parent_payment": "string", "invoice_number": "string", "transaction_fee": { "currency": "string", "value": "string" }, "transaction_fee_in_receivable_currency": { "currency": "string", "value": "string" }, "receivable_amount": { "currency": "string", "value": "string" }, "exchange_rate": "string", "note_to_payer": "string", "create_time": "2019-08-24T14:15:22Z", "update_time": "2019-08-24T14:15:22Z", "links": [ { "href": "string", "rel": "string", "method": "GET" } ]}