Faturas
Enviar uma fatura
Envia uma invoice.
curl -X POST "https://api.chargefy.io/v1/invoices/inv_6yPm1D3rYne168Ro/send" \
-H "Authorization: Bearer {{API_KEY}}"
{
"id": "inv_6yPm1D3rYne168Ro",
"object": "invoice",
"allow_late_payment": true,
"amount_credit_balance_applied": 0,
"amount_discount": 0,
"amount_due": 12990,
"amount_due_now": 12990,
"amount_paid": 0,
"amount_remaining": 12990,
"amount_subtotal": 12990,
"amount_tax": 0,
"amount_total": 12990,
"attempt_count": 0,
"billing_reason": "manual",
"collection_method": "send_invoice",
"created_at": "2026-05-19T18:00:00Z",
"currency": "brl",
"customer": "cus_4r67tzkmR4VDrS3W",
"customer_billing_address": {
"city": "São Paulo",
"country": "BR",
"line1": "Av. Paulista, 1000",
"line2": "Conjunto 101",
"postal_code": "01310-100",
"state": "SP"
},
"customer_billing_name": "Cliente Exemplo",
"customer_document": "12345678901",
"customer_document_type": "cpf",
"customer_email": "nome@email.com",
"customer_name": "Cliente Exemplo",
"default_payment_method": null,
"description": "Assinatura Plano Pro - Maio/2026",
"due_date": "2026-05-26T12:00:00Z",
"ending_balance": 0,
"hosted_invoice_url": "https://billing.chargefy.io/invoice/ilink_8Pz6wKf3tVn2Qa9LmXr4Bc7D",
"interest": {
"percent_per_month": 1
},
"interest_amount": null,
"invoice_pdf_url": "https://billing.chargefy.io/invoice/inv_6yPm1D3rYne168Ro.pdf",
"late_fee": {
"type": "fixed",
"value": 200
},
"late_fee_amount": null,
"latest_charge": null,
"line_items": [
{
"id": "ili_KGE7gxAbDw46BHo8",
"object": "invoice_line_item",
"amount_discount": 0,
"amount_subtotal": 12990,
"amount_tax": 0,
"amount_total": 12990,
"currency": "brl",
"description": "Plano mensal",
"discountable": true,
"metadata": {},
"period_end": null,
"period_start": null,
"position": 0,
"price": "price_WMY6AKGuJPditePB",
"price_data": null,
"product": "prod_esXR1KogrBHYRK6k",
"proration": false,
"proration_details": {},
"quantity": 1,
"recurring_interval": null,
"recurring_interval_count": null,
"subscription_item": null,
"unit_amount": 12990
}
],
"livemode": true,
"marked_uncollectible_at": null,
"metadata": {},
"next_payment_attempt": null,
"number": "K7M2-0001",
"paid_at": null,
"payment_intent": null,
"payment_method_types": [
"pix",
"boleto",
"credit_card"
],
"starting_balance": 0,
"statement_descriptor": "PLANO PRO",
"status": "open",
"subscription": null,
"updated_at": "2026-05-19T18:00:00Z",
"voided_at": null
}
Envia a invoice
open para o email do customer usando uma URL ativa em
hosted_invoice_url. A resposta retorna a invoice completa.
string
required
ID da invoice (
inv_*).curl -X POST "https://api.chargefy.io/v1/invoices/inv_6yPm1D3rYne168Ro/send" \
-H "Authorization: Bearer {{API_KEY}}"
{
"id": "inv_6yPm1D3rYne168Ro",
"object": "invoice",
"allow_late_payment": true,
"amount_credit_balance_applied": 0,
"amount_discount": 0,
"amount_due": 12990,
"amount_due_now": 12990,
"amount_paid": 0,
"amount_remaining": 12990,
"amount_subtotal": 12990,
"amount_tax": 0,
"amount_total": 12990,
"attempt_count": 0,
"billing_reason": "manual",
"collection_method": "send_invoice",
"created_at": "2026-05-19T18:00:00Z",
"currency": "brl",
"customer": "cus_4r67tzkmR4VDrS3W",
"customer_billing_address": {
"city": "São Paulo",
"country": "BR",
"line1": "Av. Paulista, 1000",
"line2": "Conjunto 101",
"postal_code": "01310-100",
"state": "SP"
},
"customer_billing_name": "Cliente Exemplo",
"customer_document": "12345678901",
"customer_document_type": "cpf",
"customer_email": "nome@email.com",
"customer_name": "Cliente Exemplo",
"default_payment_method": null,
"description": "Assinatura Plano Pro - Maio/2026",
"due_date": "2026-05-26T12:00:00Z",
"ending_balance": 0,
"hosted_invoice_url": "https://billing.chargefy.io/invoice/ilink_8Pz6wKf3tVn2Qa9LmXr4Bc7D",
"interest": {
"percent_per_month": 1
},
"interest_amount": null,
"invoice_pdf_url": "https://billing.chargefy.io/invoice/inv_6yPm1D3rYne168Ro.pdf",
"late_fee": {
"type": "fixed",
"value": 200
},
"late_fee_amount": null,
"latest_charge": null,
"line_items": [
{
"id": "ili_KGE7gxAbDw46BHo8",
"object": "invoice_line_item",
"amount_discount": 0,
"amount_subtotal": 12990,
"amount_tax": 0,
"amount_total": 12990,
"currency": "brl",
"description": "Plano mensal",
"discountable": true,
"metadata": {},
"period_end": null,
"period_start": null,
"position": 0,
"price": "price_WMY6AKGuJPditePB",
"price_data": null,
"product": "prod_esXR1KogrBHYRK6k",
"proration": false,
"proration_details": {},
"quantity": 1,
"recurring_interval": null,
"recurring_interval_count": null,
"subscription_item": null,
"unit_amount": 12990
}
],
"livemode": true,
"marked_uncollectible_at": null,
"metadata": {},
"next_payment_attempt": null,
"number": "K7M2-0001",
"paid_at": null,
"payment_intent": null,
"payment_method_types": [
"pix",
"boleto",
"credit_card"
],
"starting_balance": 0,
"statement_descriptor": "PLANO PRO",
"status": "open",
"subscription": null,
"updated_at": "2026-05-19T18:00:00Z",
"voided_at": null
}
⌘I
curl -X POST "https://api.chargefy.io/v1/invoices/inv_6yPm1D3rYne168Ro/send" \
-H "Authorization: Bearer {{API_KEY}}"
{
"id": "inv_6yPm1D3rYne168Ro",
"object": "invoice",
"allow_late_payment": true,
"amount_credit_balance_applied": 0,
"amount_discount": 0,
"amount_due": 12990,
"amount_due_now": 12990,
"amount_paid": 0,
"amount_remaining": 12990,
"amount_subtotal": 12990,
"amount_tax": 0,
"amount_total": 12990,
"attempt_count": 0,
"billing_reason": "manual",
"collection_method": "send_invoice",
"created_at": "2026-05-19T18:00:00Z",
"currency": "brl",
"customer": "cus_4r67tzkmR4VDrS3W",
"customer_billing_address": {
"city": "São Paulo",
"country": "BR",
"line1": "Av. Paulista, 1000",
"line2": "Conjunto 101",
"postal_code": "01310-100",
"state": "SP"
},
"customer_billing_name": "Cliente Exemplo",
"customer_document": "12345678901",
"customer_document_type": "cpf",
"customer_email": "nome@email.com",
"customer_name": "Cliente Exemplo",
"default_payment_method": null,
"description": "Assinatura Plano Pro - Maio/2026",
"due_date": "2026-05-26T12:00:00Z",
"ending_balance": 0,
"hosted_invoice_url": "https://billing.chargefy.io/invoice/ilink_8Pz6wKf3tVn2Qa9LmXr4Bc7D",
"interest": {
"percent_per_month": 1
},
"interest_amount": null,
"invoice_pdf_url": "https://billing.chargefy.io/invoice/inv_6yPm1D3rYne168Ro.pdf",
"late_fee": {
"type": "fixed",
"value": 200
},
"late_fee_amount": null,
"latest_charge": null,
"line_items": [
{
"id": "ili_KGE7gxAbDw46BHo8",
"object": "invoice_line_item",
"amount_discount": 0,
"amount_subtotal": 12990,
"amount_tax": 0,
"amount_total": 12990,
"currency": "brl",
"description": "Plano mensal",
"discountable": true,
"metadata": {},
"period_end": null,
"period_start": null,
"position": 0,
"price": "price_WMY6AKGuJPditePB",
"price_data": null,
"product": "prod_esXR1KogrBHYRK6k",
"proration": false,
"proration_details": {},
"quantity": 1,
"recurring_interval": null,
"recurring_interval_count": null,
"subscription_item": null,
"unit_amount": 12990
}
],
"livemode": true,
"marked_uncollectible_at": null,
"metadata": {},
"next_payment_attempt": null,
"number": "K7M2-0001",
"paid_at": null,
"payment_intent": null,
"payment_method_types": [
"pix",
"boleto",
"credit_card"
],
"starting_balance": 0,
"statement_descriptor": "PLANO PRO",
"status": "open",
"subscription": null,
"updated_at": "2026-05-19T18:00:00Z",
"voided_at": null
}

