API reference
Payment intents
Common headers
Every endpoint on this page takes these headers.
| Name | Description |
|---|---|
ZeroPoint-Accountheader, string or null | Optional. The merchant (mch_...) this request acts on, when the body has no merchant_id: the analogue of Stripe's Stripe-Account header. |
Stripe-Accountheader, string or null | Optional. A synonym of ZeroPoint-Account; holds a merchant id (mch_...). |
Common responses
Every endpoint on this page can answer with these.
| Status | Description | Body |
|---|---|---|
| 200 | Successful Response | object |
| 400 | Invalid request. A parameter, header or body field failed validation (code parameter_invalid, with param naming it), or another invalid_request code this operation's description lists. Fix the request; do not retry it unchanged. | ErrorResponse |
| 401 | The API key is missing, malformed, unknown or revoked (api_key_missing, api_key_malformed, api_key_invalid). Fix the Authorization header. | ErrorResponse |
| 403 | The key is valid but may not do this: platform_suspended, insufficient_scope, live_mode_unavailable, or a permission code this operation's description lists (for example processor_currency_unsupported). | ErrorResponse |
| 404 | No such resource for this platform (resource_missing), or another not_found code this operation's description lists. | ErrorResponse |
| 429 | Too many requests (rate_limited). Wait for the Retry-After header, then retry. | ErrorResponse |
Retrieve a payment as a PaymentIntent
GET/
Read only.
Returns the payment (pay_...) in Stripe's PaymentIntent shape, for code that follows a checkout session's or an invoice's payment_intent. status follows Stripe's names, money first: processing while the outcome is not known (including a failed payment whose outcome is unverified, which can still become a capture), succeeded, requires_payment_method after a proven failure, canceled; our own state and failure code are in zeropoint_state and zeropoint_failure_code.
Arguments: payment_intent_id (pay_...). With the ZeroPoint-Account (or Stripe-Account) header, a payment of another merchant is resource_missing. expand[] expands nothing here.
Errors: resource_missing, parameter_unavailable.
Next step: GET /v1/payments/{id} for the full payment.
Parameters
| Name | Description |
|---|---|
payment_intent_idpath, stringRequired |
Responses
Example
curl -X GET "https://api.zeropointapp.com/v1/payment_intents/{payment_intent_id}" \
-H "Authorization: Bearer zp_test_..."List payments as PaymentIntents
GET/
Read only. Lists payments newest first in Stripe's PaymentIntent shape. status follows Stripe's names, money first: processing while the outcome is not known (including a failed payment whose outcome is unverified, which can still become a capture), succeeded, requires_payment_method after a proven failure, canceled; our own state and failure code are in zeropoint_state and zeropoint_failure_code.
Arguments: customer (cus_...: payments of that customer's invoices, checkout sessions and saved cards), limit, starting_after (or cursor). With the ZeroPoint-Account (or Stripe-Account) header: only that merchant's payments. Any other parameter is refused by name.
Errors: parameter_invalid, parameter_unknown, parameter_unavailable.
Next step: GET /v1/payment_intents/{id}.
Parameters
| Name | Description |
|---|---|
customerquery, string or null | |
limitquery, integer | Items per page, default 20. |
cursorquery, string or null | next_cursor from the previous page. |
starting_afterquery, string or null | Stripe's name for cursor: the id of the last object of the previous page. Same value, same meaning. Send cursor or starting_after, not both. |
ending_beforequery, string or null | Not supported: answers 400 parameter_unavailable. Lists page newest first; page forward with starting_after. |
Responses
Example
curl -X GET "https://api.zeropointapp.com/v1/payment_intents" \
-H "Authorization: Bearer zp_test_..."