E-invoicing
Create invoice
Validate, sign and deliver a tax-compliant e-invoice in one call.
POST{baseUrl}/{stage}/external/businesses/{businessId}/invoices
When you send an invoice, Qorpy:
- validates it against the UBL standard,
- has it signed by NRS and assigns an IRN,
- verifies the supplier and customer TINs, and
- transmits it to the buyer for B2B and B2G, or reports it to NRS for B2C.
Credit notes and debit notes use this same endpoint with a different
invoiceTypeCode and a billing reference to the original IRN. See Create credit note.Headers
X-Business-Keystringrequired
Your business key from Request business key.
Content-Typestringrequired
application/jsonAcceptstringrequired
application/jsonPath parameters
businessIdstring (uuid)required
Your NRS Business ID.
Body
application/jsonInvoice details
invoiceBusinessIdstring (uuid)required
Your business ID, issued when you registered on the NRS dashboard.Example:
6dj03c76-1d83-4a39-a4de-51bd70547aefinvoiceNumberstring
Your own invoice number. Qorpy uses it to build the IRN.Example:
INV-2026-0418requestTypestring
Transaction type:
B2B, B2G or B2C. B2B and B2G invoices are transmitted to the buyer; B2C invoices are reported to NRS.Example: B2BinvoiceIssueDatestring (date)required
Date the invoice was issued, as YYYY-MM-DD.Example:
2026-10-14invoiceIssueTimestring
Time of issue, as HH:MM:SS in 24-hour format.Example:
17:59:04invoiceDueDatestring (date)
Date payment is due, as YYYY-MM-DD.Example:
2026-10-28invoiceTypeCodestringrequired
Type of document being issued. See Invoice types.Example:
380invoiceDocumentCurrencyCodestringrequired
Currency the invoice is issued in. See Currencies.Example:
NGNinvoiceTaxCurrencyCodestringrequired
Currency tax amounts are calculated in.Example:
NGNSupplier
invoiceSupplierPartyNamestringrequired
Registered legal name of the supplier.
invoiceSupplierPartyTinstringrequired
Tax Identification Number of the supplier.
invoiceSupplierPartyEmailstringrequired
Official email address of the supplier.
invoiceSupplierPartyTelephonestringrequired
Phone number with country code.
invoiceSupplierPartyBusinessDescriptionstringrequired
Short description of the supplier's line of business.
invoiceSupplierStreetNamestringrequired
Street address.
invoiceSupplierCityNamestringrequired
City.
invoiceSupplierLgastringrequired
LGA code. See LGAs.
invoiceSupplierStatestringrequired
State code. See States.
invoiceSupplierPostalZonestringrequired
Postal code.
invoiceSupplierCountrystringrequired
ISO 3166-1 alpha-2 code. See Countries.
Customer
invoiceCustomerPartyNamestringrequired for B2B
Registered legal name of the customer.
invoiceCustomerPartyTinstringrequired for B2B
Tax Identification Number of the customer.
invoiceCustomerPartyEmailstringrequired for B2B
Official email address of the customer.
invoiceCustomerPartyTelephonestringrequired for B2B
Phone number with country code.
invoiceCustomerPartyBusinessDescriptionstringrequired for B2B
Short description of the customer's line of business.
invoiceCustomerStreetNamestringrequired for B2B
Street address.
invoiceCustomerCityNamestringrequired for B2B
City.
invoiceCustomerLgastringrequired for B2B
LGA code. See LGAs.
invoiceCustomerStatestringrequired for B2B
State code. See States.
invoiceCustomerPostalZonestringrequired for B2B
Postal code.
invoiceCustomerCountrystringrequired for B2B
ISO 3166-1 alpha-2 code. See Countries.
Line items
invoiceLineobject[]required
The goods or services on the invoice. Send at least one line.
Show 14 child attributes
invoiceLineItemNamestringrequired
Name of the item or service.Example:
50kg bag of riceinvoiceLineItemDescriptionstringrequired
Description of the item or service.
invoiceLineItemSellersItemIdentificationstringrequired
Your SKU or item identifier.Example:
RICE-50KG-001invoiceLineProductCategorystringrequired
Product category. See Product codes.
invoiceLineHsnCodestringrequired
Harmonized System (HSN) code for the product.Example:
1006.2invoiceLineInvoicedQuantitynumberrequired
Quantity invoiced.Example:
10invoiceLinePriceAmountnumberrequired
Price per unit.Example:
20000invoiceLinePriceBaseQuantitynumberrequired
Base quantity the price applies to.Example:
1invoiceLinePriceUnitstringrequired
Unit of measure. See Quantity codes.Example:
EAinvoiceLineDiscountRatenumber
Discount percentage, from 0 to 100.
invoiceLineDiscountAmountnumber
Discount amount, 0 or more.
invoiceLineFeeRatenumber
Additional fee percentage, 0 or more.
invoiceLineFeeAmountnumber
Additional fee amount, 0 or more.
invoiceLineExtensionAmountnumberrequired
Line total: price times quantity, plus fees, minus discounts.Example:
200000Tax
invoiceTaxTotalobject[]required
Tax totals for the invoice. Send at least one.
Show 2 child attributes
invoiceTaxTotalAmountnumberrequired
Total tax across all subtotals.Example:
15000invoiceTaxTotalSubTotalobject[]required
Tax broken down by category.
Show 4 child attributes
taxSubTotalCategoryIdstringrequired
Tax category. See Tax categories.Example:
STANDARD_VATtaxSubTotalCategoryPercentnumberrequired
Rate applied to this subtotal.Example:
7.5taxSubTotalTaxableAmountnumberrequired
Value the tax is calculated on.Example:
200000taxSubTotalTaxAmountnumberrequired
Tax charged on the taxable amount.Example:
15000Totals
invoiceLineExtensionAmountnumberrequired
Sum of all line totals, before tax, allowances and charges.Example:
200000invoiceTaxExclusiveAmountnumberrequired
Invoice total before tax.Example:
200000invoiceTaxInclusiveAmountnumberrequired
Invoice total after tax.Example:
215000invoicePayableAmountnumberrequired
Amount the buyer must pay after allowances, charges and tax.Example:
215000Optional fields
PaymentinvoicePaymentStatus, invoicePaymentMeans, terms
invoicePaymentStatusstring
PENDING or PAID. Defaults to PENDING.invoicePaymentMeansobject[]
How and when the invoice will be paid.
Show 2 child attributes
invoicePaymentMeansCodestring
Payment method code. See Payment means.Example:
10invoicePaymentMeansDatestring (date)
Date payment is due.
invoicePaymentTermsNotestring
Payment terms as free text.Example:
Payment due within 30 days of invoice issue.invoiceAllowanceChargeobject[]
Discounts or extra charges at invoice level.
Show 2 child attributes
invoiceAllowanceChargeIndicatorboolean
true for a charge, false for an allowance (discount).invoiceAllowanceChargeAmountnumber
Amount of the charge or allowance.
Dates and referencestax point, delivery, buyer and order references
invoiceTaxPointDatestring (date)
Date the tax becomes applicable.
invoiceActualDeliveryDatestring (date)
Date goods or services were delivered.
invoiceDeliveryPeriodStartDatestring (date)
Start of the delivery period.
invoiceDeliveryPeriodEndDatestring (date)
End of the delivery period.
invoiceBuyerReferencestring
Reference supplied by the buyer.
invoiceOrderReferencestring
Order number tied to the invoice.
invoiceAccountingCostnumber
Cost centre or accounting category.
invoiceNotestring
Free text about the invoice. Stored encrypted.
Linked documentsbilling, dispatch, receipt, originator and contract references
invoiceBillingReferenceobject[]
Earlier billing documents this invoice relates to.
Show 2 child attributes
invoiceDocumentReferenceIrnstring
IRN of the referenced document.
invoiceDocumentReferenceIssueDatestring (date)
Issue date of the referenced document.
invoiceDispatchDocumentIrnstring
Dispatch advice reference, with
invoiceDispatchDocumentIssueDate.invoiceReceiptDocumentIrnstring
Receipt advice reference, with
invoiceReceiptDocumentIssueDate.invoiceOriginatorDocumentIrnstring
Originating document reference, with
invoiceOriginatorDocumentIssueDate.invoiceContractDocumentIrnstring
Contract reference, with
invoiceContractDocumentIssueDate.invoiceAdditionalDocumentReferenceobject[]
Any other related documents, each with an IRN and issue date.
Other partiespayee, bill-to, ship-to and tax representative
invoicePayee*11 fields
Set when payment goes to someone other than the supplier. Same shape as the supplier fields, for example
invoicePayeePartyName.invoiceBillParty*11 fields
Set when the invoice is billed to someone other than the customer.
invoiceShipParty*11 fields
Set when goods ship to someone other than the customer.
invoiceTaxRepParty*11 fields
Set when a tax agent handles invoicing for the business.
Response
200 OKresponseCodestring
00 when the invoice was created. See Response codes.responseMessagestring
Readable description of the result.
invoiceIrnstring
The Invoice Reference Number. Store it: you need it to fetch the QR code, update payment status or reverse the invoice.
statusstring
Success or an error status.dataobject
The invoice as recorded, with the IRN, payment status and every field you sent.
Validation rules
| Rule | Applies to |
|---|---|
| At least one line item and one tax total | invoiceLine, invoiceTaxTotal |
| Dates as YYYY-MM-DD | All date fields |
| At least 6 characters | invoiceSupplierPartyTin, invoiceSupplierPartyBusinessDescription |
| Valid email address | invoiceSupplierPartyEmail |
| Totals must agree with line items and tax subtotals | Totals, tax |
Qorpy API by Qucoon Limited, an NRS-approved Access PointAPI version v1