Create source (publishable)
Creates a payment source. This endpoint accepts unauthenticated calls from the browser (publishable flow), so the request is identified by the gateway/customer/payment context rather than a workspace header.
Authorizations
Use header Authorization: Token <api_token>.
API tokens are obtained from the Piriod dashboard.
Body
A payment source: either a single-use intent (e.g. one-off bank transfer) or a reusable tokenization (e.g. saved card).
Gateway ID (e.g. transbank, stripe, ach_transfer).
Customer ID. Required for reusable sources.
single, reusable 256URL the payer is sent to after a redirect-flow tokenization.
Client metadata captured at creation time (IP, user agent, etc.).
Response
Source created.
A payment source: either a single-use intent (e.g. one-off bank transfer) or a reusable tokenization (e.g. saved card).
Gateway ID (e.g. transbank, stripe, ach_transfer).
Customer ID. Required for reusable sources.
single, reusable failed, pending, requires_authorization, waiting_authorization, consumed, chargeable, finalized 256URL the payer is sent to after a redirect-flow tokenization.
Gateway-specific payload (e.g. redirect form fields, token).
Client metadata captured at creation time (IP, user agent, etc.).
Card details when the source represents a tokenized card.
