Histórico de mensagens sobre custom_id em bolix

EXIBINDO CONVERSAS RECENTES:

Texto: custom_id
Canal: bolix
Avatar discord do usuario ebermheads

ebermheads

Ver Respostas

por exemplo nesse retorno abaixo mostra que foi recebido dia 30/08 mas isso foi compensado na conta dia 02/09 a data created_at posso considerar como data de compensacao em conta ?

{
"code": 200,
"data": [
{
"id": 1,
"type": "charge",
"custom_id": null,
"status": {
"current": "new",
"previous": null
},
"identifiers": {
"charge_id": 755957985
},
"created_at": "2024-08-23 09:43:32"
},
{
"id": 2,
"type": "charge",
"custom_id": null,
"status": {
"current": "waiting",
"previous": "new"
},
"identifiers": {
"charge_id": 755957985
},
"created_at": "2024-08-23 09:43:32"
},
{
"id": 3,
"type": "charge",
"custom_id": null,
"status": {
"current": "identified",
"previous": "waiting"
},
"identifiers": {
"charge_id": 755957985
},
"created_at": "2024-08-30 17:51:05"
},
{
"id": 4,
"type": "charge",
"custom_id": null,
"status": {
"current": "paid",
"previous": "identified"
},
"identifiers": {
"charge_id": 755957985
},
"created_at": "2024-09-02 07:12:09",
"value": 24990,
"received_by_bank_at": "2024-08-30"
}
]
}

Avatar discord do usuario _alexandrehenrique

_alexandrehenrique

Ver Respostas

ola @Efí eu estou recebendo status de notificação fora do que esta listado na documentação, e também não é o status real,

{
code: 200,
data: [
{
id: 1,
type: 'charge',
custom_id: null,
status: [Object],
identifiers: [Object],
created_at: '2024-04-26 11:57:58'
},
{
id: 2,
type: 'charge',
custom_id: null,
status: [Object],
identifiers: [Object],
created_at: '2024-04-26 11:57:58'
}
]
}

esse é um exemplo de um boleto recém criado os staus era par ser 'new' e 'waiting'

Avatar discord do usuario mayron1806

mayron1806

Ver Respostas

Bom dia, estou criando uma cobrança do tipo bolix, mas está sendo retornado como se fosse um boleto
Aqui esta o json de entrada "{
"items": [
{
"name": "Plano 1",
"value": 2000,
"amount": 1
}
],
"payment": {
"banking_billet": {
"expire_at": "2024-02-24",
"customer": {
"name": "mayron fernandes",
"cpf": ...,
"email": ...,
"phone_number": ...,
"birth": ...,
"address": {
...
}
}
}
},
"metadata": {
"custom_id": "f5e3fef8-01ca-4503-b08e-67aa194bf416",
"notification_url": ...
}
}", e aqui a resposta "{
barcode: '00000.00000 00000.000000 00000.000000 0 00000000000000',
link: 'https://download.gerencianet.com.br/v1/524831_14_SERCA5/524831-14-NEMCA0?sandbox=true',
billet_link: 'https://visualizacaosandbox.gerencianet.com.br/emissao/524831_14_SERCA5/A4XB-524831-14-NEMCA0',
pdf: {
charge: 'https://download.gerencianet.com.br/524831_14_SERCA5/524831-14-NEMCA0.pdf?sandbox=true'
},
expire_at: '2024-02-24',
charge_id: 44006663,
status: 'waiting',
total: 2000,
payment: 'banking_billet'
}"

Avatar discord do usuario jessica_efi

jessica_efi

O custom_id seria mais pra gerenciamento dentro do seu sistema mesmo.

Avatar discord do usuario edhercs

edhercs

Entendi, de qq forma tenho que armazenar o charge_id para fazer uma associação, não tem vantagem então em usar o custom_id