POST
/
payinSources

Authorizations

Authorization
string
header
required

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

Body

application/json
bankAccount
object
required
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
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.

reference
string

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

Response

200 - application/json
authUrl
string

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

createdAt
string

ISO string indicating when the Payin Source was created.

customerDetails
object
customerId
string

Reference to customer who owns this Payin Source.

description
string

An extra metadata field that can be included for visibility.

id
string

Unique identifier for this 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.

redirectUrl
string

URL where the customer will be redirected after auth flow.

reference
string

Reference sent in by merchant to identify Payin Source.

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
type
enum<string>

Type of Payin Source created.

Available options:
bankAccount,
bancolombiaToken,
nequiToken
updatedAt
string

ISO string indicating when the Payin Source was last updated.