Skip to content

Onboarding

Request business key

Register your business with Qorpy and receive the business key you use on every other request. No authentication needed.

POST{baseUrl}/{stage}/external/request-business-key

The Qorpy API enables businesses to integrate with Nigeria's National Revenue Service (NRS) eInvoicing system. This documentation covers the business onboarding process, which is the first step in your integration journey.

Integration Workflow

Qorpy e-invoicing integration workflowQorpy e-invoicing integration workflow

Purpose

This endpoint registers your business with Qorpy's eInvoicing system and generates a unique Business Key that serves as your authentication credential for all subsequent API operations. You must complete this onboarding step before submitting e-Invoices.

Prerequisites

Before calling this endpoint, ensure you have:

  • Registered your business with NRS (Nigeria Revenue Service)
Business registration on the NRS e-invoicing portalBusiness registration on the NRS e-invoicing portal
  • Selected Qucoon Limited as your preferred Access Point
Selecting Qucoon Limited as the Access Point on the NRS portalSelecting Qucoon Limited as the Access Point on the NRS portal
  • Obtained your business NRS Entity ID and NRS Business ID
Where to find the NRS Business ID and Entity IDWhere to find the NRS Business ID and Entity ID

Authentication

This endpoint does not require authentication. It is publicly accessible to allow new businesses to onboard. However, all fields are validated against NRS records, and fraudulent requests will be rejected.

Request Specification

HTTP Headers

Content-Typerequired
Indicates JSON request body application/json
Acceptrequired
Specifies acceptable response format application/json or */*

Request Body Parameters

businessAddressstringrequired
Complete business address including building number/nameMax Length: 200Validation: Non-empty
businessAddressLgstringrequired
Local Government Area (LGA) where business is located, refer to resources folderMax Length: 50Validation: Must match valid LGA
businessAddressStreetNamestringrequired
Street name of the business addressMax Length: 100Validation: Non-empty
businessCitystringrequired
City/Town where business operatesMax Length: 50Validation: Non-empty
businessCountrystringrequired
Country code, refer to resources folderMax Length: 2Validation: ISO 3166-1 alpha-2
businessFirsIdstringrequired
FIRS-issued business IDMax Length: 36Validation: UUID v4 format
businessPostalCodestringrequired
Nigerian postal code (e.g., "101241")Max Length: 10Validation: 6-digit numeric
businessStatestringrequired
Nigerian state where business is registeredMax Length: 50Validation: Must match valid state
contactEmailstringrequired
Primary contact email for API notifications and business key deliveryMax Length: 100Validation: Valid email format
entityFirsIdstringrequired
FIRS-issued entity IDMax Length: 50Validation: Alphanumeric + hyphens

Response Specification

Success Response (HTTP 200)

JSON
{
    "responseCode": "00",
    "responseMessage": "Business successfully registered for external API access.",
    "businessKey": "BK-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-DEV-XXXXXXXXXXXX",
    "businessFirsId": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX"
}

Response Fields

businessFirsIdstring
Echo of your business FIRS ID for confirmation
businessKeystring
Your unique API authentication key - Store this securely!
responseCodestring
Application-level status code (see codes below)
responseMessagestring
Human-readable description of the result

Response Codes

CodeMeaningAction Required
00SuccessBusiness key generated successfully. Store the key securely.
01SuccessBusiness taxpayer ID not found in FIRS system.
02Duplicate RequestBusiness already registered. Use existing business key.
106FIRS Verification FailedProvided FIRS credentials don't match FIRS records.

Important: The responseCode is separate from HTTP status codes. A 200 OK HTTP response can still contain error details in the responseCode field.

Error Responses

HTTP 400 - Bad Request

Cause: Invalid or missing required parameters

JSON
{
  "responseCode": "106",
  "responseMessage": "Validation failed: businessFirsId must be a valid format"
}

Common Validation Errors:

  • Invalid email format in contactEmail
  • Inaccurate businessFirsId
  • businessState not matching valid Nigerian states
  • businessPostalCode not a 6-digit number
  • businessCountry not "NG"

HTTP 401 - Unauthorized

Cause: FIRS credentials verification failed

JSON
{
    "responseCode": "04",
    "responseMessage": "Requested business ID not found under this taxpayer account",
    "businessKey": null,
    "businessFirsId": null
}

Resolution Steps:

  1. Verify your businessFirsId matches your FIRS Tax Identification Number
  2. Confirm your entityFirsId matches your CAC registration with FIRS
  3. Contact NRS if credentials are correct but still failing
  4. Ensure your business registration is active and not suspended

HTTP 500 - Internal Server Error

Cause: Server-side processing error

JSON
{
  "responseCode": "99",
  "responseMessage": "An internal error occurred while processing your request",
  "requestId": "req_7h3k9m2p4s6v8x1z",
  "timestamp": "2026-02-12T10:30:45Z"
}

Resolution:

  1. Retry the request after 2-3 minutes
  2. If error persists after 3 attempts, contact support with the requestId

HTTP 503 - Service Unavailable

Cause: API maintenance or service unavailable

JSON
{
  "responseCode": "99",
  "responseMessage": "Service temporarily unavailable. Please try again later.",
  "retryAfter": 300,
  "timestamp": "2026-02-12T10:30:45Z"
}

Resolution:

  • Wait for the duration specified in retryAfter (in seconds)

Using Your Business Key

Once you receive your business key, use it for authentication in all subsequent API requests.

Security Best Practices:

  • Store business key in environment variables or secure vault (e.g., AWS Secrets Manager, Azure Key Vault)
  • Never commit business keys to version control

Test Credentials

Use your FIRS test values in the development environment:

Troubleshooting Guide

Issue: "FIRS verification failed"

Problem: Credentials don't match FIRS records
Checklist:

  • Is your business registration active with FIRS?
  • Have you selected Qucoon as your preferred Access Point on FIRS ?
  • Have you recently updated business details with FIRS? (Allow 48 hours for sync)
  • Is the entityFirsId accurate ?
  • Did you use the correct businessFirsId?

Compliance & Legal

Data Privacy

Your business information is:

  • Encrypted in transit (TLS 1.3) and at rest (AES-256)
  • Stored in Nigerian data centers compliant with NDPR (Nigeria Data Protection Regulation)
  • Shared only with FIRS for verification purposes

Terms of Use

By using this API, you agree to:

  • Provide accurate business information
  • Use business keys only for legitimate tax reporting
  • Not share or transfer business keys to unauthorized parties
  • Comply with all NRS eInvoicing regulations

Document Version: 1.2.0
Last Updated: February 12, 2026
API Version: v1