Search Payment Links
API data
API Gateway
This API is used for payment gateway operations:
- Production: https://api.sopague.com.br/gateway
- Sandbox: https://api-hmg.sopague.com.br/gateway
- Architecture: Representational State Transfer (REST)
Payment link lookup
You can retrieve details of a payment link by its ID by calling the endpoint below:
GET /v1/paymentlink/information?id=<guid>
Via REST request.
Data dictionary - Parameters
| PROPERTY | DESCRIPTION | TYPE | LOCATION | REQUIRED |
|---|---|---|---|---|
| id | Identifier of the payment link to retrieve. | guid | query | yes |
- 🟢 200
- 🔴 400
- 🔴 500
Success
{
"id": "aed32670-c3e5-4192-8ab0-0e96f92e3408",
"sellerDocumentNumber": "28249206000179",
"sellerName": "SO PAGUE ",
"description": "Teste",
"value": 10.50,
// Apenas um dos campos abaixo vai estar preenchido: qttyInstallments ou qttyInstallmentsCustom
"qttyInstallments": 12,
"qttyInstallmentsCustom": [3, 6, 9, 12],
"qttyInstallmentsIntFree": 6,
"installmentsFee": 1.5,
"operationDate": "<datetime>",
"expirationDate": "<datetime>",
"link": ".../teste/aed32670-c3e5-4192-8ab0-0e96f92e3408",
"message": "Olá! Estou enviando um link para você fazer o pagamento para NOME COBRADOR (01234567890123).\r\n\r\nDescrição: Teste\r\nValor: R$ 10,50\r\nVocê pode pagar em até 12x!\r\n\r\nLink: .../teste/aed32670-c3e5-4192-8ab0-0e96f92e3408\r\n\r\nInstruções: Basta clicar no link, preencher os dados solicitados, escolher a opção de pagamento que melhor atende suas necessidades e clicar em Pagar. Você pode pagar de onde quiser! :)",
"status": 9,
"statusFormat": "Desativado",
"paymentDate": "<datetime>",
"paymentValue": null,
"paymentQttyInstallments": 6,
"paymentAuthorizationCode": "149674",
"paymentResultId": "020080286103040952150000006201850000000000",
"history": [
{
"id": "05874f86-9167-4f02-8af5-4132d4541a4b",
"idPaymentLink": "aed32670-c3e5-4192-8ab0-0e96f92e3408",
"reason": null,
"historyDate": "<datetime>",
"status": 1,
"statusFormat": "Em Aberto"
},
{
"id": "d12192a0-1670-4d0a-a57d-5208d8d1652c",
"idPaymentLink": "aed32670-c3e5-4192-8ab0-0e96f92e3408",
"reason": null,
"historyDate": "<datetime>",
"status": 9,
"statusFormat": "Desativado"
}
]
}