Saltar al contenido principal
GET
Get a payment link

Autorizaciones

x-api-key
string
header
requerido

Parámetros de ruta

id
string<uuid>
requerido

Respuesta

Success.

id
string<uuid>
requerido
url
string<uri>
requerido

The checkout URL to send the customer to.

type
enum<string>
requerido
Opciones disponibles:
PRODUCT_BASED,
FIXED_AMOUNT,
SUBSCRIPTION,
FLEXIBLE_AMOUNT
status
enum<string>
requerido
Opciones disponibles:
ACTIVE,
INACTIVE
archived
boolean
version
integer

Revision counter, bumped by every edit.

title
string | null
description
string | null
amount
number | null

Null on product-based links, where the total comes from the products.

currency
string | null

MXN or USD. A USD price is charged in MXN at the exchange rate of the moment the customer pays.

currentUsage
integer | null
maxUsage
integer | null
calculateTaxes
boolean
requestShippingAddress
boolean
requestPhoneNumber
boolean
allowPromotionCodes
boolean
callToActionMessage
string | null
onSuccessAction
string | null
redirectUrl
string | null
customConfirmationMessage
string | null
allowedTerms
integer[] | null

The installment plans the checkout offers, as numbers of monthly installments (1 is a single payment). null offers every plan active on your account. Always null on SUBSCRIPTION links, which are charged in a single payment every cycle.

Ejemplo:
paymentMethods
enum<string>[] | null

The ways to pay the checkout offers: CARD, BANK_TRANSFER (every bank transfer your account takes: in Mexico, SPEI to a CLABE made for the purchase) and SPEI (only SPEI transfers). null offers every method available to your account, including any added later. Bank transfers are only shown from your account's SPEI minimum amount up, and never on SUBSCRIPTION links.

Opciones disponibles:
CARD,
BANK_TRANSFER,
SPEI
Ejemplo:
defaultPaymentMethod
enum<string> | null

The method the checkout opens on. null opens on the first one offered.

Opciones disponibles:
CARD,
BANK_TRANSFER,
SPEI,
null
Ejemplo:

"BANK_TRANSFER"

bankAccountId
string<uuid> | null

The bank account everything this link collects is deposited in. null follows your deposit rule.

billingPeriod
string | null

Subscription links only.

subscriptionDurationType
string | null

Subscription links only.

fixedBillingCycles
integer | null

Subscription links only.

trialPeriodValue
integer | null

Subscription links only.

trialPeriodUnit
string | null

Subscription links only.

createdAt
string<date-time>
updatedAt
string<date-time>
fields
object[]
products
object[]