Gerar 2ª Via de Fatura
Gera a segunda via de uma fatura com o status "pendente". A fatura atual é cancelada e uma nova é criada com o mesmo status.
post/invoices/{id}/duplicate
Request
- Base URLhttps://api.iugu.com/v1
- URLhttps://api.iugu.com/v1/invoices/{id}/duplicate
- AuthAPI key in query parameter api_token
Path parameters
idstring required
ID da fatura
Request body
Response
200
Example response
{
"id": "D12486C8148F4660B578B490861492DF",
"due_date": "2024-05-01",
"currency": "BRL",
"email": "teste@iugu.com",
"items_total_cents": 4000,
"status": "pending",
"total_cents": 4000,
"payable_with": "pix",
"updated_at": "2024-04-29T14:10:08-03:00",
"late_payment_fine": 1,
"logs": [
{
"id": "7C246E82A20F4AEC8D1DF33E91B95308",
"description": "Email de Lembrete enviado!",
"notes": "Lembrete enviado com sucesso para: teste@iugu.com",
"created_at": "29/04, 14:10"
}
],
"account_id": "27016E1AD888499A98994E781B6C3762",
"bank_account_branch": "0001",
"bank_account_number": "3693443-0",
"account_name": "IUGU Teste Produto e Integrações",
"secure_id": "d12486c8-148f-4660-b578-b490861492df-7c29",
"secure_url": "https://checkout.iugu.com/invoices/d12486c8-148f-4660-b578-b490861492df-7c29",
"total": "R$ 40,00",
"taxes_paid": "R$ 0,00",
"total_paid": "R$ 0,00",
"total_overpaid": "R$ 0,00",
"total_refunded": "R$ 0,00",
"commission": "R$ 0,00",
"fines_on_occurrence_day": "R$ 0,00",
"total_on_occurrence_day": "R$ 0,00",
"paid": "R$ 0,00",
"bank_slip_extra_due": 2,
"created_at": "29/04, 14:10",
"created_at_iso": "2024-04-29T14:10:08-03:00",
"transaction_number": 1111,
"pix": {
"qrcode": "https://faturas.iugu.com/iugu_pix/d12486c8-148f-4660-b578-b490861492df-7c29/test/qr_code",
"qrcode_text": "http://faturas.iugu.com/iugu_pix/d12486c8-148f-4660-b578-b490861492df-7c29/test/pay",
"status": "qr_code_created"
},
"items": [
{
"id": "DE8AF199F2444643B7064BE76107B251",
"description": "teste",
"price_cents": 2000,
"quantity": 1,
"created_at": "2024-04-29T14:10:08-03:00",
"updated_at": "2024-04-29T14:10:08-03:00",
"price": "R$ 20,00"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.