POST
/
payinSources

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
customerId
string
required

The ID of the customer for whom the Payin Source is created.

redirectUrl
string
required

URL to which the customer will be redirected after the authorization process.

type
enum<string>
required
Available options:
bankAccount
bankAccount
object
required
reference
string

An optional reference provided by the merchant to identify the Payin Source.

description
string

An optional description of the Payin Source.

partialPayinsEnabled
boolean

Only available for Bancolombia. Partial debit will be made if the account does not have sufficient funds to debit the total amount. By default, no partial debits will be made.

Response

200 - application/json
id
string

Unique identifier for this Payin Source.

reference
string

Reference sent in by merchant to identify Payin Source.

description
string

An extra metadata field that can be included for visibility.

customerId
string

Reference to customer who owns this Payin Source.

customerDetails
object
status
enum<string>

Status of the Payin Source.

Available options:
pending,
processing,
active,
cancelled
statusMessage
enum<string>

Additional detail on the status. Only present when status is "cancelled".

Available options:
AUTHENTICATION_FAILED,
CUSTOMER_CANCELLATION,
DECLINED_BY_BANK,
EXPIRED,
INVALID_ACCOUNT,
NOT_ENOUGH_FUNDS,
ERROR
authUrl
string

URL where the customer should be redirected to complete the account authentication and debit authorization.

redirectUrl
string

URL where the customer will be redirected after auth flow.

partialPayinsEnabled
boolean

Only available for Bancolombia. Partial debit will be made if the account does not have sufficient funds to debit the total amount. By default, no partial debits will be made.

type
enum<string>

Type of Payin Source created.

Available options:
bankAccount,
bancolombiaToken,
nequiToken
createdAt
string

ISO string indicating when the Payin Source was created.

updatedAt
string

ISO string indicating when the Payin Source was last updated.