Create capture
documentedCreate a payment capture (for a purchase that is already authorized or a direct capture).
POST /v2/payments/capturesPaymentsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api-m.paypal.com/v2/payments/authorizations/{{$authorization_id}}/capture" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "PayPal-Request-Id: {{$paypal_request_id}}" \
-d '{"amount": {"currency_code": "{{$currency_code}}", "value": "{{$amount}}"}, "invoice_id": "{{$invoice_id}}", "note_to_payer": "{{$note_to_payer}}", "final_capture": {{$final_capture}}, "soft_descriptor": "{{$soft_descriptor}}"}'