/v1/checkout/payment-links/{publicToken}/sessionsAbrir sessão a partir de link de pagamento
Usado pela página pública /l/:publicToken do checkout. Cria uma sessão com os itens do link e devolve a checkoutUrl (URL absoluta, /s/:token) para o cliente concluir o PIX. Corpo JSON opcional: expiresAt (ISO 8601). Não aceita metadados arbitrários. O Host da requisição deve corresponder à empresa do link quando há validação de domínio.
Autenticação
Acesso público pelo token da URL. Não exponha sua chave secreta.
Parâmetros
publicTokenURL · stringObrigatórioToken público do link (mesmo valor usado no path /l/{publicToken}).
Corpo da requisição
application/json · Opcional
attributionobjectOpcionalOpcional. Sinais de origem presentes no link de pagamento.
Ver campos: attribution
utm_sourcestringOpcionalutm_mediumstringOpcionalutm_campaignstringOpcionalutm_contentstringOpcionalutm_termstringOpcionalsrcstringOpcionalsckstringOpcionalfbclidstringOpcionalgclidstringOpcionalttclidstringOpcionalmsclkidstringOpcionalfbcstringOpcionalfbpstringOpcionalamountCentsintegerOpcionalObrigatório para links CUSTOMER_ENTERED quando allowCustomAmount=false (deve ser um preset). Opcional quando o comprador informa outro valor.
expiresAtstringOpcionalOpcional. Data de expiração desejada; o servidor aplica limites máximos.
Respostas
Entender erros e retentativas →200Sessão criada; redirecionar o browser para `checkoutUrl`
sessionIdstringObrigatórioIdentificador interno da sessão criada.
expiresAtstringObrigatóriocheckoutUrlstringObrigatórioURL absoluta para o cliente abrir o checkout (path /s/:token). Se a empresa tiver domínio customizado ativo para checkout, o host segue a mesma regra da criação de sessão autenticada.
idempotentReplayfalseObrigatórioReservado para evolução futura; hoje sempre false.
400Dados inválidos ou regra da operação não atendida. Corrija o payload antes de repetir.
successbooleanOpcionalerrorobjectOpcionalStandard API error object. Fields traceId, timestamp, path, and details are optional and additive for integrators. Messages are provider-agnostic (no acquirer/PSP brand names); use error.code, details, and traceId when contacting support.
Ver campos: error
codestringOpcionalStable machine-readable error code (e.g. VALIDATION_ERROR, AUTHENTICATION_ERROR, DUPLICATE_WITHDRAWAL_RISK)
messagestringOpcionalHuman-readable message without acquirer or PSP identifiers
detailsTipo não especificado no contratoOpcionalOptional structured payload: validation field list, retryAfter seconds, existingWithdrawalId for duplicate withdrawal risk, etc. Shape varies by code.
integrationErrorTipo não especificado no contratoOpcionalOptional structured integration hint (transactions). Same additive rules as details.
traceIdstringOpcionalCorrelation / trace identifier for support and logs
timestampstringOpcionalWhen the error was materialized (ISO 8601)
pathstringOpcionalRequest path that produced the error
403Acesso não permitido para este host ou configuração da empresa.
successbooleanOpcionalerrorobjectOpcionalStandard API error object. Fields traceId, timestamp, path, and details are optional and additive for integrators. Messages are provider-agnostic (no acquirer/PSP brand names); use error.code, details, and traceId when contacting support.
Ver campos: error
codestringOpcionalStable machine-readable error code (e.g. VALIDATION_ERROR, AUTHENTICATION_ERROR, DUPLICATE_WITHDRAWAL_RISK)
messagestringOpcionalHuman-readable message without acquirer or PSP identifiers
detailsTipo não especificado no contratoOpcionalOptional structured payload: validation field list, retryAfter seconds, existingWithdrawalId for duplicate withdrawal risk, etc. Shape varies by code.
integrationErrorTipo não especificado no contratoOpcionalOptional structured integration hint (transactions). Same additive rules as details.
traceIdstringOpcionalCorrelation / trace identifier for support and logs
timestampstringOpcionalWhen the error was materialized (ISO 8601)
pathstringOpcionalRequest path that produced the error
404Link não encontrado ou inativo
successbooleanOpcionalerrorobjectOpcionalStandard API error object. Fields traceId, timestamp, path, and details are optional and additive for integrators. Messages are provider-agnostic (no acquirer/PSP brand names); use error.code, details, and traceId when contacting support.
Ver campos: error
codestringOpcionalStable machine-readable error code (e.g. VALIDATION_ERROR, AUTHENTICATION_ERROR, DUPLICATE_WITHDRAWAL_RISK)
messagestringOpcionalHuman-readable message without acquirer or PSP identifiers
detailsTipo não especificado no contratoOpcionalOptional structured payload: validation field list, retryAfter seconds, existingWithdrawalId for duplicate withdrawal risk, etc. Shape varies by code.
integrationErrorTipo não especificado no contratoOpcionalOptional structured integration hint (transactions). Same additive rules as details.
traceIdstringOpcionalCorrelation / trace identifier for support and logs
timestampstringOpcionalWhen the error was materialized (ISO 8601)
pathstringOpcionalRequest path that produced the error
409Criação em andamento; repetir em instantes
successbooleanOpcionalerrorobjectOpcionalStandard API error object. Fields traceId, timestamp, path, and details are optional and additive for integrators. Messages are provider-agnostic (no acquirer/PSP brand names); use error.code, details, and traceId when contacting support.
Ver campos: error
codestringOpcionalStable machine-readable error code (e.g. VALIDATION_ERROR, AUTHENTICATION_ERROR, DUPLICATE_WITHDRAWAL_RISK)
messagestringOpcionalHuman-readable message without acquirer or PSP identifiers
detailsTipo não especificado no contratoOpcionalOptional structured payload: validation field list, retryAfter seconds, existingWithdrawalId for duplicate withdrawal risk, etc. Shape varies by code.
integrationErrorTipo não especificado no contratoOpcionalOptional structured integration hint (transactions). Same additive rules as details.
traceIdstringOpcionalCorrelation / trace identifier for support and logs
timestampstringOpcionalWhen the error was materialized (ISO 8601)
pathstringOpcionalRequest path that produced the error
429Limite de chamadas atingido. Respeite Retry-After quando presente.
successbooleanOpcionalerrorobjectOpcionalStandard API error object. Fields traceId, timestamp, path, and details are optional and additive for integrators. Messages are provider-agnostic (no acquirer/PSP brand names); use error.code, details, and traceId when contacting support.
Ver campos: error
codestringOpcionalStable machine-readable error code (e.g. VALIDATION_ERROR, AUTHENTICATION_ERROR, DUPLICATE_WITHDRAWAL_RISK)
messagestringOpcionalHuman-readable message without acquirer or PSP identifiers
detailsTipo não especificado no contratoOpcionalOptional structured payload: validation field list, retryAfter seconds, existingWithdrawalId for duplicate withdrawal risk, etc. Shape varies by code.
integrationErrorTipo não especificado no contratoOpcionalOptional structured integration hint (transactions). Same additive rules as details.
traceIdstringOpcionalCorrelation / trace identifier for support and logs
timestampstringOpcionalWhen the error was materialized (ISO 8601)
pathstringOpcionalRequest path that produced the error
500Erro interno. O resultado pode ser incerto; consulte o recurso antes de iniciar outra intenção.
successbooleanOpcionalerrorobjectOpcionalStandard API error object. Fields traceId, timestamp, path, and details are optional and additive for integrators. Messages are provider-agnostic (no acquirer/PSP brand names); use error.code, details, and traceId when contacting support.
Ver campos: error
codestringOpcionalStable machine-readable error code (e.g. VALIDATION_ERROR, AUTHENTICATION_ERROR, DUPLICATE_WITHDRAWAL_RISK)
messagestringOpcionalHuman-readable message without acquirer or PSP identifiers
detailsTipo não especificado no contratoOpcionalOptional structured payload: validation field list, retryAfter seconds, existingWithdrawalId for duplicate withdrawal risk, etc. Shape varies by code.
integrationErrorTipo não especificado no contratoOpcionalOptional structured integration hint (transactions). Same additive rules as details.
traceIdstringOpcionalCorrelation / trace identifier for support and logs
timestampstringOpcionalWhen the error was materialized (ISO 8601)
pathstringOpcionalRequest path that produced the error
As descrições técnicas da API são publicadas em português.

