Skip to content

E-invoicing

Create credit note

Issue a credit note against an invoice you already issued, to reduce or cancel its amount for returns, pricing errors or a cancelled supply.

POST{baseUrl}/{stage}/external/businesses/{businessId}/invoices

Issue a tax-compliant credit note against an invoice that has already been issued. Use a credit note to reduce or cancel the amount on an earlier invoice, for example for returned goods, pricing errors, discounts given after invoicing or a cancelled supply.

A credit note uses the same endpoint and request structure as Create Invoice, with two differences:

  1. invoiceTypeCode must be "380" (Credit Note).
  2. invoiceBillingReference is mandatory and must reference the IRN and issue date of the original invoice.

The endpoint validates, signs, verifies parties and transmits or reports the credit note to NRS in one call, the same way it does for an invoice.

Request Structure

Headers

Content-Typerequired
application/json
Acceptrequired
application/json
X-Business-Keyrequired

Path Parameters

businessIdstringrequired
The unique identifier of the business

Credit Note Specific Fields

invoiceTypeCodeStringrequired
Must be "380" (Credit Note)Example: "380"
invoiceBillingReferenceArrayrequired
Links the credit note to the original invoice. At least one entry is required.
invoiceDocumentReferenceIrnStringrequired
IRN of the original invoice being creditedExample: "INV001-94ND90NR-20240611"
invoiceDocumentReferenceIssueDateStringrequired
Issue date of the original invoice. Format: YYYY-MM-DDExample: "2024-06-11"

Note: NRS invoice type codes do not follow the UN/CEFACT standard list. In the NRS code list, 380 is Credit Note. Always use the values returned by Get NRS Invoice Types.

Other Fields

All other mandatory and optional fields are the same as for Create Invoice. When creating a credit note:

Field / SectionGuidance
Supplier and customer detailsMust match the parties on the original invoice
invoiceIssueDateDate the credit note is issued, not the date of the original invoice
invoiceLineInclude only the items being credited, with the quantity and amount being credited
invoiceTaxTotalTax on the credited amount only, at the same tax category and rate as the original invoice
Monetary totalsReflect the credited amount only, not the original invoice total. All amounts are positive values.
invoiceNoteRecommended: state the reason for the credit note

Example Request

A supplier issued invoice INV001-94ND90NR-20240611 for 10 bags of rice (₦200,000 + ₦15,000 VAT). The customer returns 2 bags, and the supplier issues a credit note for ₦43,000.

