Guides
Using reference data
NRS rejects invoices that use unknown codes. Load these lists from Qorpy and validate against them before you send.
Available lists
| List | Used in |
|---|---|
| GET Quantity codes | invoiceLinePriceUnitUnits of measure accepted in invoiceLinePriceUnit. |
| GET Currencies | invoiceDocumentCurrencyCode, invoiceTaxCurrencyCodeCurrency codes accepted for document and tax currency. |
| GET States | *State fields on every partyNigerian state codes for supplier, customer and party addresses. |
| GET LGAs | *Lga fields on every partyLocal government area codes for addresses. |
| GET Countries | *Country fields on every partyISO 3166-1 alpha-2 country codes. |
| GET Invoice types | invoiceTypeCodeInvoice type codes for invoiceTypeCode, such as 380 for a commercial invoice. |
| GET Payment means | invoicePaymentMeansCodePayment method codes for invoicePaymentMeansCode. |
| GET Product codes | invoiceLineHsnCode, invoiceLineProductCategoryHSN product codes and categories for goods. |
| GET Service codes | invoiceLineHsnCode, invoiceLineProductCategory for servicesService codes and categories for services. |
| GET Tax categories | taxSubTotalCategoryIdTax category identifiers such as STANDARD_VAT. |
Load and cache
All lists use the same request shape and your business key. Some are large: product codes run to thousands of entries. Fetch them when your service starts, keep them in memory or your database, and refresh on a schedule that suits you.
curl "$QORPY_BASE_URL/external/$BUSINESS_ID/resources/states" \
-H "Accept: application/json" \
-H "X-Business-Key: $QORPY_BUSINESS_KEY"