Skip to Content

Sellers API

Base path: https://gateway.useyona.com/i/v1/sellers

A seller is the business entity issuing invoices. You must register at least one seller before creating invoices.


Create seller

POST /i/v1/sellers

Register a new seller entity.

Request body

FieldTypeRequiredDescription
partyNamestringYesBusiness name, max 255 chars
tradingNamestringNoTrading/brand name, max 255 chars
partyTypestringNoindividual | company | partnership | non_profit | government. Default: company
taxNumberstringYesTax identification number, max 50 chars. Unique per organization.
vatNumberstringNoVAT number, max 50 chars
registrationNumberstringNoBusiness registration number, max 100 chars
emailstringYesValid email address, max 255 chars
phoneNumberstringYesValid phone number, max 50 chars
websitestringNoURL, max 255 chars
postalAddressobjectYesSee address fields below
notesstringNoMax 1000 chars

Address fields

FieldTypeRequired
line1stringYes
line2stringNo
citystringYes
statestringNo
postalCodestringNo
countrystringYes — ISO 3166-1 alpha-2 (e.g. NG)
Field mapping

The request uses partyType and phoneNumber, but the response returns sellerType and phone.

bash
curl -X POST https://gateway.useyona.com/i/v1/sellers \
  -H "Authorization: Bearer sk_test_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "partyName": "Zenith Software Solutions Ltd",
    "email": "billing@zenithsoftware.ng",
    "phoneNumber": "+2348012345678",
    "taxNumber": "31245678-0001",
    "postalAddress": {
      "line1": "14 Admiralty Way",
      "city": "Lagos",
      "state": "Lagos",
      "country": "NG"
    }
  }'
StatusCodeTrigger
400VAL001Missing or invalid required fields
409RES002Seller with this tax number already exists

List sellers

GET /i/v1/sellers

List sellers with pagination.

bash
curl "https://gateway.useyona.com/i/v1/sellers?page=1&limit=20" \
  -H "Authorization: Bearer sk_test_your_key_here"

Get seller

GET /i/v1/sellers/:id

Retrieve a single seller by ID.

bash
curl https://gateway.useyona.com/i/v1/sellers/c7a1d3e5-8f2b-4a6c-9d0e-1f2a3b4c5d6e \
  -H "Authorization: Bearer sk_test_your_key_here"
StatusCodeTrigger
404RES001Seller not found

Update seller

PATCH /i/v1/sellers/:id

Update a seller. taxNumber is immutable after creation.

bash
curl -X PATCH https://gateway.useyona.com/i/v1/sellers/c7a1d3e5-8f2b-4a6c-9d0e-1f2a3b4c5d6e \
  -H "Authorization: Bearer sk_test_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "finance@zenithsoftware.ng",
    "website": "https://zenithsoftware.ng"
  }'
StatusCodeTrigger
400VAL001Invalid field values
404RES001Seller not found

Delete seller

DELETE /i/v1/sellers/:id

Delete a single seller.

bash
curl -X DELETE https://gateway.useyona.com/i/v1/sellers/c7a1d3e5-8f2b-4a6c-9d0e-1f2a3b4c5d6e \
  -H "Authorization: Bearer sk_test_your_key_here"
StatusCodeTrigger
404RES001Seller not found

Bulk delete sellers

DELETE /i/v1/sellers/bulk

Delete multiple sellers at once.

Request body

FieldTypeRequiredDescription
idsstring[]YesArray of seller UUIDs
bash
curl -X DELETE https://gateway.useyona.com/i/v1/sellers/bulk \
  -H "Authorization: Bearer sk_test_your_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "ids": [
      "c7a1d3e5-8f2b-4a6c-9d0e-1f2a3b4c5d6e",
      "d8b2e4f6-9a3c-5b7d-0e1f-2a3b4c5d6e7f"
    ]
  }'

Search sellers

GET /i/v1/sellers/search

Search sellers by name or tax identification number.

Query parameters

ParameterTypeRequiredDescription
qstringYesSearch term
bash
curl "https://gateway.useyona.com/i/v1/sellers/search?q=Zenith" \
  -H "Authorization: Bearer sk_test_your_key_here"

Verify tax number

POST /i/v1/sellers/:id/verify-tax-number

Initiate TIN verification against the tax authority database. This is an asynchronous operation.

bash
curl -X POST https://gateway.useyona.com/i/v1/sellers/c7a1d3e5-8f2b-4a6c-9d0e-1f2a3b4c5d6e/verify-tax-number \
  -H "Authorization: Bearer sk_test_your_key_here"
StatusCodeTrigger
404RES001Seller not found

Get verification status

GET /i/v1/sellers/:id/verification-status

Check the progress of a TIN verification.

bash
curl https://gateway.useyona.com/i/v1/sellers/c7a1d3e5-8f2b-4a6c-9d0e-1f2a3b4c5d6e/verification-status \
  -H "Authorization: Bearer sk_test_your_key_here"
Last updated on