curl -X POST ${API_BASE_URL}/invoices \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"business_id": "YOUR_ENTITY_ID",
"invoice_reference": "INV001",
"invoice_type_code": "380",
"document_currency_code": "NGN",
"tax_currency_code": "NGN",
"issue_date": "2024-07-03",
"due_date": "2024-08-03",
"payment_means_code": "30",
"buyer": {
"name": "Acme Corporation",
"tax_id": "123456789",
"address": {
"street": "123 Business Street",
"city": "Lagos",
"state": "Lagos",
"postal_code": "100001",
"country": "NG"
}
},
"seller": {
"name": "Tech Solutions Ltd",
"tax_id": "987654321",
"address": {
"street": "456 Tech Avenue",
"city": "Abuja",
"state": "FCT",
"postal_code": "900001",
"country": "NG"
}
},
"invoice_lines": [
{
"description": "Software Development Services",
"quantity": 1,
"unit_price": 100000.00,
"line_extension_amount": 100000.00,
"tax_category": {
"code": "STANDARD_GST",
"percent": "7.5"
},
"tax_amount": 7500.00,
"line_total_amount": 107500.00
}
],
"tax_total": {
"tax_amount": 7500.00,
"tax_subtotal": [
{
"taxable_amount": 100000.00,
"tax_amount": 7500.00,
"tax_category": {
"code": "STANDARD_GST",
"percent": "7.5"
}
}
]
},
"legal_monetary_total": {
"line_extension_amount": 100000.00,
"tax_exclusive_amount": 100000.00,
"tax_inclusive_amount": 107500.00,
"payable_amount": 107500.00
}
}'