JSON
{
  "invoiceBusinessId": "6dj03c76-1d83-4a39-a4de-51bd70547aef",
  "invoiceIssueDate": "2024-06-20",
  "invoiceIssueTime": "10:15:00",
  "invoiceTypeCode": "380",
  "invoiceDocumentCurrencyCode": "NGN",
  "invoiceTaxCurrencyCode": "NGN",
  "requestType": "B2B",
  "invoiceNote": "Credit for 2 bags returned (damaged in transit)",

  "invoiceBillingReference": [
    {
      "invoiceDocumentReferenceIrn": "INV001-94ND90NR-20240611",
      "invoiceDocumentReferenceIssueDate": "2024-06-11"
    }
  ],

  "invoiceSupplierStreetName": "10, Banana Island Road",
  "invoiceSupplierCityName": "Ikoyi",
  "invoiceSupplierLga": "NG-LA-ETO",
  "invoiceSupplierState": "NG-LA",
  "invoiceSupplierCountry": "NG",
  "invoiceSupplierPostalZone": "100243",
  "invoiceSupplierPartyBusinessDescription": "Import and Sales of Foreign Rice",
  "invoiceSupplierPartyTin": "24058123-0001",
  "invoiceSupplierPartyEmail": "supplier_business@email.com",
  "invoiceSupplierPartyTelephone": "+23480254099000",
  "invoiceSupplierPartyName": "ABC Rice Ltd.",

  "invoiceCustomerStreetName": "15, Glover Road",
  "invoiceCustomerCityName": "Ikoyi",
  "invoiceCustomerLga": "NG-LA-ETO",
  "invoiceCustomerState": "NG-LA",
  "invoiceCustomerCountry": "NG",
  "invoiceCustomerPostalZone": "100243",
  "invoiceCustomerPartyBusinessDescription": "Cement and building materials",
  "invoiceCustomerPartyTin": "24058124-0001",
  "invoiceCustomerPartyEmail": "customer_business@email.com",
  "invoiceCustomerPartyTelephone": "+23480254099001",
  "invoiceCustomerPartyName": "XYZ Ltd.",

  "invoiceLine": [
    {
      "invoiceLineProductCategory": "Cereals; husked (brown) rice",
      "invoiceLineHsnCode": "1006.2",
      "invoiceLineItemName": "50kg Bag of Rice",
      "invoiceLineItemDescription": "Premium long-grain brown rice",
      "invoiceLineItemSellersItemIdentification": "Rice-50KG-001",
      "invoiceLineInvoicedQuantity": 2,
      "invoiceLineExtensionAmount": 40000,
      "invoiceLinePriceAmount": 20000,
      "invoiceLinePriceBaseQuantity": 1,
      "invoiceLinePriceUnit": "EA",
      "invoiceLineDiscountRate": 0,
      "invoiceLineDiscountAmount": 0,
      "invoiceLineFeeRate": 0,
      "invoiceLineFeeAmount": 0
    }
  ],

  "invoiceTaxTotal": [
    {
      "invoiceTaxTotalAmount": 3000,
      "invoiceTaxTotalSubTotal": [
        {
          "taxSubTotalTaxableAmount": 40000,
          "taxSubTotalTaxAmount": 3000,
          "taxSubTotalCategoryPercent": 7.5,
          "taxSubTotalCategoryId": "STANDARD_VAT"
        }
      ]
    }
  ],

  "invoiceLineExtensionAmount": 40000,
  "invoiceTaxExclusiveAmount": 40000,
  "invoiceTaxInclusiveAmount": 43000,
  "invoicePayableAmount": 43000
}

Response Format

Success Response (200)

JSON
{
  "data": {
    "invoiceId": 245,
    "invoiceCreatedAt": "2024-06-20T10:15:00Z",
    "invoiceStatus": "CREATED",
    "invoiceNumber": "CN001",
    "invoiceNote": "Credit for 2 bags returned (damaged in transit)",
    "invoiceBusinessId": "6dj03c76-1d83-4a39-a4de-51bd70547aef",
    "invoiceEntityId": "107",
    "invoiceIssueDate": "2024-06-20",
    "invoiceDueDate": null,
    "invoiceIssueTime": "10:15:00",
    "invoiceTypeCode": "380",
    "invoicePaymentStatus": "PENDING",
    "invoiceDocumentCurrencyCode": "NGN",
    "invoiceTaxCurrencyCode": "NGN",
    "invoicePayableAmount": 43000,
    "invoiceTaxExclusiveAmount": 40000,
    "invoiceTaxInclusiveAmount": 43000,
    "invoiceLineExtensionAmount": 40000,
    "invoiceBillingReference": [
      {
        "invoiceDocumentReferenceIrn": "INV001-94ND90NR-20240611",
        "invoiceDocumentReferenceIssueDate": "2024-06-11"
      }
    ]
  },
  "responseCode": "200",
  "responseMessage": "Invoice created successfully"
}

The response includes invoiceBillingReference, which confirms the original invoice the credit note is linked to.

Validation Rules

All Create Invoice validation rules apply. In addition:

  • invoiceTypeCode must be "380".
  • invoiceBillingReference must contain at least one entry with both invoiceDocumentReferenceIrn and invoiceDocumentReferenceIssueDate.
  • All amounts are positive values. The 380 type code identifies the document as a credit.

Recommended Practice

  • The referenced IRN should belong to an invoice issued by the same supplier.
  • invoiceDocumentReferenceIssueDate should match the issue date of the referenced invoice.
  • The credit note issue date should not be earlier than the original invoice's issue date.
  • The credited amount should not exceed the amount on the original invoice.

Notes

  • Partial or full credit: To cancel an invoice in full, credit all of its lines and amounts. To credit part of it, include only the affected lines and quantities.
  • Multiple credit notes: You can raise more than one credit note against the same invoice, for example for several returns.
  • Do not edit the original invoice: An issued invoice cannot be changed. Corrections are made by issuing a credit note.