v1

latestOpenAPI 3.0.32026-08-0623677345.2 KB
Payments

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.

post/sources/

Request body

idinteger
customerstring nullable

Customer ID. Required for reusable sources.

gatewaystring required

Gateway ID (e.g. transbank, stripe, ach_transfer).

usage'single' | 'reusable'
status'failed' | 'pending' | 'requires_authorization' | 'waiting_authorization' | 'consumed' | 'chargeable' | 'finalized'
amountnumber nullable
descriptionstring nullable
return_urlstring uri nullable

URL the payer is sent to after a redirect-flow tokenization.

gateway_dataobject

Gateway-specific payload (e.g. redirect form fields, token).

clientobject

Client metadata captured at creation time (IP, user agent, etc.).

metadataobject
test_modeboolean
createdstring date-time
updatedstring date-time

Response

Source created.

idinteger
customerstring nullable

Customer ID. Required for reusable sources.

gatewaystring required

Gateway ID (e.g. transbank, stripe, ach_transfer).

usage'single' | 'reusable'
status'failed' | 'pending' | 'requires_authorization' | 'waiting_authorization' | 'consumed' | 'chargeable' | 'finalized'
amountnumber nullable
descriptionstring nullable
return_urlstring uri nullable

URL the payer is sent to after a redirect-flow tokenization.

gateway_dataobject

Gateway-specific payload (e.g. redirect form fields, token).

clientobject

Client metadata captured at creation time (IP, user agent, etc.).

metadataobject
test_modeboolean
createdstring date-time
updatedstring date-time