Listar com base no e2e
GET
/e2e/:end2end
Aqui você pode buscar um payment com base no seu end2end.
Aviso
Essa rota não possui paginação.
Parâmetros
Nome | Tipo | Descrição | Obrigatório |
---|---|---|---|
end2end | string | End2end criado no momento que o cashin é pago | Sim |
payment | boolean | Buscará o payment relacionado àquele end2end | Sim |
provider_notification | boolean | Buscará a notificação do provider relacionado àquele end2end | Sim |
Exemplo de Reposta
Em caso de payment
como true
:
{
"cashins": [
{
"external_id": "551ffe3f-61c8-4730-9baf-bbdbc9624e16",
"cashin_id": "1977a5f172464112a313e30c972c4666",
"cashin_status": "PAID",
"payer_document": "12345678910",
"payer_name": "ZEMOBANK",
"cashin_amount": 2500,
"provider": "starkbank",
"provider_id": "6e5d1def90974b9c99a8e734648fd9df",
"br_code": "00020101021226790014br.gov.bcb.pix2557brcode.starkinfra.com/v2/6e5d1def90974b9c99a8e734648fd9df5204000053039865802BR5925Zemo pay Tecnologia em Pa6009Sao Paulo62070503***630464BE",
"paid_at": "2023-06-01T00:00:03",
"end2end": "e31872495202305312359o5iw8bg5zko",
"paid_by_document": "123.456.789-10",
"paid_by_name": "John Doe",
"paid_amount": 0,
"type": "pix",
"expiration": 360,
"tags": [
"e31872495202305312359o5iw8bg5zko",
"dynamic-brcode/5627af8642d749049c4e60e4a03f7ed7",
"cashin:pix:zemo@bank:810e6a407dfa4104b0c16721a837fbe5",
"d5627af8642d749049c4e60e4a03f7ed7"
],
"created_at": "2023-06-01T00:07:14.560",
"updated_at": "2023-06-01T00:07:14.560"
}
]
}
Em caso de provider_notification
como true
:
{
"provider": "starkbank",
"provider_id": "6e5d1def90974b9c99a8e734648fd9df",
"end2end": "e31872495202305312359o5iw8bg5zko",
"type": "",
"data": {
"event": {
"created": "2023-06-01T00:01:43.041277+00:00",
"id": "5497845492219904",
"log": {
"created": "2023-06-01T00:00:03.302488+00:00",
"deposit": {
"amount": 2500,
"created": "2023-06-01T00:00:00.491801+00:00",
"id": "6105374698504192",
"name": "John Doe",
"status": "created",
"tags": [
"e31872495202305312359o5iw8bg5zko",
"dynamic-brcode/5627af8642d749049c4e60e4a03f7ed7",
"cashin:pix:000001@zemo:810e6a407dfa4104b0c16721a837fbe5",
"d5627af8642d749049c4e60e4a03f7ed7"
],
"taxId": "123.456.789-10",
"type": "pix",
"updated": "2023-06-01T00:00:03.302524+00:00"
},
"errors": [],
"id": "5586414336999424",
"type": "credited"
},
"subscription": "deposit"
}
}
}