Criar link de pagamento
Cria e retorna um link de pagamento para buyer realizar o pagamento de uma cobrança
Autorizações
Corpo
titlestringObrigatórioExample:
Link de Pagamento
valuenumber · doubleObrigatórioExample:
100
typestring · enumObrigatórioExample:
SINGLE
Valores possíveis: maxInstallmentsintegerOpcionalExample:
12
expirationDatestring · dateOpcionalExample:
2024-12-31
Respostas
201
Link de pagamento criado com sucesso
application/json
400
Requisição inválida
application/json
401
Não autorizado
application/json
post
POST /v1/payment-links HTTP/1.1
Host: api.barte.com
X-Token-Api: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 108
{
"title": "Link de Pagamento",
"value": 100,
"type": "SINGLE",
"maxInstallments": 12,
"expirationDate": "2024-12-31"
}
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"title": "Link de Pagamento",
"value": 100,
"type": "SINGLE",
"status": "ACTIVE",
"url": "https://pay.barte.com/link/550e8400"
}
Atualizado
Isto foi útil?