Skip to content

API Reference

Complete reference for the InvoisX API.

Base URL

https://invoisx.com/api/v1

For testing, use:

https://sandbox.invoisx.com/api/v1

Interactive Documentation

For interactive API testing and detailed endpoint specifications, visit our API Playground.

The playground lets you:

  • Test endpoints with your API token
  • View request/response schemas
  • Try different parameters
  • See real-time responses

Authentication

All requests require a Bearer token:

Authorization: Bearer your-api-token

See Authentication Guide for details.

Response Format

All responses follow this structure:

Success Response

json
{
  "success": true,
  "data": {
    // Response data
  }
}

List Response

json
{
  "success": true,
  "data": [
    // Array of items
  ],
  "links": {
    "first": "https://invoisx.com/api/v1/invoices?page=1",
    "last": "https://invoisx.com/api/v1/invoices?page=10",
    "prev": null,
    "next": "https://invoisx.com/api/v1/invoices?page=2"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 10,
    "per_page": 15,
    "to": 15,
    "total": 150
  }
}

Error Response

json
{
  "success": false,
  "message": "Error description",
  "error_code": "ERROR_CODE",
  "errors": {
    // Field-specific errors (for validation)
  }
}

Resource Endpoints

Buyers

MethodEndpointDescription
GET/buyersList all buyers
POST/buyersCreate a buyer
GET/buyers/{id}Get a buyer
PUT/buyers/{id}Update a buyer
DELETE/buyers/{id}Delete a buyer

On-Behalf Sellers

MethodEndpointDescription
GET/on-behalf-sellersList all sellers
POST/on-behalf-sellersCreate a seller
GET/on-behalf-sellers/{id}Get a seller
PUT/on-behalf-sellers/{id}Update a seller
DELETE/on-behalf-sellers/{id}Delete a seller

Invoices

MethodEndpointDescription
GET/invoicesList all invoices
POST/invoicesCreate an invoice
GET/invoices/{id}Get an invoice
PUT/invoices/{id}Update an invoice
DELETE/invoices/{id}Delete an invoice

Other Document Types

Same CRUD endpoints for:

  • /credit-notes
  • /debit-notes
  • /refund-notes
  • /consolidated-invoices
  • /self-billed-invoices
  • /self-billed-credit-notes
  • /self-billed-debit-notes
  • /self-billed-refund-notes

Document Operations

MethodEndpointDescription
POST/documents/{id}/validateValidate a document
POST/documents/{id}/submitSubmit to LHDN
GET/documents/{id}/statusCheck LHDN status
GET/documents/{id}/qrGet QR code
GET/documents/{id}/pdfGet PDF
POST/documents/submit-bulkBulk submit

Reference Data

MethodEndpointDescription
GET/statesMalaysian state codes
GET/countriesCountry codes
GET/classificationsProduct classifications
GET/unit-typesUnit of measurement
GET/tax-typesTax type codes
GET/currenciesCurrency codes
GET/payment-modesPayment method codes
GET/id-typesID type codes

Next Steps

InvoisX - Malaysia's Leading e-Invoice Platform