How to retrieve a single billing
Get invoice by Billing Number
ccurl --location 'https://api.sandbox.neofin.services/billing/122087378560242' \
--header 'api-key: key' \
--header 'secret-key: secret'
{
"customer_mail":"teste@neofin.com.br",
"fine":"",
"status":"pending",
"installments":1.0,
"nfe_number":"000000021",
"customer_phone":"+5533999751491",
"fees":"",
"by_mail":true,
"installment_type":"custom",
"billing_number":"122087378560242",
"created_by_name":"Integração API",
"customer_document":"24540707078",
"discount_before_payment":"0",
"integration_identifier":"Neofin-00000002241",
"due_date":1703114722.0,
"updated_at":1703084752.0,
"by_whatsapp":false,
"issued_at":1703084752.0,
"amount":20000.0,
"description":"Cobrança 000000021 Parcela 1 TESTE",
"billing_url":"https://sandbox.neofin.com.br/pay?billing=122087378560242",
"discount_before_payment_due_date":0.0,
"customer_name":"Empresa teste LTDA",
"type":"generic"
}
Get invoice by Integration Identifier
ccurl --location 'https://api.sandbox.neofin.services/billing/integration/your-integration-identifier-123' \
--header 'api-key: key' \
--header 'secret-key: secret'
{
"customer_mail":"teste@neofin.com.br",
"fine":"",
"status":"pending",
"installments":1.0,
"nfe_number":"000000021",
"customer_phone":"+5533999751491",
"fees":"",
"by_mail":true,
"installment_type":"custom",
"billing_number":"122087378560242",
"created_by_name":"Integração API",
"customer_document":"24540707078",
"discount_before_payment":"0",
"integration_identifier":"Neofin-00000002241",
"due_date":1703114722.0,
"updated_at":1703084752.0,
"by_whatsapp":false,
"issued_at":1703084752.0,
"amount":20000.0,
"description":"Cobrança 000000021 Parcela 1 TESTE",
"billing_url":"https://sandbox.neofin.com.br/pay?billing=122087378560242",
"discount_before_payment_due_date":0.0,
"customer_name":"Empresa teste LTDA",
"type":"generic"
}