post
https://www.pelcro.com/api/v1/sdk/invoices//pay
Pay a standalone customer invoice with an existing source or a new card.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Overview
Pay a standalone invoice belonging to the authenticated customer. Pay with either an existing chargeable card (source_id) or a new card (payment_gateway + gateway_token). On success the response is the customer resource with a fresh JWT; when the charge needs 3D Secure, it includes a payment_intent (status requires_action) for your front end to complete.
Example:
curl --request POST \n --url 'https://www.pelcro.com/api/v1/sdk/invoices/101/pay?site_id=1232' \n --header 'Authorization: Bearer <JWT>' \n --header 'Content-Type: application/json' \n --data '{ "payment_gateway": "stripe", "gateway_token": "pm_card_visa" }'Conditional Requirements
- Provide either
source_id(an existing chargeable source) or bothpayment_gatewayandgateway_token. - The invoice must belong to the customer and not be paid, void, or uncollectible.
- A declined card returns
404with the gateway message; an unknown invoice also returns404.

