VSDC API Specification Document v1.0.8
VSDC API Specification Document v1.0.8
1
2. Introduction
2.1. Overview
Smart Invoice is a software solution implemented by the Zambia Revenue Authority (ZRA) to
facilitate and execute electronic invoicing processes and optimize stock management. It serves
as a comprehensive tool utilized by all taxpayers and business proprietors to oversee and
conduct various invoice transactions, monitor stock levels, track stock movements, and
efficiently manage operations across multiple branches or locations. In instances where
taxpayers utilize their independent invoicing solutions, ZRA extends support through a Virtual
Sales Data Controller (VSDC), that acts as a seamless bridge between Certified invoicing
systems and ZRA Smart Invoice. This document is designed to provide developers and third-
party integrators with comprehensive information on essential components, including API
endpoints, data models, and guidance on seamlessly integrating their invoicing systems with
the Smart Invoice through the VSDC API.
2.2. Audience
The target audience of this document comprise individuals utilizing private Enterprise
Resource Planning Systems (ERPs) and developers/vendors of these third-party invoicing
solutions.
3. Technical Reference
3.1. VSDC Environments
The VSDC API provides functionality in two distinct environments: Test and Production. The
Test VSDC API is utilized in a test environment, ensuring no impact on production data during
integration testing and development. The test VSDC API allows access to data that is
specifically linked to the taxpayer's Taxpayer Identification Number (TPIN) and device
registration information captured within Smart Invoice sandbox. By using the Test VSDC API,
you can securely validate and test your integration without the possibility of unintended
alterations to actual sales, import, purchase, and stock information in the production
environment.
After development and testing, and once the integration with the test VSDC has successfully
passed User Acceptance Testing (UAT), the CIS is rolled out in the live environment for
smooth integration and operational purposes. In the production environment, the production
VSDC API manages and processes actual sales, import, purchase, and stock information.
2
Other technical details to be used for reference are outlined in the table below.
Title Content
Supported Programming Languages All
Architectural Style REST
Communication Protocol HTTP
Data Exchange Format JSON
Supported Operating System Windows Server/10+, Unix, Linux
Supported Webservers Apache HTTPd server, Apache Tomcat
Version: ≥ 9.0 and < 10.0, Eclipse Jetty,
Oracle WebLogic
VSDC Java Version Java 1.8
VSDC Distributed Package WAR/JAR
VSDC API Base URL (Production/Test) http://<hostname>:
<server.port>/<vsdcpath>
e.g. https://localhost:8080/zrasandboxvsdc
VSDC Postman Collection https://www.postman.com/warped-
astronaut-6832/virtual-sales-data-controller-
api/overview
3.2. Authentication
The VSDC API utilizes API keys as a security mechanism to authenticate all requests
originating from third-party systems to Smart Invoice. These unique API keys are retrieved by
the VSDC during the device initialization process and stored securely on the server where the
VSDC is hosted. Every subsequent API request sent via the VSDC will inherently contain these
keys, removing the necessity for developers to acquire or add them manually to any request.
3.3. Data Types
The VSDC API operates with data types that align with JSON formatting standards. It is
essential to adhere strictly to the prescribed data formats and structures for requests and
responses as outlined in their respective sections when interacting with each endpoint.
3
Response Codes
The VSDC API utilizes standard HTTP response codes to communicate API request success
or failure. In addition, custom response codes have been added to the JSON response body to
indicate the specifics of the API request. Refer to Section 5 the API response codes section for
further details.
4
4. Getting Started
4.1. Signup and Registration
To access the VSDC API, users are required to register on the Smart Invoice Taxpayer Portal
initially. Subsequently, they must apply for a VSDC service, undergo technical and
administrative verification, and await approval. Once approved by the Zambia Revenue
Authority (ZRA), users receive the VSDC as a WAR/JAR file, accessible for download from
the Portal under 'Device Management.' They can then deploy and configure it on their local
server for use. The diagram below illustrates this process visually.
Note: Signup and registration take place in both the test and production environments. The
access to each environment depends on the taxpayer's current stage of integration.
4.2. VSDC Setup and Initialization
Once you've installed the VSDC API on your local server, follow the specified steps during
device initialization to activate it for data transmission and reception. Upon completing this
initialization, you can start sending and receiving transaction data with Smart Invoice. The
diagram below visually illustrates this communication process.
5
4.3. VSDC Services
The VSDC services are categorized into eight (8) groups according to their specific purposes.
Below is a concise overview introducing the purpose of each category.
1. Device initialization
a. The initialization process is used to verify the device's identity, retrieve security
keys, save configuration settings, and prepare the device for interaction with
Smart Invoice.
b. The methods in this category are only invoked during the initial setup of the
VSDC.
2. Code Data
a. The methods in this category are used to fetch standard codes from Smart
Invoice such as item classification codes, tax category codes, package type,
units of measurement, and weight codes.
3. Branch Information
a. The methods in this category are used to transmit specific branch information,
including details about customers and staff and to fetch information about all
registered branches by a taxpayer.
4. Item Information
a. The methods in this category are used to transmit details of products or services
that are registered in a taxpayer's CIS.
5. Import Information
a. The methods in this category facilitate the exchange of all data associated with
imported items by a taxpayer, which have been declared in the ZRA customs
system ASYCUDA. Using these endpoints, a taxpayer can fetch imported items
and register acknowledgement of importation of these items of Smart Invoice.
6. Sales Information
a. The methods in this category are used to transmit sales data from a taxpayer’s
CIS to Smart Invoice.
7. Purchase Information
a. The methods in this category are used to fetch purchases made by a taxpayer
from another Smart invoice user from Smart Invoice, and to transmit purchase
information from a non-Smart Invoice user, from a CIS to Smart Invoice. This
information encompasses precise particulars related to each purchase, including
supplier details, invoice number, item specifics, and the transaction's date and
time.
8. Stock Information
a. The methods in this category are used to transmit information related to the
taxpayer's inventory, including details about stock status, movements, and
adjustments.
6
4.4. VSDC API Versions
The API version is determined by the release date of a new version. Taxpayers will receive
notifications regarding the latest additions and modifications to the API version through the
publication of the new specifications document on the ZRA website.
4.5. Interacting with the VSDC API
This section demonstrates how to make an API request to the VSDC:
1. VSDC Setup
a. Install the VSDC WAR file, acquired after completing the registration process,
onto your server and run the application.
b. When deployed, run the URL in your browser. You should have a landing page
like below.
2. Initiate a request.
a. Select an endpoint and specify the HTTP method to indicate the desired
operation. For example, the 'device initialization' endpoint uses the HTTP
method POST and the path 'initializer/selectInitInfo'.
b. Ensure to identify any necessary parameters that should be included in the
request header, request body, or as part of the path.
c. Upon invocation of the selected endpoint, the API will provide response status
codes, response headers, and a response body.
4.6. Sample Request Illustration using Postman API Client
Request
7
Response
8
5. VSDC API Services
5.1. Device Initialization
The Device Initialization API streamlines the secure establishment of a connection between the VSDC and ZRA’s Smart Invoice backend. It
retrieves security keys from Smart Invoice, which will be used to verify the identity of the communicating device and limit API access to authorized
devices. Additionally, it facilitates the loading of essential configuration settings necessary for seamless integration operations onto the server
hosting the VSDC.
● Endpoint: /initializer/selectInitInfo
● Request method: POST.
● Requirement: MANDATORY
● Description: Initializes the device for interaction between CIS and Smart Invoice. Initial endpoint, only called once for any new device
registration on smart invoice. Retrieves APIs keys used to authenticate and verify user.
● Request Parameters: TPIN, Branch Id, Device Serial No (All provided by ZRA)
● Response: Returns confirmation of successful device initialization along with generated security keys and loaded configuration settings.
● Note: This endpoint is only required to be called once. Details returned in the response MUST be stored locally for future reference. A
response of “Device already installed indicates that the request data was already utilized to call this endpoint.”
9
Initialization Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
Initialization Response
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Data Length
InitInfoRes Device Initialization resultCd This is the VSDC response code Result Code VARCHAR 3
Response
resultMsg This is the VSDC response message Result Message VARCHAR 2000
resultDt This is the VSDC response date-time Result Date VARCHAR 14
tpin This is the taxpayer identification number TPIN VARCHAR 10
taxprNm This is the taxpayer’s name as registered on the core Taxpayer Name VARCHAR 255
tax administration system
bsnsActv This is the taxpayer’s main business activity as Business Activity VARCHAR 100
registered on the core Tax Administration system
bhfId Taxpayer branch (store) location identifier Branch Office Id VARCHAR 3
bhfNm Taxpayer branch (store) name Branch Office Name VARCHAR 60
bhfOpenDt This is the date when the branch was initialized Branch Date Created VARCHAR 8
prvncNm This is the taxpayer’s registered province Province Name VARCHAR 100
dstrtNm This is the taxpayer’s registered district District Name VARCHAR 100
sctrNm This is the taxpayer’s registered sector (town) Sector Name VARCHAR 100
locDesc This is the taxpayer’s registered location Location Description VARCHAR 100
hqYn This is an indication of whether the branch is HQ or Head Quarter VARCHAR 1
otherwise. It is registered by ZRA and communicated
with the taxpayer in this endpoint
10
mgrNm This is the registered name of the applicant for VSDC Manager Name VARCHAR 60
mgrTelNo This is the registered mobile number of the Manager Contract Number VARCHAR 20
VSDC applicant
mgrEmail This is the registered email of the applicant for VSDC Manager Email VARCHAR 50
sdicId This is a unique device identifier supplied by ZRA SDC id VARCHAR 12
mrcNo This is an identifier supplied by ZRA MRC No VARCHAR 11
lastSaleInvcNo This is the last sales invoice number Last Sale Invoice Number NUMBER 38
processed by the device. On initial request the
returned value is 0.
lastPchsInvcNo This is the last purchase invoice number processed by Last Purchase Invoice Number NUMBER 38
the device. On initial request the returned value is 0.
lastSaleRcptNo This is the last sales receipt number processed Last Sale Receipt Number NUMBER 38
by the device. On initial request the returned
value is 0.
lastInvcNo This is the last invoice number processed by the device. Last CIS invoice number NUMBER 38
On initial request the returned value is 0.
lastTrainInvcNo This is the last training invoice number processed Last Training Invoice Number NUMBER 38
by the device. On initial request the returned
value is 0.
lastProfrmInvcNo This is the last proforma invoice number processed by Last Proforma Invoice Number NUMBER 38
the device. On initial request the returned value is 0.
lastCopyInvcNo This is the last copy invoice number processed by Last Copy Invoice Number NUMBER 38
the device. On initial request the returned value is
0.
JSON RESPONSE SAMPLE
Response Body { "resultCd": "000", "resultMsg": "It is succeeded", "resultDt": "20240507072439", "data": { "info": { "tin": "1000000000", "taxprNm": "SMART INVOICE USER", "bsnsActv": null, "bhfId":
"000","bhfNm": "Headquarter","bhfOpenDt": "20240430","prvncNm": "COPPERBELT PROVINCE","dstrtNm": null,"sctrNm": "Ndola","locDesc": "100, SMART INVOICE, STREET
1","hqYn": "Y","mgrNm": " SMART INVOICE USER ","mgrTelNo": "09000000000","mgrEmail": "smartuser@email.org.zm","sdcId": "SDC0010000553","mrcNo": "WIS00001092
","lastPchsInvcNo": 0,"lastSaleRcptNo": 3,"lastInvcNo": null,"lastSaleInvcNo": 2,"lastTrainInvcNo": null,"lastProfrmInvcNo": null, "lastCopyInvcNo": null } }}
11
5.2. Standard Codes (Constants)
The Standard Codes API facilitates access to predefined values utilized in API requests to represent specific attributes concisely. These constant
codes convey essential information such as units of measurement, packaging units, sale types, product types etc.
● Endpoint: /code/selectCodes
● Request method: POST.
● Requirement: MANDATORY
● Description: Retrieves a comprehensive list of standard codes along with their descriptions to be stored and used for all transaction requests
in taxpayer’s third-party system.
● Request Parameters: TPIN, Branch Id, Last Request Date.
● Response: Returns a list of standard codes along with detailed descriptions to be stored in third-party system.
● Note: Details returned in the response MUST be stored locally for future reference.
CodeReq Search code tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Request Administration System TaxOnline
bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. By default, Last Request Date VARCHAR Y 14
this defaults to 20231215000000
JSON REQUEST SAMPLE
12
CodeRes Search resultCd This is the VSDC response code Result Code VARCHAR 3
code
resultMsg This is the VSDC response message Result Message VARCHAR 200
Response
resultDt This is the VSDC response date-time Result Date VARCHAR 14
cdNm This is the standard code name Standard Code Name VARCHAR 60
userDfnNm1 This is the standard code value User Define Name 1 VARCHAR 60
13
● Response: Returns the requested classification codes in the JSON-encoded format, ready to be stored and utilized within the third-party
system.
● Note: Details returned in the response MUST be stored/updated locally.
14
Item Class Codes Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
ItemClsReq Search tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Classification Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. By Last Request Date VARCHAR Y 14
default, this defaults to 20231215000000
JSON REQUEST SAMPLE
ItemClsRes Search resultCd This is the VSDC response code Result Code VARCHAR 3
Classification
resultMsg This is the VSDC response message Result Message VARCHAR 200
Response
resultDt This is the VSDC response date-time Result Date VARCHAR 14
itemClsCd This is the item classification code Item Class Code VARCHAR 10
(UNSPSC)
itemClsNm This is the item name Item Class Name VARCHAR 200
itemClsLvl This is the item class level Item Class Level NUMBER 10
taxTyCd This is the item tax type code Taxation Type Code VARCHAR 5 See ‘6.1 Tax Type’
useYn This is the active status of the item class Used / UnUsed VARCHAR 1
code
JSON RESPONSE SAMPLE
{"resultCd":"000","resultMsg":"It is succeeded","resultDt":"20240129000001","data":{"itemClsList":[{"itemClsCd":"15121513","itemClsNm":"Graphite
lubricants","itemClsLvl":4,"taxTyCd":null,"mjrTgYn":null,"useYn":"Y"},{"itemClsCd":"50122001","itemClsNm":"Wild caught alaska pollock","itemClsLvl":4,"taxTyCd":null,"mjrTgYn":null,"useYn":"Y"}]}}
15
5.4. Notices
The Notices API serves as a means for ZRA to communicate important announcements and upcoming events/updates to users of Smart Invoice.
This API specification enables the retrieval of all notices published by ZRA.
● Endpoint: /notices/selectNotices
● Request method: POST.
● Requirement: OPTIONAL
● Description: Retrieves details of all notices published by ZRA on Smart Invoice.
● Request Parameter: TPIN, Branch Id, Last Request Date
● Response: Returns a list of notices published by ZRA.
Notices Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
NoticeReq Search tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Notice Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. By Last Request Date VARCHAR Y 14
default, this defaults to 20231215000000
JSON REQUEST SAMPLE
Notices Response
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Data Length
NoticeRes Search resultCd This is the VSDC response code Result Code VARCHAR 3
Notice
resultMsg This is the VSDC response message Result Message VARCHAR 200
Response
resultDt This is the VSDC response date Result Date time VARCHAR 14
noticeNo This is the Notice number Notice Number NUMBER 10
title This is the Notice title Title VARCHAR 1000
cont This is the content of the notice Contents VARCHAR 4000
dtlUrl This is the Notice URL detail URL VARCHAR 200
regrNm This is the username of the uploader of the Notice Registration name VARCHAR 60
16
regDt This is the reg date of the Notice Registration date time VARCHAR 14
JSON RESPONSE SAMPLE
{"resultCd":"000","resultMsg":"It is succeeded","resultDt":"20240509170304","data”: {"noticeList":[{"noticeNo":1,"title":"Smart Invoice Full Roll-out","cont":"Roses are Red, Penalties are Red\r\nDo not forget to
issue a valid Tax Invoice!! Use Smart Invoice...","dtlUrl":"https://sandboxapi.zra.org.zm/SmartInvoiceExtApi//common/link/sip/receipt/indexSiNotice?noticeNo=1","regrNm":"ZRA","regDt":"20231215000000"}]
}}
● Endpoint: /branches/saveBrancheUser
● Request method: POST.
● Requirement: OPTIONAL
● Description: Saves branch user accounts created in the third-party system to Smart Invoice.
● Request Parameters: Branch user data including name, contact information, address, etc.
● Response: Returns confirmation of successful creation of branch user on Smart Invoice.
17
Save Branch User Request
Object ID Object Name Attribute Attribute Description Attribute Name Data Type Required Data Length
ID
BhfUserSaveReq Save Branch User tpin Taxpayer’s identification number as registered on TPIN VARCHAR Y 10
Request core Tax Administration System TaxOnline
bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
userId This is the unique identifier assigned to the users User ID VARCHAR Y 20
of the system
userNm This is the username assigned to the user of the Username VARCHAR Y 60
system
adrs This is the user’s address Address VARCHAR N 200
useYn This is the user active status on the system Used / UnUsed VARCHAR Y 1
regrNm This is the username of the creator of branch user Registrant Name VARCHAR Y 60
regrId This is the user id of the creator of the branch user Registrant ID VARCHAR Y 20
modrNm This is the username of the modifier of the details Modifier Name VARCHAR Y 60
of the branch user
modrId This is the user id of the modifier of the details of Modifier ID VARCHAR Y 20
the branch user
JSON REQUEST SAMPLE
{"tpin":"1000000000","bhfId":"000","userId":"SMART USER","userNm":"SMART USER","adrs":"Smart Invoice Street
1234","useYn":"Y","regrNm":"Admin","regrId":"Admin","modrNm":"Admin","modrId":"Admin"}
18
GET BRANCHES
● Endpoint: /branches/selectBranches
● Request method: POST.
● Requirement: OPTIONAL
● Description: Retrieve details of all registered branches from Smart Invoice.
● Request Parameters: TPIN, Branch Id, Last Request Date.
● Response: Retrieves a comprehensive list of all branches registered in Smart Invoice, including detailed information such as the branch
name, physical address, etc.
Get Branches Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
BhfReq Search tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Branch Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. By Last Request Date VARCHAR Y 14
default, this defaults to 20160523000000
JSON REQUEST SAMPLE
Response
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Data Length
BhfRes Search Branch resultCd This is the VSDC response code Result Code VARCHAR 3
Response resultMsg VARCHAR 200
This is the VSDC response Result Message
message
resultDt This is the VSDC response date Result Date VARCHAR 14
tpin This is the taxpayer identification TPIN VARCHAR 10
number
bhfId This is the branch (store) Branch Office ID VARCHAR 3
identifier
bhfNm This is the branch name Branch Office Name VARCHAR 60
19
bhfSttsCd This is the branch status code Branch Status Code VARCHAR 5
prvncNm This is the branch province name Province Name VARCHAR 100
dstrtNm This is the branch district name District Name VARCHAR 100
sctrNm This is the branch sector Sector Name VARCHAR 100
locDesc This is the branch location Location Description VARCHAR 100
mgrNm This is the branch applicant name Manager Name VARCHAR 60
mgrTelNo This is the branch applicant Manager Contact VARCHAR 20
contact
mgrEmail This is the branch applicant email Manager Email VARCHAR 100
hqYn This is the branch location Head Office Yes/No VARCHAR 1
{"resultCd":"000","resultMsg":"It is
succeeded","resultDt":"20240509173301","data":{"bhfList":[{"tin":"1000000000","bhfId":"000","bhfNm":"Headquarter","bhfSttsCd":"01","prvncNm":"LUSAKA
PROVINCE","dstrtNm":null,"sctrNm":"Lusaka","locDesc":null,"mgrNm":"SMART
USER","mgrTelNo":"07xxxxxxxx","mgrEmail":"smartuser@email.org.zm","hqYn":"Y"},{"tin":"1000000000","bhfId":"001","bhfNm":"Secondary
Branch","bhfSttsCd":"01","prvncNm":"LUSAKA PROVINCE","dstrtNm":null,"sctrNm":"Chilanga","locDesc":null,"mgrNm":"Smart
User","mgrTelNo":"+26xxxxxxxxxx","mgrEmail":"smartuser@email.org.zm","hqYn":"N"}]}}
GET CUSTOMERS
● Endpoint: /customers/selectCustomer
● Request method: POST.
● Requirement: OPTIONAL
● Description: Retrieves customer details based on the provided customer TPIN.
● Request Parameters: TPIN, Branch Id, Customer TPIN
20
● Response: Returns customer details saved on Smart Invoice including name, contact information, address, etc.
Get Customer Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
CustReq Search tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Customer Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
custmTpin This is the TPIN of a previously saved customer Last Request Date VARCHAR Y 14
dstrtNm This refers to the district where the customer has their registration. District Name VARCHAR 100
sctrNm This refers to the sector where the customer has their registration. Sector Name VARCHAR 100
resultCd This it the customer’s registered location Telephone Number VARCHAR 3
{"resultCd":"000","resultMsg":"It is succeeded","resultDt":"20240509173806","data":{"custList":[{"tpin":"1000000000","bhfId":"000","custNo":"09xxxxxxxx
","custTpin":"2000000000","custNm":"TAXPAYER 1","adrs":null,"telNo":"09xxxxxxxx","email":null,"faxNo":null,"useYn":"Y","remark":"Walk-in
Customer","regrId":null,"regrNm":null,"modrId":null,"modrNm":null}]}}
21
SAVE BRANCH CUSTOMER
● Endpoint: /branches/saveBrancheCustomers
● Request method: POST.
● Requirement: OPTIONAL
● Description: Saves customer details captured in third-party system to Smart Invoice.
● Request Parameters: Customer data including name, contact information, address, etc.
● Response: Returns confirmation of successful creation of customer.
Save Branch Customer Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Required Data Type Data Length
22
Save Branch Customer Response
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Data Length
BhfCustSaveRes Save Branch Customer Response resultCd This is the VSDC response code Result Code VARCHAR 3
resultMsg This is the VSDC response message Result Message VARCHAR 200
resultDt This is the VSDC response date-time Result Date VARCHAR 14
SAVE ITEM
● Endpoints: /items/saveItem
● Request method: POST.
● Requirement: MANDATORY
● Description: Saves product or services created in third-party system to Smart Invoice.
● Request Parameter: Item data including name, description, price quantity, category, etc.
● Response: Returns success for the saved product of service.
● Dependency: This endpoint requires valid standard and classification codes. To ensure successful use, retrieve and store/update these
codes before calling the endpoint with its attributes.
● Note: This endpoint allows you to register the products/services your offer with ZRA. It is used solely for the purpose of recording these
items. Stock-in and stock adjustments will be invoked by other process such as purchase, import or sales. All items registered must align
with level 4 of the UNSPSC codes list. Where not found, businesses must align to the closest codes at that level.
23
ERP VSDC API
24
qtyUnitCd This is the item quantity code VARCHAR Y 5 See ‘6.5. Units of Measure’
Quantity Unit Code
vatCatCd This is the VAT category code of a registered VAT category Code VARCHAR Y 5 See ‘6.1. Tax Type’
item. Where not applicable, pass null
iplCatCd This is the IPL category code of the registered IPL category code VARCHAR Y 5 See ‘6.1. Tax Type’
item. Where not applicable, pass null
tlCatCd This is the TL category code of the registered TL category code VARCHAR Y 5 See ‘6.1. Tax Type’
item. Where not applicable, pass null
exciseTxCatCd This is the Excise category code of the Excise tax category code VARCHAR Y 5 See ‘6.1. Tax Type’
registered item
btchNo This is the item batch number Batch Number VARCHAR N 10
bcd This is the item barcode Barcode VARCHAR N 20
dftPrc This is the default unit price Default Unit Price NUMBER Y 18,4
addInfo This is any additional information about the Additional Information VARCHAR N 100
registered item
sftyQty Refers to the additional inventory or stock Safety Quantity NUMBER N 13,2
that a business maintains as a buffer to guard
against unexpected fluctuations in demand
manufactuterTpin Manufacturer TPIN for MTV product Manufacture TPIN VARCHAR N 10
manufacturerItemCd Manufacturer item code for MTV product Manufacturer item code VARCHAR N 100
rrp Recommended Retailed Price as set by the RRP NUMBER N 18,4
manufacturer
svcChargeYn Indication of whether item being registered Service charge flag CHAR N 1
has a service charge
rentalYn Indication of whether item being registered Rental Flag CHAR N 1
has rental charge
useYn This is the usage status of the registered item Used / Unused VARCHAR Y 1
regrNm This is the username of the user registering Registrant Name VARCHAR Y 60
the item
regrId This is the user id of the user registering the Registrant ID VARCHAR Y 20
item
modrNm This is the username of the user modifying Modifier name VARCHAR Y 60
the item
modrId This is the user id of the user modifying the Modifier id VARCHAR Y 20
item
JSON REQUEST SAMPLE
25
{"tpin":"1000000000","bhfId":"000","itemCd":"P200005","itemClsCd":"43322555","itemTyCd":"2","itemNm":"Corn Flakes","itemStdNm":"Corn
Flakes","orgnNatCd":"SA","pkgUnitCd":"BOX","qtyUnitCd":"U","vatCatCd":"A","iplCatCd":"IPL1","tlCatCd":null,"exciseTxCatCd":null,"btchNo":null,"bcd":null,"dftPrc":15,”manufacturerTpin”:”1000000000”,”m
anufacturerItemCd”:ZM2EA1234”,”rrp”:”1000”,”svcChargeYn”:”Y”,”rentalYn”:”N”,"addInfo":null,"sftyQty":5,"isrcAplcbYn":"N","useYn":"Y","regrNm":"ADMIN","regrId":"ADMIN","modrNm":"ADMIN","modr
Id":"ADMIN"}
Save Item Response
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Data Length
ItemSaveRes Save Item Response resultCd This is the VSDC response code Result Code VARCHAR 3
resultMsg This is the response message Result Message VARCHAR 200
resultDt This is the response date Result Date VARCHAR 14
UPDATE ITEMS
● Endpoint: /items/updateItem
● Request method: POST.
● Requirement: MANDATORY
● Description: Updates specific product item details.
● Request Parameter: Item data including name, description, price, category, etc.
● Response: Returns success for updated item details.
● Dependency Note: This endpoint requires valid standard and classification codes. To ensure successful use, retrieve and update these
codes before calling the endpoint with its attributes.
● Note: Tax categories (VAT category code, IPL category code, TL category code, and excise tax category code) are only required if the
item falls under that specific tax category. For instance, the TL category code is always required for accommodation for taxpayers registered
under TL, but it is not mandatory for other items that do not pertain to tourism.
26
ERP VSDC API
27
Update Item Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length Format
ItemSaveReq Save Item tpin Taxpayer’s identification number as registered on core Tax VARCHAR Y 10
TPIN
Request Administration System TaxOnline
bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
itemCd This is the item identifier on the taxpayer’s system Item Code VARCHAR Y 100 See ‘6.16. Item
code’
itemClsCd This is the USNPSC item classification code Item Classification VARCHAR Y 10
Code
itemTyCd This is the item product type VARCHAR Y 5 See ‘6.2.
Item Type Code
Product
type’
itemNm This is the name of the item being registered by the Item Name VARCHAR Y 200
taxpayer
itemStdNm This refers to the standardized or commonly accepted Item Standard Name VARCHAR N 200
name used to identify a specific item or product within a
system
orgnNatCd This is the country of origin of the registered item Origin Place Code (Origin VARCHAR Y 5 See ‘6.3.
country code) Country
Codes’
pkgUnitCd This is the item packaging unit code VARCHAR Y 5 See ‘6.4.
Packaging Unit Code
Packaging
Unit’
qtyUnitCd This is the item quantity code VARCHAR Y 5 See ‘6.5.
Quantity Unit Code
Units of
Measure’
vatCatCd This is the VAT category code of a registered item VAT category Code VARCHAR N 5 See ‘6.1. Tax
Type’
iplCatCd This is the IPL category code of the registered item IPL category code VARCHAR N 5 See ‘6.1. Tax
Type’
tlCatCd This is the TL category code of the registered item TL category code VARCHAR N 5 See ‘6.1. Tax
Type’
exciseTxCatCd This is the Excise category code of the registered item Excise tax category code VARCHAR N 5 See ‘6.1. Tax
Type’
btchNo This is the item batch number Batch Number VARCHAR N 10
bcd This is the item barcode Barcode VARCHAR N 20
dftPrc This is the default unit price Default Unit Price NUMBER Y 18,4
28
manufactuterTpin Manufacturer TPIN for MTV product Manufacture TPIN VARCHAR N 10
manufacturerItemCd Manufacturer item code for MTV product Manifacture item code VARCHAR N 100
rrp Recommended Retailed Price as set by the manufacturer RRP NUMBER N 18,4
svcChargeYn Indication of whether item being registered has a service Service charge flag CHAR N 1
charge
rentalYn Indication of whether item being registered has rental Rental Flag CHAR N 1
charge
addInfo This is any additional information about the registered Additional VARCHAR N 100
item Information
sftyQty Refers to the additional inventory or stock that a business Safety Quantity NUMBER N 13,2
maintains as a buffer to guard against unexpected
fluctuations in demand
isrcAplcbYn Insurance Appicable(Y/N) VARCHAR Y 1
useYn This is the usage status of the registered item Used / UnUsed VARCHAR Y 1
regrNm This is the username of the user registering the item Registrant Name VARCHAR Y 60
regrId This is the user id of the user registering the item Registrant ID VARCHAR Y 20
modrNm This is the username of the system user approving or Modifier name VARCHAR Y 60
rejecting the imported item.
modrId This is the user ID of the system user approving or Modifier ID VARCHAR Y 20
rejecting the imported item.
ItemUpdateRes Update Item Response resultCd This is the VSDC response code Result Code VARCHAR 3
resultMsg This is the response message Result Message VARCHAR 200
resultDt This is the response date Result Date VARCHAR 14
29
JSON RESPONSE SAMPLE
GET ITEMS
● Endpoint: /items/selectItems
● Request method: POST.
● Requirement: OPTIONAL
● Description: Retrieves a list of all product items saved in Smart Invoice.
● Request Parameters: TPIN, Branch id, Last Request Date
● Response: Returns a list of items with their details including name, description, price, quantity, category, etc.
Select Items Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
ItemReq Search Item tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Request Administration System TaxOnline
bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. By Last Request Date VARCHAR Y 14
default, this defaults to 20160523000000
ItemRes Search Item Response resultCd This is the VSDC response code Result Code VARCHAR 3
30
itemClsCd This is the item identifier from the UNSPSC Item Classification Code VARCHAR 10
codes which maps to the registered item
itemTyCd This is the classifier used to categorize different Item Type Code VARCHAR 5 See ‘6.2.
types of items Product type’
itemNm This is the name of the registered item Item Name VARCHAR 200
itemStdNm This refers to the standardized or official Item Standard Name VARCHAR 200
name given to an item within a particular
system
orgnNatCd This refers to the country of origin of the Origin Place Code (Origin country code) VARCHAR 5
registered item/product See ‘6.3.
Country
Codes’
pkgUnitCd This refers to a unique identifier or code Packaging Unit Code VARCHAR 5 See ‘6.4.
assigned to a specific packaging unit within Packaging
a system Unit’
qtyUnitCd This refers to an identifier used to Quantity Unit Code VARCHAR 5 See ‘6.5. Units
represent a specific unit of measurement of Measure’
for quantity
vatCatCd This is the VAT category code VAT category Code VARCHAR 5 See ‘6.1. Tax
Type’
iplCatCd This is the IPL category code IPL category code VARCHAR 5 See ‘6.1. Tax
Type’
tlCatCd This is the TL category code TL category code VARCHAR 5 See ‘6.1. Tax
Type’
exciseTxCatCd This is the excise category code Excise tax category code VARCHAR 5 See ‘6.1. Tax
Type’
btchNo Refers to a unique identifier assigned to a group Batch Number VARCHAR 10
of items or products
bcd Refers to a visual representation of data Barcode VARCHAR N 20
that is readable by machines, typically
used for automatic identification and
tracking of products
dftPrc Refers to the standard or base price assigned to a Default Unit Price NUMBER Y 18,4
single unit of a product or item
manufactuterTpin Manufacturer TPIN for MTV product Manufacture TPIN VARCHAR N 10
manufacturerItemCd Manufacturer item code for MTV product Manufacturer item code VARCHAR N 100
rrp Recommended Retailed Price RRP NUMBER N 18,4
svcChargeYn Indication of whether an item has service charge Service charge flag CHAR N 1
31
to it
rentalYn Indication of whether an item has rental or not Rental Flag CHAR N 1
addInfo Refers to any additional information about the Additional Information VARCHAR N 100
registered product or item
sftyQty Refers to the additional inventory or stock that a Safety Quantity NUMBER N 13,2
business maintains as a buffer to guard against
unexpected fluctuations in demand
regBhfId This is the branch ID where the item was Registered Branch ID VARCHAR 3
registered
isrcAplcbYn Insurance Appicable Y/N VARCHAR 1
ZRAModYn This is an identifier regarding modification of ZRA Modify Y/N (Item VARCHAR 1
the item classification code by ZRA Classification Code)
useYn This is the item utilization status Used / UnUsed VARCHAR 1
GET ITEM
● Endpoint: /items/selectItem
● Request method: POST.
● Requirement: OPTIONAL
● Description: Retrieves details of a product item based on the provided item code.
● Request Parameters: TPIN, Branch Id, Item Code.
● Response: Returns details of product item including name, item code, package unit, etc that would have been registered by the business
onto Smart Invoice.
32
Select Item Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
ItemClsReq Search tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Classification Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
itemCd This is the item identifier on the taxpayer’s system Item Code VARCHAR Y 100
GetItemReq Get item Tpin This is the taxpayer’s identification number as registered on VARCHAR Y 10
TPIN
details the core tax administration system TaxOnline
itemCd This is the item identifier on the taxpayer’s system Item Code VARCHAR Y 100
itemClsCd This is the item identifier from the UNSPSC codes Item Classification VARCHAR Y 10
Code
itemTyCd This is the classifier used to categorize different types of VARCHAR Y 5 See ‘6.2.
item Type Code
items Product type’
itemNm This is the name of the registered item item Name VARCHAR Y 200
itemStdNm This refers to the standardized or official name given to an Item Standard Name VARCHAR N 200
item within a particular system
orgnNatCd This refers to the country of origin of the registered Origin Place Code (Origin VARCHAR Y 5 See ‘6.3.
item/product country code) Country
Codes’
pkgUnitCd This refers to a unique identifier or code assigned to a VARCHAR Y 5 See ‘6.4.
Packaging Unit Code
specific packaging unit within a system Packaging
Unit’
qtyUnitCd This refers to an identifier used to represent a specific unit VARCHAR Y 5 See ‘6.5.
Quantity Unit Code
of measurement for quantity Units of
Measure’
vatCatCd This is the VAT category code of the registered item Value Added Tax category VARCHAR Y 5 See ‘6.1. Tax
Code Type’
iplCatCd This is the IPL category code of the registered item Insurance Premium Levy VARCHAR Y 5 See ‘6.1. Tax
33
category code Type’
tlCatCd This is the TL category code Tourism Levy category VARCHAR Y 5 See ‘6.1. Tax
code Type’
exciseTxCatCd This is the excise category code Excise tax category code VARCHAR Y 5 See ‘6.1. Tax
Type’
btchNo Refers to a unique identifier assigned to a group of items or Batch Number VARCHAR N 10
products
bcd Refers to a visual representation of data that is readable by Barcode VARCHAR N 20
machines, typically used for automatic identification and
tracking of products
dftPrc Refers to the standard or base price assigned to a single unit Default Unit Price NUMBER Y 18,4
of a product or item
manufactuterTpin Manufacturer TPIN for MTV Transactions Manufacture TPIN VARCHAR N 10
manufacturerItemCd Manufacturer item code for MTV transaction Manufacturer item code VARCHAR N 100
svcChargeYn Indication of whether an item has service charge Service charge flag CHAR N 1
addInfo Refers to any additional information about the registered Additional VARCHAR N 100
product or item Information
sftyQty Refers to the additional inventory or stock that a business Safety Quantity NUMBER N 13,2
maintains as a buffer to guard against unexpected
fluctuations in demand
regBhfId Registered Branch ID VARCHAR 3
34
SAVE ITEM COMPOSITION
● Endpoint: /items/saveItemComposition
● Request method: POST.
● Requirement: OPTIONAL
● Description: This endpoint is designed to manage the storage of items involved in processing or repackaging activities. It is particularly
useful for situations where multiple products are combined or transformed into a unique finished product.
● Request Parameters: Item data including item code, quantity, etc.
● Response: Returns success or failure of the save item composition operation.
Save Item Composition Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length Format
SaveItemComReq Save Item tpin This is the taxpayer’s identification number registered TPIN VARCHAR Y 10
Composition with ZRA
bhfId This is the branch (store) identifier. Supplied by ZRA Branch ID VARCHAR Y 3
itemCd This is the item identifier on the taxpayer’s system Item Code VARCHAR Y 100
cpstItemCd This refers to an identifier used to categorize the final Composition Item VARCHAR Y 20
product Code
cpstQty This refers to the quantity or amount of a specific Composition Quantity NUMBER Y 13,2
ingredient
regrId This refers to the ID of the user of the system adding the Registrant ID VARCHAR Y 60
item
regrNm This refers to the username of the user adding the item Registrant Name VARCHAR Y 20
35
Save Item Composition Response
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Data Length
ISaveItemCompRes Save Item Composition Response resultCd This is the VSDC response code Result Code VARCHAR 3
resultMsg This is the VSDC response message Result Message VARCHAR 200
resultDt This is the VSDC response date Result Date VARCHAR 14
saveRrpItems Save RRP tpin Taxpayer’s identification number as registered on core VARCHAR Y 10
TPIN
Item Tax Administration System TaxOnline
bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
itemCd This is the item identifier on the taxpayer’s system Item Code VARCHAR Y 100 See ‘6.16. Item
code’
itemClsCd This is the USNPSC item classification code Item Classification VARCHAR Y 10
Code
itemTyCd This is the item product type VARCHAR Y 5 See ‘6.2.
Item Type Code
Product
type’
itemNm This is the name of the item being registered by the Item Name VARCHAR Y 200
taxpayer
orgnNatCd This is the country of origin of the registered item Origin Place Code (Origin VARCHAR Y 5 See ‘6.3.
country code) Country
36
Codes’
pkgUnitCd This is the item packaging unit code VARCHAR Y 5 See ‘6.4.
Packaging Unit Code
Packaging
Unit’
qtyUnitCd This is the item quantity code VARCHAR Y 5 See ‘6.5.
Quantity Unit Code
Units of
Measure’
rrp This is the recommended retail price set by the RRP NUMBER Y 18,4
manufacturer
useYn This is the usage status of the registered item Used / UnUsed VARCHAR Y 1
regrNm This is the username of the user registering the item Registrant Name VARCHAR Y 60
regrId This is the user id of the user registering the item Registrant ID VARCHAR Y 20
modrNm This is the username of the system user approving or Modifier name VARCHAR Y 60
rejecting the imported item.
modrId This is the user ID of the system user approving or Modifier ID VARCHAR Y 20
rejecting the imported item.
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Data Length
ISaveItemCompRes Save Item Composition Response resultCd This is the VSDC response code Result Code VARCHAR 3
resultMsg This is the VSDC response message Result Message VARCHAR 200
resultDt This is the VSDC response date Result Date VARCHAR 14
37
SELECT RRP ITEMS
● Endpoint: /items/selectRrpItems
● Request method: POST.
● Requirement: OPTIONAL
● Description: This endpoint is designed to select recommended retailed price items from manufacturers data
● Request Parameters: Item data including Tpin, branch ID, and last request date.
● Response: Returns success or failure of the select RRP.
● Note: This endpoint should only be consumed by sellers of MTV products. It is used to get Recommended Retail Prices set by
manufacturers which will be used when processing sales with MTV products.
rrpItemReq Search RRP tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Item Request Administration System TaxOnline
bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. Last Request Date VARCHAR Y 14
38
Product
type’
itemNm This is the name of the item being registered by the Item Name VARCHAR Y 200
taxpayer
orgnNatCd This is the country of origin of the registered item Origin Place Code VARCHAR Y 5 See ‘6.3.
(Origin country code) Country
Codes’
pkgUnitCd This is the item packaging unit code VARCHAR Y 5 See ‘6.4.
Packaging Unit Code
Packaging
Unit’
qtyUnitCd This is the item quantity code VARCHAR Y 5 See ‘6.5.
Quantity Unit Code
Units of
Measure’
rrp This is the recommended retail price of an item RRP NUMBER Y 18,4
useYn This is the usage status of the registered item Used / UnUsed VARCHAR Y 1
regrNm This is the username of the user registering the item Registrant Name VARCHAR Y 60
regrId This is the user id of the user registering the item Registrant ID VARCHAR Y 20
modrNm This is the username of the system user approving or Modifier name VARCHAR Y 60
rejecting the imported item.
modrId This is the user ID of the system user approving or Modifier ID VARCHAR Y 20
rejecting the imported item.
39
5.8. Import Information
The Imports API facilitates the exchange of all data associated with items imported by a business, as declared in the Automated System for Customs
Data (ASYCUDA). This integration ensures seamless transfer of import details, enabling businesses to efficiently manage and synchronize
imported item data in their third-party systems.
Through the Imports API, businesses can automatically fetch and integrate import details from ASYCUDA directly into their third-party system.
This includes information such as product descriptions, quantities, values, etc.
GET IMPORTS
● Endpoint: /imports/selectImportItems
● Request method: POST.
● Requirement: MANDATORY
● Description: Retrieves a list of imported items saved on Smart Invoice from ASYCUDA.
● Request Parameters: TPIN, Branch Id, Last Request Date.
● Response: Retrieves a list of imported items including detailed information such as product descriptions, quantities, values, etc.
ImptItemReq Search tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
Import Item Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. By Last Request Date VARCHAR Y 14
default, this defaults to 20160523000000
dclRefNum This is the declaration reference number captured on ASYCUDA Declaration VARCHAR N 100
reference number
JSON REQUEST SAMPLE
40
Get Imports Response
Object ID Object Name Attribute Attribute Description Attribute Name Data Type Data Length Format
ID
ImptItemRes Search resultCd This is the VSDC response code Result Code VARCHAR 3
Import Item Response
Response resultMsg This is the response message VARCHAR 200
Result Message
resultDt This is the response date VARCHAR 14
Result Date
taskCd Refers to a code for the specific declaration related to customs VARCHAR 50
Task Code
clearance
dclDe Refers to the date when the customs declaration for the goods was VARCHAR 8
Declaration Date
submitted
itemSeq This is the order of items in a particular declaration NUMBER 10
Item Sequence
dclNo This refers to the reference number assigned to a specific VARCHAR 50
Declaration Number
declaration on the Customs System
hsCd Refers to an internationally standardized system of names and VARCHAR 17
HS Code
numbers used to classify traded products for customs and tariff
purposes
itemNm This is the product name of the imported item VARCHAR 500
Item Name
orgnNatCd Refers to the Country of origin of the imported item VARCHAR 5 See ‘6.3. Country
Origin Nation Code
Codes’
exptNatCd This refers to a code or identifier used to represent a specific VARCHAR 5
Export Nation Code
country or nation in the context of international trade
pkg This refers to a container, box, or bundle in which items, products, NUMBER 13,2
Package
or goods are enclosed for storage
pkgUnitCd Refers to a unique identifier or code assigned to a specific VARCHAR 5 See ‘6.4.
Packaging Unit Code
packaging unit Packaging Unit’
qty Refers to the quantity of the imported item NUMBER 13,2
Quantity
qtyUnitCd Refers to the quantity unit code of the imported item VARCHAR 5 See ‘6.5. Units of
Quantity Unit Code
Measure’
totWt Refers to the gross weight of the imported item NUMBER 13,2
Gross Weight
netWt Refers to the net weight of the imported item NUMBER 13,2
Net Weight
41
spplrNm Refers to the supplier’s name of the imported item VARCHAR 500
Supplier's name
agntNm Refers to the agent’s name of the importation VARCHAR 500
Agent name
invcFcurAmt Refers to the foreign currency amount for the imported item NUMBER 18,4
Invoice Foreign Currency
Amount
invcFcurCd Refers to the foreign currency used to import the item VARCHAR 5 See ‘6.6.
Invoice Foreign Currency
Currency’
invcFcurExcrt Refers to the exchange rate used when importing the item NUMBER 18,4
Invoice Foreign Currency
Exchange Rate
dclRefNum This is the declaration reference number captured on ASYCUDA VARCHAR 100
Declaration reference
number
JSON RESPONSE SAMPLE
{"resultCd":"000","resultMsg":"It is succeeded","resultDt":”20231120194118","data":{"itemList":[{"taskCd":"2239078","dclDe":"-1","itemSeq":1,"dclNo":"C3460-2019-
TZDL","hsCd":"20055900000","itemNm":"BAKED
BEANS","imptItemsttsCd":"2","orgnNatCd":"BR","exptNatCd":"BR","pkg":2922,"pkgUnitCd":null,"qty":19946,"qtyUnitCd":"KGM","totWt":19945.57,"netWt":19945.57,"spplrNm":"ODERICH CONSERVA
QUALIDADE\nBRASIL","agntNm":"BN METRO Ltd","invcFcurAmt":296865.6,"invcFcurCd":"USD","invcFcurExcrt":929.79}]}}
42
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length Format
ImptItemSaveRes Update Item Response tpin This is the VSDC response code TPIN VARCHAR Y 10
bhfId This is the response message Branch ID VARCHAR Y 3
taskCd Refers to a code for the specific Task Code VARCHAR Y 50
declaration related to customs
clearance
dclDe Refers to the date when the customs Declaration Date VARCHAR Y 8
declaration for the goods was
submitted
itemSeq This is the order of items in a Item Sequence NUMBER Y 10
particular declaration
hsCd Refers to an internationally HS Code VARCHAR Y 17
standardized system of names and
numbers used to classify traded
products for customs and tariff
purposes
itemClCd This is the UNSPSC classification Item Classification Code VARCHAR Y 10
code used to classify the imported
item. Retrieved from the UNSPSC
codes previously saved on the third-
party system
itemCd This is the item identifier on the Item Code VARCHAR Y 100
taxpayer’s system
imptItemsttsCd This is the status code of the item to Import Item Status Code VARCHAR Y 5 See ‘6.17.
be approved or rejected by the Import Item
taxpayer status’
remark This is a general remark about the Remark VARCHAR N 400
approval or rejection of the item by
the taxpayer
43
modrNm This is the username of the system Modifier Name VARCHAR Y 60
user approving or rejecting the
imported item.
modrId This is the user ID of the system user Modifier ID VARCHAR Y 20
approving or rejecting the imported
item.
JSON REQUEST SAMPLE
{"tpin": "1000000000","bhfId": "000","taskCd": "4561614","dclDe": "20240426","importItemList": [{"itemSeq": 2,"hsCd": "72149900000","itemClsCd": "5022110801","itemCd": "RW1NTXU0000006",
"imptItemSttsCd": "3","remark": "remark","modrNm": "Admin","modrId": "Admin"}, {"itemSeq": 3,"hsCd": "04051000000","itemClsCd": "5022110802","itemCd": "RW1NTXU0000007","imptItemSttsCd": "4",
"remark": "This is a non-stock item","modrNm": "Admin2","modrId": "Admin2"}]}
ImptItemSaveRes Update Item Response resultCd This is the VSDC response code Result Code VARCHAR 3
resultMsg This is the VSDC response message Result Message VARCHAR 200
resultDt This is the response date Result Date VARCHAR 14
44
● Dependency: After completing a sale, it's important to update the inventory to reflect the correct levels of the items sold. This involves
using the 'Save Stock Items' endpoint to show stock movements. Following this, the 'Stock Master' endpoint should be called to update the
stock quantities based on the sales recorded. This process ensures that inventory adjustments due to sales are accurately reflected in the
overall stock inventory, for further reporting to Smart Invoice.
● Note: All sales receipts must be printed with the ‘rcptNo’ which is returned in success response when sale is posted to VSDC. This is the
ZRA invoice number which must be referred to when taxpayer intends to issue a credit note or debit note.
Save Stock Items Update Smart Invoice with the item data
POST /stock/saveStockItems
for each sale
45
Certified invoicing
solutions
custTpin Customers taxpayer’s Customer TPIN VARCHAR N 10
identification number as
registered on core Tax
Administration System
TaxOnline
custNm Customers name Customer Name VARCHAR N 60
46
taxblAmtB Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line B
items classified as MTV
-Minimum Taxable
Value for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC1 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C1
items classified as C1 -
Exports for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC2 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C2
items classified as C2 –
Zero rating LPO for
VAT purposes (pass 0.0
if not applicable)
taxblAmtC3 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C3
items classified as C3
Zero rated by nature for
VAT purposes (pass 0.0
if not applicable)
taxblAmtD Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line D
items classified as D
Exempt for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtRvat Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line RVAT
items classified as
RVAT for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtE Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line E
items classified as E -
Disbursements for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtF Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line F
items classified as F for
47
VAT purposes (pass 0.0
if not applicable)
taxblAmtIpl1 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line IPL
items attracting
Insurance Premium
Levy (pass 0.0 if not
applicable)
taxblAmtIpl2 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line IPL2
items attracting
Insurance Premium
Levy 2 (pass 0.0 if not
applicable)
taxblAmtTl Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line TL
items attracting
Tourism Levy (pass 0.0
if not applicable)
taxblAmtEcm Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line ECM
items attracting Excise
Coal (pass 0.0 if not
applicable)
taxblAmtExeeg Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line EXEEG
items attracting Excise
Electricity (pass 0.0 if
not applicable)
taxblAmtTot Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line TOT
items attracting TOT
(pass 0.0 if not
applicable)
taxRtA Tax rate VAT Standard Tax Rate A NUMBER Y 7,2
rated category A– As
per standard codes
taxRtB Tax rate for Minimum Tax Rate B NUMBER Y 7,2
Taxable Value – As per
standard codes
taxRtC1 Tax rate for C1- Tax Rate C1 NUMBER Y 7,2
Exports – As per
standard codes
taxRtC2 Tax rate for C2 Zero Tax Rate C2 NUMBER Y 7,2
rating LPO – As per
standard codes
48
taxRtC3 Tax rate for C3 Zero Tax Rate C3 NUMBER Y 7,2
rated by nature – As per
standard codes
taxRtD Tax rate for D Exempt Tax Rate D NUMBER Y 7,2
– As per standard
codes
taxRtRvat Tax rate for RVAT Tax Rate NUMBER Y 7,2
reverse VAT – As per RVAT
standard codes
taxRtE Tax rate E Tax Rate E NUMBER Y 7,2
Disbursements – As per
standard codes
taxRtF Rate for F Service Tax Rate F NUMBER Y 7,2
charge – As per
standard codes
taxRtIpl1 Tax rate for Insurance Tax Rate IPL NUMBER Y 7,2
premium levy – As per
standard codes
taxRtIpl2 Tax rate for Insurance Tax Rate IPL2 NUMBER Y 7,2
Premium Levy – As per
standard codes
taxRtTl Tax rate for Tourism Tax Rate TL NUMBER Y 7,2
Levy – As per standard
codes
taxRtEcm Tax rate for Excise Tax Rate ECM NUMBER Y 7,2
Coal Mining – As per
standard codes
taxRtExeeg Tax rate Electricity and Tax Rate NUMBER Y 7,2
Energy generation – As EXEEG
per standard codes
taxRtTot Tax rate VAT – As per Tax Rate TOT NUMBER Y 7,2
standard codes
taxAmtA This is the total tax Tax Amount A NUMBER Y 18,4
charged on all VAT
category A line items
on invoice (Pass 0.0
when not applicable)
taxAmtB This is the total tax Tax Amount B NUMBER Y 18,4
charged on all VAT
category A line items
on invoice (Pass 0.0
when not applicable)
taxAmtC1 This is the total tax Tax Amount C1 NUMBER Y 18,4
charged on all VAT
category C1 line items
on invoice (Pass 0.0
when not applicable)
49
taxAmtC2 This is the total tax Tax Amount C2 NUMBER Y 18,4
charged on all VAT
category C2 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC3 This is the total tax Tax Amount C3 NUMBER Y 18,4
charged on all VAT
category C3 line items
on invoice (Pass 0.0
when not applicable)
taxAmtD This is the total tax Tax Amount D NUMBER Y 18,4
charged on all VAT
category D line items
on invoice (Pass 0.0
when not applicable)
taxAmtRvat This is the total tax Tax Amount NUMBER Y 18,4
charged on all VAT RVAT
category RVAT line
items on invoice (Pass
0.0 when not
applicable)
taxAmtE This is the total tax Tax Amount E NUMBER Y 18,4
charged on all VAT
category E line items on
invoice (Pass 0.0 when
not applicable)
taxAmtF This is the total tax Tax Amount F NUMBER Y 18,4
charged on all VAT
category F (Service
Charge) line items on
invoice (Pass 0.0 when
not applicable)
taxAmtIpl1 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL1
Levy IPL on invoice
(Pass 0.0 when not
applicable)
taxAmtIpl2 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL2
Levy IPL2 (Re-
Insurance) on invoice
(Pass 0.0 when not
applicable)
taxAmtTl This is the total Tax Amount TL NUMBER Y 18,4
tax Tourism Levy
charged on invoice
50
(Pass 0.0 when not
applicable)
taxAmtEcm This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise ECM
Coal Mining line items
on invoice (Pass 0.0
when not applicable)
taxAmtExeeg This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise EXEEG
Electricity and Energy
generating line items on
invoice (Pass 0.0 when
not applicable)
taxAmtTot [Pass 0.0 not applicable Tax Amount NUMBER Y 18,4
on invoice] TOT
totTaxblAmt This is the total Tax Total TaxlAmt NUMBER Y 18,4
Exclusive Amount for
all line items on
invoice
totTaxAmt This is the total tax Tot Tax NUMBER Y 18,4
charged on all line Amount
items on invoice
commInvcNo Commercial Invoice Number N 38
Number
custTyCd Customer category Varchar N 5 see ‘6.24’. Customer
type code’
travelPurposeCd Travel purpose code Varchar N 5 see ‘6.25’ Travelpurpose
code
nonResidenTyCd customer Non-residence Varchar N 5 see ‘6.25’ travel purpose
type or category code’
permenentRsdncAdr Customer Permanent Varchar N 100
s residence address
permanentRsncCoun Customer Permanent Varchar N 5
tryCd residence country code See ‘6.3. Country Codes’
51
countriesToBeVisited List of countries to be List<String> N 5
visited See ‘6.3. Country Codes’
52
exchangeRt This is the exchange Exchange rate NUMBER Y 18,4
rate used in the
transaction.
destnCountryCd This is the destination Destination VARCHAR N 5
country of the item Country Code
being exported.
dbtRsnCd This is the reason code Debit Reason VARCHAR N 5
for issuing a debit. Code
invcAdjustReason This is the reason for Invoice VARCHAR N
adjusting an invoice Adjustment
Reason
cashDcRt This is the cash Cash Discount NUMBER N 18,4
discount rate applied on Rate
the summed total for the
line items
cashDcAmt Cash /value discount Cash discount NUMBER N 18,4
amount amount
List<Trns itemSeq Item Sequence Number Item Sequence NUMBER Y 11
SalesSave Number
WrItem>
itemCd This is the item Item Code VARCHAR Y 100
identifier on the
taxpayer’s system
itemClsCd This is the UNSCP Item VARCHAR Y 10
code assigned to the Classification
item Code
itemNm This is the item name as Item Name VARCHAR Y 200
defined on your system
bcd This is the barcode Barcode VARCHAR N 20
assigned to the item
pkgUnitCd This is the packaging Packaging Unit VARCHAR Y 5 See ‘6.4 Packaging Unit’
unit code assigned to Code
the item as per standard
codes.
pkg This is the number of Package NUMBER Y 13,2
package items being
sold.
qtyUnitCd This is the assigned Quantity Unit VARCHAR Y 5 See ‘6.5. Unit of
single item unit code Code Quantity’
assigned to the item as
per standard codes
qty This is the quantity of Quantity NUMBER Y 13,2
items being sold
prc This is the tax inclusive Unit Price NUMBER Y 18,4
price of the item
53
splyAmt This is the total amount Supply Amount NUMBER Y 18,4
of the supplied item
(qty * prc)
dcRt This is the discount rate Discount rate NUMBER Y 5,2
on line item (Pass 0.0 if
not applicable)
dcAmt This is the discount Discount NUMBER Y 18,4
amount on line item Amount
(Pass 0.0 if not
applicable)
isrccCd Insurance Company Insurance VARCHAR N 10
Code Company Code
isrccNm Insurance Company Insurance VARCHAR N 100
name Company name
isrcAmt This is the insurance Insurance NUMBER N 18,4
amount on line item Amount
vatCatCd This represents the tax Vat Category VARCHAR Y 5
category code for VAT Code
purposes on line item.
Pass null where not
applicable
exciseTxCatCd This represents the tax Excise Tax VARCHAR Y 5
category code for Category Code
Excise on line
item. Pass null where
not applicable
vatTaxblAmt This is the Tax VAT Taxable NUMBER Y 18,4
Exclusive Amount for Amount
VAT at line-item level
(Pass 0.0 when not
applicable)
exciseTaxblAmt This is the Tax Excise Taxable NUMBER Y 18,4
Exclusive Amount for Amount
Excise at line-item level
(Pass 0.0 when not
applicable)
tlTaxblAmt This is the Tax Tourism Levy NUMBER Y 18,4
Exclusive Amount for Taxable
Tourism Lecy at line- Amount
item level (Pass 0.0
when not applicable)
iplTaxblAmt This is the Tax Insurance NUMBER Y 18,4
Exclusive Amount for Premium Levy
IPL at line-item level Taxable
(Pass 0.0 when not Amount
applicable)
54
iplAmt This is the insurance Insurance NUMBER Y 18,4
premium levy tax Premium Levy
amount charged on the Amount
line item
tlAmt This is the Tourism Tourism Levy NUMBER Y 18,4
Levy amount charged mount
on the line item.
(Pass 0.0 when not
applicable)
vatAmt This is the VAT amount VAT Amount NUMBER Y 18,4
charged on the line
item
exciseTxAmt This is the excise tax Excise Tax NUMBER Y 18,4
amount charged on the Amount
line item (Pass 0.0
when not applicable)
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of
the line item
JSON REQUEST SAMPLE
{"tpin":"1000000000","bhfId":"000","orgInvcNo":0,"cisInvcNo":"CIS001-1380","custTpin":"2000000000","custNm":"Smart
Customer","salesTyCd":"N","rcptTyCd":"S","pmtTyCd":"01","salesSttsCd":"02","cfmDt":"20240508102010","salesDt":"20240728","stockRlsDt":null,"cnclReqDt":null,"cnclDt":null,"rfdDt":null,"rfdRsnCd":
null,"totItemCnt":2,"taxblAmtA":86.2069,"taxblAmtB":0.0,"taxblAmtC1":0.0,"taxblAmtC2":0.0,"taxblAmtC3":0.0,"taxblAmtD":0.0,"taxblAmtRvat":0.0,"taxblAmtE":0.0,"taxblAmtF":0.0,"taxblAmtIpl1":0.0,"
taxblAmtIpl2":100,"taxblAmtTl":0.0,"taxblAmtEcm":0,"taxblAmtExeeg":0.0,"taxblAmtTot":0.0,"taxRtA":16,"taxRtB":16,"taxRtC1":0,"taxRtC2":0,"taxRtC3":0,"taxRtD":0,"tlAmt":0.0,"taxRtRvat":16,"taxRtE
":0,"taxRtF":10,"taxRtIpl1":5,"taxRtIpl2":0,"taxRtTl":1.5,"taxRtEcm":5,"taxRtExeeg":3,"taxRtTot":0,"taxAmtA":13.7931,"taxAmtB":0.0,"taxAmtC1":0.0,"taxAmtC2":0.0,"taxAmtC3":0.0,"taxAmtD":0.0,"tax
AmtRvat":0.0,"taxAmtE":0.0,"taxAmtF":0.0,"taxAmtIpl1":0.0,"taxAmtIpl2":0.0,"taxAmtTl":0.0,"taxAmtEcm":0.0,"taxAmtExeeg":0.0,"taxAmtTot":0.0,"totTaxblAmt":186.2069,"totTaxAmt":13.7931,"cashDc
Rt":25,"cashDcAmt":50,"totAmt":150,"prchrAcptcYn":"N","remark":"","regrId":"admin","regrNm":"admin","modrId":"admin","modrNm":"admin","saleCtyCd":"1","lpoNumber":null,"currencyTyCd":"ZMW"
,"exchangeRt":"1","destnCountryCd":"","dbtRsnCd":"","invcAdjustReason":"","itemList":[{"itemSeq":1,"itemCd":"20056","itemClsCd":"50102518","itemNm":"Bread","bcd":"","pkgUnitCd":"BA","pkg":0.0,"
qtyUnitCd":"BE","qty":1.0,"prc":125,"splyAmt":125,"dcRt":20,"dcAmt":25,"isrccCd":"","isrccNm":"","isrcRt":0.0,"isrcAmt":0.0,"vatCatCd":"A","exciseTxCatCd":null,"tlCatCd":null,"iplCatCd":null,"vatTaxb
lAmt":86.2069,"vatAmt":13.7931,"exciseTaxblAmt":0,"tlTaxblAmt":0.0,"iplTaxblAmt":0.0,"iplAmt":0.0,"tlAmt":0.0,"exciseTxAmt":0,"totAmt":100},{"itemSeq":2,"itemCd":"20056","itemClsCd":"50102518
","itemNm":"Reinsurance","bcd":"","pkgUnitCd":"BA","pkg":0.0,"qtyUnitCd":"BE","qty":1.0,"prc":100,"splyAmt":100,"dcRt":0.0,"dcAmt":0.0,"isrccCd":"","isrccNm":"","isrcRt":0.0,"isrcAmt":0.0,"vatCatCd
":null,"exciseTxCatCd":null,"vatTaxblAmt":0.0,"exciseTaxblAmt":0,"tlTaxblAmt":0.0,"tlCatCd":null,"tlAmt":0.0,"iplCatCd":"IPL2","iplAmt":0.0,"iplTaxblAmt":100,"vatAmt":0.0,"exciseTxAmt":0,"totAmt":
100}]}
55
Save Sales Request – Credit Note
Object ID Object Attribute ID Attribute Description Attribute Data Type Required Data Format
Name Name Length
TrnsSalesSaveWrReq Save Sales tpin Taxpayer’s TPIN VARCHAR Y 10
Request identification number
as registered on core
Tax Administration
System TaxOnline
bhfId Taxpayer branch (store) Branch Id VARCHAR Y 3
location identifier
orgSdcId This is the SDC Id Original Branch VARCHAR Y 13
where the original Id
invoice was issued from
orgIncNo The invoice number Original Invoice NUMBER Y 38
being referred to if you Number
are issuing a credit note
or debit note
cisInvcNo Invoice number as CIS Invoice VARCHAR Y 50
generated on Taxpayers number
Certified invoicing
solutions
custTpin Customers taxpayer’s Customer TPIN VARCHAR N 10
identification number
as registered on core
Tax Administration
System TaxOnline
custNm Customers name Customer Name VARCHAR N 60
56
stockRlsDt Date when the item was Stock Released VARCHAR N 14 yyyyMMddhhmmss
released from the Date
warehouse/branch
cnclReqDt Date time when a Cancell VARCHAR Y 14 yyyyMMddhhmmss
cancellation request Requested Date
was made. This is used
when one needs to
cancel an invoice
cnclDt Date when cancellation Cancel Date VARCHAR Y 14 yyyyMMddhhmmss
was approved
rfdDt Date when refund was Refunded Date VARCHAR Y 14 yyyyMMddhhmmss
made (null when not a
refund)
rfdRsnCd Reason for issuing a Refunded VARCHAR Y 5 See ‘6.15. Refund
refund (empty string Reason Code Reason Code’
when not a refund)
totItemCnt Total number of items Total Item NUMBER Y 10
on the invoice Count
taxblAmtA Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items A
classified as Standard
Rated for VAT purposes
(Pass 0.0 if not
applicable)
taxblAmtB Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line B
items classified as
MTV -Minimum
Taxable Value for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtC1 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C1
items classified as C1 -
Exports for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtC2 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C2
items classified as C2 –
Zero rating LPO for
VAT purposes (pass 0.0
if not applicable)
taxblAmtC3 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C3
items classified as C3
Zero rated by nature for
57
VAT purposes (pass 0.0
if not applicable)
taxblAmtD Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line D
items classified as D
Exempt for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtRvat Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line RVAT
items classified
as RVAT for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtE Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line E
items classified as E -
Disbursements for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtF Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line F
items classified as F for
VAT purposes (pass 0.0
if not applicable)
taxblAmtIpl1 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line IPL
items attracting
Insurance Premium
Levy (pass 0.0 if not
applicable)
taxblAmtIpl2 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line IPL2
items attracting
Insurance Premium
Levy 2 (pass 0.0 if not
applicable)
taxblAmtTl Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line TL
items attracting
Tourism Levy (pass 0.0
if not applicable)
taxblAmtEcm Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line ECM
items attracting Excise
Coal (pass 0.0 if not
applicable)
58
taxblAmtExeeg Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line EXEEG
items attracting Excise
Electricity (pass 0.0 if
not applicable)
taxblAmtTot Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line TOT
items attracting TOT
(pass 0.0 if not
applicable)
taxRtA Tax rate VAT Standard Tax Rate A NUMBER Y 7,2
rated category A– As
per standard codes
taxRtB Tax rate for Minimum Tax Rate B NUMBER Y 7,2
Taxable Value – As per
standard codes
taxRtC1 Tax rate for C1- Tax Rate C1 NUMBER Y 7,2
Exports – As per
standard codes
taxRtC2 Tax rate for C2 Zero Tax Rate C2 NUMBER Y 7,2
rating LPO – As per
standard codes
taxRtC3 Tax rate for C3 Zero Tax Rate C3 NUMBER Y 7,2
rated by nature – As per
standard codes
taxRtD Tax rate for D Exempt Tax Rate D NUMBER Y 7,2
– As per standard
codes
taxRtRvat Tax rate for RVAT Tax Rate RVAT NUMBER Y 7,2
reverse VAT – As per
standard codes
taxRtE Tax rate E Tax Rate E NUMBER Y 7,2
Disbursements – As per
standard codes
taxRtF Rate for F Service Tax Rate F NUMBER Y 7,2
charge – As per
standard codes
taxRtIpl1 Tax rate for Insurance Tax Rate IPL NUMBER Y 7,2
premium levy – As per
standard codes
taxRtIpl2 Tax rate for Insurance Tax Rate IPL2 NUMBER Y 7,2
Premium Levy – As per
standard codes
taxRtTl Tax rate for Tourism Tax Rate TL NUMBER Y 7,2
Levy – As per standard
codes
59
taxRtEcm Tax rate for Excise Tax Rate ECM NUMBER Y 7,2
Coal Mining – As per
standard codes
taxRtExeeg Tax rate Electricity and Tax Rate NUMBER Y 7,2
Energy generation – As EXEEG
per standard codes
taxRtTot Tax rate VAT – As per Tax Rate TOT NUMBER Y 7,2
standard codes
taxAmtA This is the total tax Tax Amount A NUMBER Y 18,4
charged on all VAT
category A line items
on invoice (Pass 0.0
when not applicable)
taxAmtB This is the total tax Tax Amount B NUMBER Y 18,4
charged on all VAT
category A line items
on invoice (Pass 0.0
when not applicable)
taxAmtC1 This is the total tax Tax Amount C1 NUMBER Y 18,4
charged on all VAT
category C1 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC2 This is the total tax Tax Amount C2 NUMBER Y 18,4
charged on all VAT
category C2 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC3 This is the total tax Tax Amount C3 NUMBER Y 18,4
charged on all VAT
category C3 line items
on invoice (Pass 0.0
when not applicable)
taxAmtD This is the total tax Tax Amount D NUMBER Y 18,4
charged on all VAT
category D line items
on invoice (Pass 0.0
when not applicable)
taxAmtRvat This is the total tax Tax Amount NUMBER Y 18,4
charged on all VAT RVAT
category RVAT line
items on invoice (Pass
0.0 when not
applicable)
taxAmtE This is the total tax Tax Amount E NUMBER Y 18,4
charged on all VAT
category E line items
60
on invoice (Pass 0.0
when not applicable)
taxAmtF This is the total tax Tax Amount F NUMBER Y 18,4
charged on all VAT
category F (Service
Charge) line items on
invoice (Pass 0.0 when
not applicable)
taxAmtIpl1 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL1
Levy IPL on invoice
(Pass 0.0 when not
applicable)
taxAmtIpl2 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL2
Levy IPL2 (Re-
Insurance) on invoice
(Pass 0.0 when not
applicable)
taxAmtTl This is the total Tax Amount TL NUMBER Y 18,4
tax Tourism Levy
charged on invoice
(Pass 0.0 when not
applicable)
taxAmtEcm This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise ECM
Coal Mining line items
on invoice (Pass 0.0
when not applicable)
taxAmtExeeg This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise EXEEG
Electricity and Energy
generating line items on
invoice (Pass 0.0 when
not applicable)
taxAmtTot [Pass 0.0 not applicable Tax Amount NUMBER Y 18,4
on invoice] TOT
totTaxblAmt This is the total Tax Total TaxlAmt NUMBER Y 18,4
Exclusive Amount for
all line items on
invoice
totTaxAmt This is the total tax Tot Tax NUMBER Y 18,4
charged on all line Amount
items on invoice
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of
61
all line items on the
invoice
prchrAcptcYn This specifies whether a Purchase VARCHAR Y 1
purchase has been Accepted Yes or
accepted or not. (Pass No
N)
remark This is any Remark VARCHAR N 400
comment/remark on the
transaction
regrId This refers to the ID of Registrant Id VARCHAR Y 20
the user of the system
adding the item
regrNm This refers to the Registrant VARCHAR Y 60
username of the person Name
making the sale on the
system.
modrId This refers to the ID of Modifier Id VARCHAR Y 20
the user of the system
adding the item
modrNm This refers to the Modifier Name VARCHAR Y 60
username of the person
modifying the sale on
the system. (Default to
ADMIN when not
applicable)
saleCtyCd This is the sales Sales Category VARCHAR Y 2
category code Code
(pass 1 )
lpoNumber This is the Local LPO Number VARCHAR N 50
Purchase order number
as presented by the
buyer. This will be
validated.
currencyTyCd This is the currency Currency Type VARCHAR Y 5
code used in the Code
transaction – as per
standard codes
exchangeRt This is the exchange Exchange rate NUMBER Y 18,4
rate used in the
transaction.
destnCountryCd This is the destination Destination VARCHAR N 5
country of the item Country Code
being exported.
dbtRsnCd This is the reason code Debit Reason VARCHAR N 5
for issuing a debit. Code
62
invcAdjustReason This is the reason for Invoice VARCHAR N
adjusting an invoice Adjustment
Reason
cashDcRt Cash/value discount Cash Discount NUMBER N 18,4
rate Rate
cashDcAmt Cash /value discount Cash discount NUMBER N 18,4
amount amount
List<Trns itemSeq Item Sequence Number Item Sequence NUMBER Y 11
SalesSave Number
WrItem>
itemCd This is the item code as Item Code VARCHAR Y 100
defined on your system
itemClsCd This is the UNSCP Item VARCHAR Y 10
code assigned to the Classification
item Code
itemNm This is the item name as Item Name VARCHAR Y 200
defined on your system
bcd This is the barcode Barcode VARCHAR N 20
assigned to the item
pkgUnitCd This is the packaging Packaging Unit VARCHAR Y 5 See ‘6.4 Packaging
unit code assigned to Code Unit’
the item as per standard
codes.
Pkg This is the number of Package NUMBER Y 13,2
package items being
sold.
qtyUnitCd This is the assigned Quantity Unit VARCHAR Y 5 See ‘6.5. Unit of
single item unit code Code Quantity’
assigned to the item as
per standard codes
qty This is the quantity of Quantity NUMBER Y 13,2
items being sold
prc This is the tax inclusive Unit Price NUMBER Y 18,4
price of the item
splyAmt This is the total amount Supply Amount NUMBER Y 18,4
of the supplied item
(qty * prc)
dcRt This is the discount rate Discount rate NUMBER Y 5,2
on line item (Pass 0.0 if
not applicable)
dcAmt This is the discount Discount NUMBER Y 18,4
amount on line item Amount
(Pass 0.0 if not
applicable)
isrccCd Insurance Company Insurance VARCHAR N 10
Code Company Code
63
isrccNm Insurance Company Insurance VARCHAR N 100
name Company name
isrcAmt This is the insurance Insurance NUMBER N 18,4
amount on line item Amount
vatCatCd This represents the tax Vat Category VARCHAR Y 5
category code for VAT Code
purposes on line item
exciseTxCatCd This represents the tax Excise Tax VARCHAR Y 5
category code for Category Code
Excise on line item.
vatTaxblAmt This is the Tax VAT Taxable NUMBER Y 18,4
Exclusive Amount for Amount
VAT at line item level
(Pass 0.0 when not
applicable)
exciseTaxblAmt This is the Tax Excise Taxable NUMBER Y 18,4
Exclusive Amount for Amount
Excise at line item level
(Pass 0.0 when not
applicable)
tlTaxblAmt This is the Tax Tourism Levy NUMBER Y 18,4
Exclusive Amount for Taxable
Tourism Lecy at line Amount
item level (Pass 0.0
when not applicable)
iplTaxblAmt This is the Tax Insurance NUMBER Y 18,4
Exclusive Amount for Premium Levy
IPL at line item level Taxable
(Pass 0.0 when not Amount
applicable)
iplAmt This is the insurance Insurance NUMBER Y 18,4
premium levy tax Premium Levy
amount charged on the Amount
line item
tlAmt This is the Tourism Tourism Levy NUMBER Y 18,4
Levy amount charged mount
on the line item
(Pass 0.0 when not
applicable)
vatAmt This is the VAT VAT Amount NUMBER Y 18,4
amount charged on the
line item
exciseTxAmt This is the excise tax Excise Tax NUMBER Y 18,4
amount charged on the Amount
line item (Pass 0.0
when not applicable)
64
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of
the line item
JSON REQUEST SAMPLE
{"tpin":"1000000000","bhfId":"000","cisInvcNo":"INV000001","orgInvcNo":"806","orgSdcId":"SDC000000000","custTpin":"1000000000","prcOrdCd":0,"custNm":"Walkin","salesTyCd":"N","rcptTyCd":"
R","pmtTyCd":"04","salesSttsCd":"02","cfmDt":"20250608063847","salesDt":"20250608","stockRlsDt":null,"cnclReqDt":null,"cnclDt":null,"rfdDt":null,"rfdRsnCd":"01","totItemCnt":2,"taxblAmtA":14975.
862,"taxblAmtB":0,"taxblAmtC":0,"taxblAmtC1":0,"taxblAmtC2":0,"taxblAmtC3":0,"taxblAmtD":0,"taxblAmtRvat":0,"taxblAmtE":0,"taxblAmtF":0,"taxblAmtIpl1":0,"taxblAmtIpl2":0,"taxblAmtTl":0,"tax
blAmtEcm":0,"taxblAmtExeeg":0,"taxblAmtTot":0,"taxRtA":16,"taxRtB":16,"taxRtC1":0,"taxRtC2":0,"taxRtC3":0,"taxRtD":0,"taxRtE":0,"taxRtF":10,"taxRtIpl1":5,"taxRtIpl2":0,"taxRtTl":1.5,"taxRtEcm":
5,"taxRtExeeg":3,"taxRtTot":0,"taxRtRvat":16,"taxAmtA":2396.138,"taxAmtB":0,"taxAmtC1":0,"taxAmtC2":0,"taxAmtC3":0,"taxAmtD":0,"taxAmtC":0,"tlAmt":0,"taxAmtE":0,"taxAmtF":0,"taxAmtIpl1":
0,"taxAmtIpl2":0,"taxAmtTl":0,"taxAmtEcm":0,"taxAmtExeeg":0,"taxAmtTot":0,"taxAmtRvat":0,"totTaxblAmt":14975.862,"totTaxAmt":2396.138,"totAmt":17372,"prchrAcptcYn":"N","remark":"Duplicate
d invoice","regrId":"Admin Manager","regrNm":"Admin Manager","modrId":"Admin Manager","modrNm":"Admin
Manager","saleCtyCd":"1","lpoNumber":null,"currencyTyCd":"ZMW","exchangeRt":1,"destnCountryCd":null,"dbtRsnCd":null,"nvcAdjustReason":"Duplicated
invoice","itemList":[{"itemSeq":1,"itemCd":"ZM2PACKP100000063","itemClsCd":"50501814","itemNm":"Goodhope Almond 1L -
Original","bcd":null,"pkgUnitCd":"NT","pkg":1,"qtyUnitCd":"U","qty":20,"prc":434.3,"splyAmt":8686,"dcRt":0,"dcAmt":0,"isrccCd":"","isrccNm":"","isrcRt":0,"isrcAmt":0,"vatCatCd":"A","iplCatCd":null,
"tlCatCd":null,"exciseCatCd":null,"vatTaxblAmt":7487.931,"vatAmt":1198.069,"exciseTaxblAmt":0,"tlTaxblAmt":0,"iplTaxblAmt":0,"iplAmt":0,"tlAmt":0,"exciseTxAmt":0,"totAmt":8686},{"itemSeq":2,"i
temCd":"ZM2PACKP100000064","itemClsCd":"50501814","itemNm":"Goodhope Almond 1L - Vanilla
Unsweetened","bcd":null,"pkgUnitCd":"NT","pkg":1,"qtyUnitCd":"U","qty":20,"prc":434.3,"splyAmt":8686,"dcRt":0,"dcAmt":0,"isrccCd":"","isrccNm":"","isrcRt":0,"isrcAmt":0,"vatCatCd":"A","iplCatCd"
:null,"tlCatCd":null,"exciseCatCd":null,"vatTaxblAmt":7487.931,"vatAmt":1198.069,"exciseTaxblAmt":0,"tlTaxblAmt":0,"iplTaxblAmt":0,"iplAmt":0,"tlAmt":0,"exciseTxAmt":0,"totAmt":8686}]}
65
Save Sales Request – Value Credit note – This is a transaction adjustment involving amount without affecting stock quantities.
Object ID Object Attribute ID Attribute Description Attribute Data Type Required Data Format
Name Name Length
TrnsSalesSaveWrReq Save Sales tpin Taxpayer’s TPIN VARCHAR Y 10
Request identification number
as registered on core
Tax Administration
System TaxOnline
bhfId Taxpayer branch (store) Branch Id VARCHAR Y 3
location identifier
orgSdcId This is the SDC Id Original Branch VARCHAR Y 13
where the original Id
invoice was issued from
orgIncNo The invoice number Original Invoice NUMBER Y 38
being referred to if you Number
are issuing a credit note
or debit note
cisInvcNo Invoice number as CIS Invoice VARCHAR Y 50
generated on Taxpayers number
Certified invoicing
solutions
custTpin Customers taxpayer’s Customer TPIN VARCHAR N 10
identification number
as registered on core
Tax Administration
System TaxOnline
custNm Customers name Customer Name VARCHAR N 60
66
stockRlsDt Date when the item was Stock Released VARCHAR N 14 yyyyMMddhhmmss
released from the Date
warehouse/branch
cnclReqDt Date time when a Cancell VARCHAR Y 14 yyyyMMddhhmmss
cancellation request Requested Date
was made. This is used
when one needs to
cancel an invoice
cnclDt Date when cancellation Cancel Date VARCHAR Y 14 yyyyMMddhhmmss
was approved
rfdDt Date when refund was Refunded Date VARCHAR Y 14 yyyyMMddhhmmss
made (null when not a
refund)
rfdRsnCd Reason for issuing a Refunded VARCHAR Y 5 See ‘6.15. Refund
refund(empty string Reason Code Reason Code’
when not a refund)
totItemCnt Total number of items Total Item NUMBER Y 10
on the invoice Count
taxblAmtA Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items A
classified as Standard
Rated for VAT purposes
(Pass 0.0 if not
applicable)
taxblAmtB Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line B
items classified as
MTV -Minimum
Taxable Value for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtC1 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C1
items classified as C1 -
Exports for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtC2 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C2
items classified as C2 –
Zero rating LPO for
VAT purposes (pass 0.0
if not applicable)
taxblAmtC3 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C3
items classified as C3
Zero rated by nature for
67
VAT purposes (pass 0.0
if not applicable)
taxblAmtD Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line D
items classified as D
Exempt for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtRvat Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line RVAT
items classified
as RVAT for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtE Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line E
items classified as E -
Disbursements for VAT
purposes (pass 0.0 if
not applicable)
taxblAmtF Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line F
items classified as F for
VAT purposes (pass 0.0
if not applicable)
taxblAmtIpl1 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line IPL
items attracting
Insurance Premium
Levy (pass 0.0 if not
applicable)
taxblAmtIpl2 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line IPL2
items attracting
Insurance Premium
Levy 2 (pass 0.0 if not
applicable)
taxblAmtTl Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line TL
items attracting
Tourism Levy (pass 0.0
if not applicable)
taxblAmtEcm Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line ECM
items attracting Excise
Coal (pass 0.0 if not
applicable)
68
taxblAmtExeeg Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line EXEEG
items attracting Excise
Electricity (pass 0.0 if
not applicable)
taxblAmtTot Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line TOT
items attracting TOT
(pass 0.0 if not
applicable)
taxRtA Tax rate VAT Standard Tax Rate A NUMBER Y 7,2
rated category A– As
per standard codes
taxRtB Tax rate for Minimum Tax Rate B NUMBER Y 7,2
Taxable Value – As per
standard codes
taxRtC1 Tax rate for C1- Tax Rate C1 NUMBER Y 7,2
Exports – As per
standard codes
taxRtC2 Tax rate for C2 Zero Tax Rate C2 NUMBER Y 7,2
rating LPO – As per
standard codes
taxRtC3 Tax rate for C3 Zero Tax Rate C3 NUMBER Y 7,2
rated by nature – As per
standard codes
taxRtD Tax rate for D Exempt Tax Rate D NUMBER Y 7,2
– As per standard
codes
taxRtRvat Tax rate for RVAT Tax Rate RVAT NUMBER Y 7,2
reverse VAT – As per
standard codes
taxRtE Tax rate E Tax Rate E NUMBER Y 7,2
Disbursements – As per
standard codes
taxRtF Rate for F Service Tax Rate F NUMBER Y 7,2
charge – As per
standard codes
taxRtIpl1 Tax rate for Insurance Tax Rate IPL NUMBER Y 7,2
premium levy – As per
standard codes
taxRtIpl2 Tax rate for Insurance Tax Rate IPL2 NUMBER Y 7,2
Premium Levy – As per
standard codes
taxRtTl Tax rate for Tourism Tax Rate TL NUMBER Y 7,2
Levy – As per standard
codes
69
taxRtEcm Tax rate for Excise Tax Rate ECM NUMBER Y 7,2
Coal Mining – As per
standard codes
taxRtExeeg Tax rate Electricity and Tax Rate NUMBER Y 7,2
Energy generation – As EXEEG
per standard codes
taxRtTot Tax rate VAT – As per Tax Rate TOT NUMBER Y 7,2
standard codes
taxAmtA This is the total tax Tax Amount A NUMBER Y 18,4
charged on all VAT
category A line items
on invoice (Pass 0.0
when not applicable)
taxAmtB This is the total tax Tax Amount B NUMBER Y 18,4
charged on all VAT
category A line items
on invoice (Pass 0.0
when not applicable)
taxAmtC1 This is the total tax Tax Amount C1 NUMBER Y 18,4
charged on all VAT
category C1 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC2 This is the total tax Tax Amount C2 NUMBER Y 18,4
charged on all VAT
category C2 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC3 This is the total tax Tax Amount C3 NUMBER Y 18,4
charged on all VAT
category C3 line items
on invoice (Pass 0.0
when not applicable)
taxAmtD This is the total tax Tax Amount D NUMBER Y 18,4
charged on all VAT
category D line items
on invoice (Pass 0.0
when not applicable)
taxAmtRvat This is the total tax Tax Amount NUMBER Y 18,4
charged on all VAT RVAT
category RVAT line
items on invoice (Pass
0.0 when not
applicable)
taxAmtE This is the total tax Tax Amount E NUMBER Y 18,4
charged on all VAT
category E line items
70
on invoice (Pass 0.0
when not applicable)
taxAmtF This is the total tax Tax Amount F NUMBER Y 18,4
charged on all VAT
category F (Service
Charge) line items on
invoice (Pass 0.0 when
not applicable)
taxAmtIpl1 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL1
Levy IPL on invoice
(Pass 0.0 when not
applicable)
taxAmtIpl2 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL2
Levy IPL2 (Re-
Insurance) on invoice
(Pass 0.0 when not
applicable)
taxAmtTl This is the total Tax Amount TL NUMBER Y 18,4
tax Tourism Levy
charged on invoice
(Pass 0.0 when not
applicable)
taxAmtEcm This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise ECM
Coal Mining line items
on invoice (Pass 0.0
when not applicable)
taxAmtExeeg This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise EXEEG
Electricity and Energy
generating line items on
invoice (Pass 0.0 when
not applicable)
taxAmtTot [Pass 0.0 not applicable Tax Amount NUMBER Y 18,4
on invoice] TOT
totTaxblAmt This is the total Tax Total TaxlAmt NUMBER Y 18,4
Exclusive Amount for
all line items on
invoice
totTaxAmt This is the total tax Tot Tax NUMBER Y 18,4
charged on all line Amount
items on invoice
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of
71
all line items on the
invoice
prchrAcptcYn This specifies whether a Purchase VARCHAR Y 1
purchase has been Accepted Yes or
accepted or not. (Pass No
N)
remark This is any Remark VARCHAR N 400
comment/remark on the
transaction
regrId This refers to the ID of Registrant Id VARCHAR Y 20
the user of the system
adding the item
regrNm This refers to the Registrant VARCHAR Y 60
username of the person Name
making the sale on the
system.
modrId This refers to the ID of Modifier Id VARCHAR Y 20
the user of the system
adding the item
modrNm This refers to the Modifier Name VARCHAR Y 60
username of the person
modifying the sale on
the system. (Default to
ADMIN when not
applicable)
saleCtyCd This is the sales Sales Category VARCHAR Y 2
category code Code
(pass 1 )
lpoNumber This is the Local LPO Number VARCHAR N 50
Purchase order number
as presented by the
buyer. This will be
validated.
currencyTyCd This is the currency Currency Type VARCHAR Y 5
code used in the Code
transaction – as per
standard codes
exchangeRt This is the exchange Exchange rate NUMBER Y 18,4
rate used in the
transaction.
destnCountryCd This is the destination Destination VARCHAR N 5
country of the item Country Code
being exported.
dbtRsnCd This is the reason code Debit Reason VARCHAR N 5
for issuing a debit. Code
72
invcAdjustReason This is the reason for Invoice VARCHAR N
adjusting an invoice Adjustment
Reason
cashDcRt Cash/value discount Cash Discount NUMBER N 18,4
rate Rate
cashDcAmt Cash /value discount Cash discount NUMBER N 18,4
amount amount
List<Trns itemSeq Item Sequence Number Item Sequence NUMBER Y 11
SalesSave Number
WrItem>
itemCd This is the item code as Item Code VARCHAR Y 100
defined on your system
itemClsCd This is the UNSCP Item VARCHAR Y 10
code assigned to the Classification
item Code
itemNm This is the item name as Item Name VARCHAR Y 200
defined on your system
bcd This is the barcode Barcode VARCHAR N 20
assigned to the item
pkgUnitCd This is the packaging Packaging Unit VARCHAR Y 5 See ‘6.4 Packaging
unit code assigned to Code Unit’
the item as per standard
codes.
Pkg This is the number of Package NUMBER Y 13,2
package items being
sold.
qtyUnitCd This is the assigned Quantity Unit VARCHAR Y 5 See ‘6.5. Unit of
single item unit code Code Quantity’
assigned to the item as
per standard codes
qty This is the quantity of Quantity NUMBER Y 13,2
items being sold
prc This is the tax inclusive Unit Price NUMBER Y 18,4
price of the item
splyAmt This is the total amount Supply Amount NUMBER Y 18,4
of the supplied item
(qty * prc)
dcRt This is the discount rate Discount rate NUMBER Y 5,2
on line item (Pass 0.0 if
not applicable)
dcAmt This is the discount Discount NUMBER Y 18,4
amount on line item Amount
(Pass 0.0 if not
applicable)
isrccCd Insurance Company Insurance VARCHAR N 10
Code Company Code
73
isrccNm Insurance Company Insurance VARCHAR N 100
name Company name
isrcAmt This is the insurance Insurance NUMBER N 18,4
amount on line item Amount
vatCatCd This represents the tax Vat Category VARCHAR Y 5
category code for VAT Code
purposes on line item
exciseTxCatCd This represents the tax Excise Tax VARCHAR Y 5
category code for Category Code
Excise on line item.
vatTaxblAmt This is the Tax VAT Taxable NUMBER Y 18,4
Exclusive Amount for Amount
VAT at line item level
(Pass 0.0 when not
applicable)
exciseTaxblAmt This is the Tax Excise Taxable NUMBER Y 18,4
Exclusive Amount for Amount
Excise at line item level
(Pass 0.0 when not
applicable)
tlTaxblAmt This is the Tax Tourism Levy NUMBER Y 18,4
Exclusive Amount for Taxable
Tourism Lecy at line Amount
item level (Pass 0.0
when not applicable)
iplTaxblAmt This is the Tax Insurance NUMBER Y 18,4
Exclusive Amount for Premium Levy
IPL at line item level Taxable
(Pass 0.0 when not Amount
applicable)
iplAmt This is the insurance Insurance NUMBER Y 18,4
premium levy tax Premium Levy
amount charged on the Amount
line item
tlAmt This is the Tourism Tourism Levy NUMBER Y 18,4
Levy amount charged mount
on the line item
(Pass 0.0 when not
applicable)
vatAmt This is the VAT VAT Amount NUMBER Y 18,4
amount charged on the
line item
exciseTxAmt This is the excise tax Excise Tax NUMBER Y 18,4
amount charged on the Amount
line item (Pass 0.0
when not applicable)
74
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of
the line item
rebateInvcList NUMBER N 38
{"tpin":"1234567890","bhfId":"000","orgInvcNo":2,"orgSdcId":"SDC0010024844","cisInvcNo":"41","custTpin":"1000000000","custNm":"Walk-In
Customer","salesTyCd":"N","rcptTyCd":"V","pmtTyCd":"01","salesSttsCd":"02","cfmDt":"20250528173452","salesDt":"20250528","stockRlsDt":"20250528173452","cnclReqDt":"20250528173452","cnclDt
":null,"totItemCnt":1,"taxblAmtA":0,"taxblAmtB":0,"taxblAmtC1":7000,"taxblAmtC2":0,"taxblAmtC3":0,"taxblAmtD":0,"taxblAmtRvat":0,"taxblAmtE":0,"taxblAmtF":0,"taxblAmtIpl1":0,"taxblAmtIpl2":0,"
taxblAmtTl":0,"taxblAmtEcm":0,"taxblAmtExeeg":0,"taxblAmtTot":0,"taxAmtA":0,"taxAmtB":0,"taxAmtC":0,"taxAmtC1":0,"taxAmtC2":0,"taxAmtC3":0,"taxAmtD":0,"taxAmtRvat":0,"taxAmtE":0,"taxAm
tF":0,"taxAmtIpl1":0,"taxAmtIpl2":0,"taxAmtTl":0,"taxAmtEcm":0,"taxAmtExeeg":0,"taxAmtTot":0,"totTaxblAmt":7000,"totTaxAmt":0,"totAmt":7000,"taxRtA":16,"taxRtB":16,"taxRtC1":0,"taxRtC2":0,"ta
xRtC3":0,"taxRtD":0,"tlAmt":0,"taxRtRvat":16,"taxRtE":0,"taxRtF":10,"taxRtIpl1":5,"taxRtIpl2":0,"taxRtTl":1.5,"taxRtEcm":5,"taxRtExeeg":3,"taxRtTot":0,"prchrAcptcYn":"N","remark":"","regrId":"admin"
,"regrNm":"admin","modrId":"admin","modrNm":"admin","lpoNumber":null,"currencyTyCd":"ZMW","exchangeRt":"1.0","destnCountryCd":"SA","dbtRsnCd":null,"rfdRsnCd":"","invcAdjustReason":null,"b
ankCd":"ABSA","swiftCd":"3123","bnkBranch":"Lusaka","bankAccntNo":"121321312","bankAccntHldr":"Yvette","custTyCd":"01","travelPurposeCd":"01","permanentRsdncAdrs":"Gasaba
downtown","permanentRsdncCountryCd":"RW","originCountryCd":"RW","bookingAgentNm":"Lusaka
Tour","tourPackageNames":[],"rebateInvcList":[],"itemList":[{"itemSeq":1,"itemCd":"ZA2NTNO0000027","itemClsCd":"25101917","itemNm":"Rice","bcd":"","pkgUnitCd":"NT","pkg":1,"qtyUnitCd":"NO",
"qty":1,"prc":7000,"splyAmt":7000,"dcRt":0,"dcAmt":0,"vatCatCd":"C1","vatTaxblAmt":7000,"vatAmt":0,"totAmt":7000}]}
75
Administration System
TaxOnline
custNm Customers name Customer Name VARCHAR N 60
76
(pass 0.0 if not
applicable)
taxblAmtC1 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line items C1
classified as C1 -
Exports for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC2 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line items C2
classified as C2 – Zero
rating LPO for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC3 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line items C3
classified as C3 Zero
rated by nature for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtD Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items D
classified as D Exempt
for VAT purposes (pass
0.0 if not applicable)
taxblAmtRvat Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items RVAT
classified as RVAT for
VAT purposes (pass 0.0
if not applicable)
taxblAmtE Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items E
classified as E -
Disbursements for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtF Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items F
classified as F for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtIpl1 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items IPL
attracting Insurance
Premium Levy (pass 0.0
if not applicable)
77
taxblAmtIpl2 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items IPL2
attracting Insurance
Premium Levy 2 (pass
0.0 if not applicable)
taxblAmtTl Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items TL
attracting Tourism Levy
(pass 0.0 if not
applicable)
taxblAmtEcm Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items ECM
attracting Excise Coal
(pass 0.0 if not
applicable)
taxblAmtExeeg Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items EXEEG
attracting Excise
Electricity (pass 0.0 if
not applicable)
taxblAmtTot Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items TOT
attracting TOT (pass 0.0
if not applicable)
taxRtA Tax rate VAT Standard Tax Rate A NUMBER Y 7,2
rated category A– As
per standard codes
taxRtB Tax rate for Minimum Tax Rate B NUMBER Y 7,2
Taxable Value – As per
standard codes
taxRtC1 Tax rate for C1- Exports Tax Rate C1 NUMBER Y 7,2
– As per standard codes
taxRtC2 Tax rate for C2 Zero Tax Rate C2 NUMBER Y 7,2
rating LPO – As per
standard codes
taxRtC3 Tax rate for C3 Zero Tax Rate C3 NUMBER Y 7,2
rated by nature – As per
standard codes
taxRtD Tax rate for D Exempt – Tax Rate D NUMBER Y 7,2
As per standard codes
taxRtRvat Tax rate for RVAT Tax Rate RVAT NUMBER Y 7,2
reverse VAT – As per
standard codes
taxRtE Tax rate E Tax Rate E NUMBER Y 7,2
Disbursements – As per
standard codes
78
taxRtF Rate for F Service Tax Rate F NUMBER Y 7,2
charge – As per standard
codes
taxRtIpl1 Tax rate for Insurance Tax Rate IPL NUMBER Y 7,2
premium levy – As per
standard codes
taxRtIpl2 Tax rate for Insurance Tax Rate IPL2 NUMBER Y 7,2
Premium Levy – As per
standard codes
taxRtTl Tax rate for Tourism Tax Rate TL NUMBER Y 7,2
Levy – As per standard
codes
taxRtEcm Tax rate for Excise Coal Tax Rate ECM NUMBER Y 7,2
Mining – As per
standard codes
taxRtExeeg Tax rate Electricity and Tax Rate NUMBER Y 7,2
Energy generation – As EXEEG
per standard codes
taxRtTot Tax rate VAT – As per Tax Rate TOT NUMBER Y 7,2
standard codes
taxAmtA This is the total tax Tax Amount A NUMBER Y 18,4
charged on all VAT
category A line items on
invoice (Pass 0.0 when
not applicable)
taxAmtB This is the total tax Tax Amount B NUMBER Y 18,4
charged on all VAT
category A line items on
invoice (Pass 0.0 when
not applicable)
taxAmtC1 This is the total tax Tax Amount C1 NUMBER Y 18,4
charged on all VAT
category C1 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC2 This is the total tax Tax Amount C2 NUMBER Y 18,4
charged on all VAT
category C2 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC3 This is the total tax Tax Amount C3 NUMBER Y 18,4
charged on all VAT
category C3 line items
on invoice (Pass 0.0
when not applicable)
taxAmtD This is the total tax Tax Amount D NUMBER Y 18,4
charged on all VAT
79
category D line items on
invoice (Pass 0.0 when
not applicable)
taxAmtRvat This is the total tax Tax Amount NUMBER Y 18,4
charged on all VAT RVAT
category RVAT line
items on invoice (Pass
0.0 when not
applicable)
taxAmtE This is the total tax Tax Amount E NUMBER Y 18,4
charged on all VAT
category E line items on
invoice (Pass 0.0 when
not applicable)
taxAmtF This is the total tax Tax Amount F NUMBER Y 18,4
charged on all VAT
category F (Service
Charge) line items on
invoice (Pass 0.0 when
not applicable)
taxAmtIpl1 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL1
Levy IPL on invoice
(Pass 0.0 when not
applicable)
taxAmtIpl2 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL2
Levy IPL2
(ReInsurance) on
invoice (Pass 0.0 when
not applicable)
taxAmtTl This is the total tax Tax Amount TL NUMBER Y 18,4
Tourism Levy charged
on invoice (Pass 0.0
when not applicable)
taxAmtEcm This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise ECM
Coal Mining line items
on invoice (Pass 0.0
when not applicable)
taxAmtExeeg This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise EXEEG
Electricity and Energy
generating line items on
invoice (Pass 0.0 when
not applicable)
80
taxAmtTot [Pass 0.0 not applicable Tax Amount NUMBER Y 18,4
on invoice] TOT
totTaxblAmt This is the total Tax Total TaxlAmt NUMBER Y 18,4
Exclusive Amount for
all line items on invoice
totTaxAmt This is the total tax Tot Tax NUMBER Y 18,4
charged on all line items Amount
on invoice
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of all
line items on the
invoice
prchrAcptcYn This specifies whether a Purchase VARCHAR Y 1
purchase has been Accepted Yes or
accepted or not. (Pass N) No
remark This is any Remark VARCHAR N 400
comment/remark on the
transaction
regrId This refers to the ID of Registrant Id VARCHAR Y 20
the user of the system
adding the item
regrNm This refers to the Registrant VARCHAR Y 60
username of the person Name
making the sale on the
system.
modrId This refers to the ID of Modifier Id VARCHAR Y 20
the user of the system
adding the item
modrNm This refers to the Modifier Name VARCHAR Y 60
username of the person
modifying the sale on
the system. (Default to
ADMIN when not
applicable)
saleCtyCd This is the sales Sales Category VARCHAR Y 2
category code Code
(pass 1 )
lpoNumber This is the Local LPO Number VARCHAR N 50
Purchase order number
as presented by the
buyer. This will be
validated.
currencyTyCd This is the currency Currency Type VARCHAR Y 5
code used in the Code
transaction – as per
standard codes
81
exchangeRt This is the exchange rate Exchange rate NUMBER Y 18,4
used in the transaction.
destnCountryCd This is the destination Destination VARCHAR N 5
country of the item Country Code
being exported.
dbtRsnCd This is the reason code Debit Reason VARCHAR Y 5
for issuing a debit. Code
invcAdjustReason This is the reason for Invoice VARCHAR Y
adjusting an invoice Adjustment
Reason
cashDcRt Cash/value discount rate Cash Discount NUMBER N 18,4
Rate
cashDcAmt Cash /value discount Cash discount NUMBER N 18,4
amount amount
List<Trns itemSeq Item Sequence Number Item Sequence NUMBER Y 11
SalesSave Number
WrItem>
itemCd This is the item code as Item Code VARCHAR Y 20
defined on your system
itemClsCd This is the UNSCP code Item VARCHAR Y 10
assigned to the item Classification
Code
itemNm This is the item name as Item Name VARCHAR Y 200
defined on your system
bcd This is the barcode Barcode VARCHAR N 20
assigned to the item
pkgUnitCd This is the packaging Packaging Unit VARCHAR Y 5 See ‘6.4. Packaging
unit code assigned to the Code Unit’
item as per standard
codes.
Pkg This is the number of Package NUMBER Y 13,2
package items being
sold.
qtyUnitCd This is the assigned Quantity Unit VARCHAR Y 5 See ‘6.5. Unit of
single item unit code Code Quantity’
assigned to the item as
per standard codes
qty This is the quantity of Quantity NUMBER Y 13,2
items being sold
prc This is the tax inclusive Unit Price NUMBER Y 18,4
price of the item
splyAmt This is the total amount Supply Amount NUMBER Y 18,4
of the supplied item (qty
* prc)
dcRt This is the discount rate Discount rate NUMBER Y 5,2
on line item (Pass 0.0 if
not applicable)
82
dcAmt This is the discount Discount NUMBER Y 18,4
amount on line item Amount
(Pass 0.0 if not
applicable)
isrccCd Insurance Company Insurance VARCHAR N 10
Code Company Code
isrccNm Insurance Company Insurance VARCHAR N 100
name Company name
isrcAmt This is the insurance Insurance NUMBER N 18,4
amount on line item Amount
vatCatCd This represents the tax Vat Category VARCHAR Y 5
category code for VAT Code
purposes on line-item
exciseTxCatCd This represents the tax Excise Tax VARCHAR Y 5
category code for Excise Category Code
on line-item.
vatTaxblAmt This is the Tax VAT Taxable NUMBER Y 18,4
Exclusive Amount for Amount
VAT at line-item level
(Pass 0.0 when not
applicable)
exciseTaxblAmt This is the Tax Excise Taxable NUMBER Y 18,4
Exclusive Amount for Amount
Excise at line item level
(Pass 0.0 when not
applicable)
tlTaxblAmt This is the Tax Tourism Levy NUMBER Y 18,4
Exclusive Amount for Taxable
Tourism Lecy at line- Amount
item level (Pass 0.0
when not applicable)
iplTaxblAmt This is the Tax Insurance NUMBER Y 18,4
Exclusive Amount for Premium Levy
IPL at line-item level Taxable
(Pass 0.0 when not Amount
applicable)
iplAmt This is the insurance Insurance NUMBER Y 18,4
premium levy tax Premium Levy
amount charged on the Amount
line item
tlAmt This is the Tourism Tourism Levy NUMBER Y 18,4
Levy amount charged on mount
the line-item
(Pass 0.0 when not
applicable)
vatAmt This is the VAT amount VAT Amount NUMBER Y 18,4
charged on the line item
83
exciseTxAmt This is the excise tax Excise Tax NUMBER Y 18,4
amount charged on the Amount
line item (Pass 0.0 when
not applicable)
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of
the line item
JSON REQUEST SAMPLE
{"tpin":"1000000000","bhfId":"000","orgInvcNo":7,"cisInvcNo":"DBT000002","custTpin":"1000724543","custNm":"Customer Name
1","salesTyCd":"N","rcptTyCd":"D","pmtTyCd":"01","salesSttsCd":"02","cfmDt":"20240509172010","salesDt":"20240509","stockRlsDt":null,"cnclReqDt":null,"cnclDt":null,"rfdDt":null,"rfdRsnCd":null,"to
tItemCnt":1,"taxblAmtA":862.069,"taxblAmtB":0,"taxblAmtC1":0,"taxblAmtC2":0,"taxblAmtC3":0,"taxblAmtD":0,"taxblAmtRvat":0,"taxblAmtE":0,"taxblAmtF":0,"taxblAmtIpl1":0,"taxblAmtIpl2":0,"taxb
lAmtTl":0,"taxblAmtEcm":0,"taxblAmtExeeg":0,"taxblAmtTot":0,"taxRtA":16,"taxRtB":16,"taxRtC1":0,"taxRtC2":0,"taxRtC3":0,"taxRtD":0,"taxRtRvat":16,"taxRtE":0,"taxRtF":10,"taxRtIpl1":5,"taxRtIpl2
":0,"taxRtTl":1.5,"taxRtEcm":5,"taxRtExeeg":3,"taxRtTot":0,"taxAmtA":137.931,"taxAmtB":0,
"taxAmtC1":0,"taxAmtC2":0,"taxAmtC3":0,"taxAmtD":0,"taxAmtRvat":0,"taxAmtE":0,"taxAmtF":0,"taxAmtIpl1":0,"taxAmtIpl2":0,"taxAmtTl":0,"taxAmtEcm":0,"taxAmtExeeg":0,"taxAmtTot":0,"totTaxb
lAmt":862.069,"totTaxAmt":137.931,“cashDcRt”:0,“cashDcAmt”:0,"totAmt":1000,"prchrAcptcYn":"N","remark":"","regrId":"ADMIN","regrNm":"ADMIN","modrId":"ADMIN","modrNm":"ADMIN","sal
eCtyCd":"1",”lpoNumber”:null,"currencyTyCd":"ZMW","exchangeRt":"1","destnCountryCd":"","dbtRsnCd":"03","invcAdjustReason
":"Omitted Item","itemList":[{"itemSeq":1,"itemCd":"P200007","itemClsCd":"46181901","itemNm":"ITEM
1234","bcd":"","pkgUnitCd":"P/KG","pkg":0,"qtyUnitCd":"U","qty":10,"prc":100,"splyAmt":1000,"dcRt":0,"dcAmt":0,"isrccCd":"","isrccNm":"","isrcRt":0,"isrcAmt":0,"vatCatCd":"A","exciseTxCatCd":nul
l,"vatTaxblAmt":862.069,"exciseTaxblAmt":0,"vatAmt":137.931,"exciseTxAmt":0,"totAmt":1000}]}
Object ID Object Attribute ID Attribute Description Attribute Name Data Type Required Data Format
Name Length
TrnsSalesSaveWr Save Sales tpin This is the Taxpayer’s TPIN VARCHAR Y 10
Req Request Identification Number
bhfId Taxpayer branch (store) location Branch ID VARCHAR Y 3
identifier
orgInvcNo This is the original invoice Original Invoice NUMBER N 38
number referred to in the event Number
of a reversal or debit note
cisInvcNo Invoice number as generated on CIS Invoice number VARCHAR Y 50
Taxpayers Certified invoicing
solutions
custTpin This is the buyer’s Taxpayer’s Customer TPIN VARCHAR N 10
Identification number (The
privileged person to whom the
LPO is issued)
84
custNm Customers name Customer Name VARCHAR N 60
salesTyCd Type of sale e.g Normal sales, Sales Type Code VARCHAR Y 5 See ‘6.7.
Copy sale Transaction
Type’
rcptTyCd Type of receipt Receipt Type Code VARCHAR Y 5 See ‘6.8. Sale
Receipt Type’
pmtTyCd The mode of payment used for Payment Type Code VARCHAR N 5 See ‘6.9. Payment
this transaction Method’
salesSttsCd Progress of transaction e.g Invoice/Sale Status VARCHAR Y 5 See ‘6.10.
Approved, Refunded etc Code Transaction
Progress’
cfmDt Date time when invoice was Confirmation Date VARCHAR Y 14 yyyyMMddhhmm
issued ss
salesDt Date when sale was made Sales Date VARCHAR Y 8 yyyyMMdd
stockRlsDt Date when the item was released Stock Released Date VARCHAR N 14 yyyyMMddhhmm
from the warehouse/branch ss
cnclReqDt Date time when a cancellation Cancel Reqeuested VARCHAR N 14 yyyyMMddhhmm
request was made. This is used Date ss
when one needs to cancel an
invoice
cnclDt Date when cancellation was Cancel Date VARCHAR N 14 yyyyMMddhhmm
approved ss
rfdDt Date when refund was made Refunded Date VARCHAR N 14 yyyyMMddhhmm
(null when not a refund) ss
rfdRsnCd Reason for issuing a refund( Refunded Reason VARCHAR N 5 See ‘6.15. Refund
empty string when not a Code Reason Code’
refund)
totItemCnt Total number of items on Total Item Count NUMBER Y 10
the invoice
taxblAmtA Total amount taxable for all Taxable Amount A NUMBER Y 18,4
line items attracting VAT -
Standard Rated A (pass 0.0 if not
applicable)
taxblAmtB Total amount taxable for all line Taxable Amount B NUMBER Y 18,4
items attracting MTV -
Minimum Taxable Value B
(pass 0.0 if not applicable)
taxblAmtC1 Total amount taxable for all line Taxable Amount C1 NUMBER Y 18.4
items attracting VAT category
C1 -exports (pass 0.0 if not
applicable)
taxblAmtC2 Total amount taxable for all line Taxable Amount C2 NUMBER Y 18.4
items attracting VAT category
C2 -Zero rating LPO (pass 0.0 if
not applicable)
85
taxblAmtC3 Total amount taxable for all line Taxable Amount C3 NUMBER Y 18.4
items attracting C3 Zero rated
by nature (pass 0.0 if not
applicable)
taxblAmtD Total amount taxable for all line Taxable Amount D NUMBER Y 18,4
items attracting VAT category D
Exempt (pass 0.0 if not
applicable)
taxblAmtRvat Total amount taxable for all line Taxable Amount NUMBER Y 18,4
items attracting RVAT reverse RVAT
VAT (pass 0.0 if not
applicable)
taxblAmtE Total amount taxable for all line Taxable Amount E NUMBER Y 18,4
items attracting VAT category
E Disbursements (pass 0.0 if not
applicable)
taxblAmtF Total amount taxable for all line Taxable Amount F NUMBER Y 18,4
items attracting VAT category F
Service charge (pass 0.0 if not
applicable)
taxblAmtIpl1 Total amount taxable for all line Taxable Amount IPL NUMBER Y 18,4
items attracting Insurance
Premium Levy (pass 0.0 if not
applicable)
taxblAmtIpl2 Total amount taxable for all line Taxable Amount NUMBER Y 18,4
items attracting Insurance IPL2
Premium Levy 2 (pass 0.0 if not
applicable)
taxblAmtTl Total amount taxable for all line Taxable Amount TL NUMBER Y 18,4
items attracting Tourism Levy
(pass 0.0 if not applicable)
taxblAmtEcm Total amount taxable for all line Taxable Amount NUMBER Y 18,4
items attracting Excise Coal ECM
(pass 0.0 if not applicable)
taxblAmtExeeg Total amount taxable for all line Taxable Amount NUMBER Y 18,4
items attracting Excise EXEEG
Electricity (pass 0.0 if not
applicable)
taxblAmtTot Total amount taxable for all line Taxable Amount NUMBER Y 18,4
items attracting TOT (pass 0.0 if TOT
not applicable)
taxRtA Tax rate VAT category A– As Tax Rate A NUMBER Y 7,2
per standard codes
taxRtB Tax rate for Minimum Taxable Tax Rate B NUMBER Y 7,2
Value – As per standard codes
taxRtC1 Tax rate for C1- Exports – As Tax Rate C1 NUMBER Y 7,2
per standard codes
86
taxRtC2 Tax rate for C2 Zero rating Tax Rate C2 NUMBER Y 7,2
LPO – As per standard codes
taxRtC3 Tax rate for C3 Zero rated by Tax Rate C3 NUMBER Y 7,2
nature – As per standard codes
taxRtD Tax rate for D Exempt – As per Tax Rate D NUMBER Y 7,2
standard codes
taxRtRvat Tax rate for RVAT reverse VAT Tax Rate RVAT NUMBER Y 7,2
– As per standard codes
taxRtE Tax rate E Disbursements – As Tax Rate E NUMBER Y 7,2
per standard codes
taxRtF Rate for F Service charge – As Tax Rate F NUMBER Y 7,2
per standard codes
taxRtIpl1 Tax rate for Insurance premium Tax Rate IPL NUMBER Y 7,2
levy – As per standard codes
taxRtIpl2 Tax rate for Insurance Premium Tax Rate IPL2 NUMBER Y 7,2
Levy – As per standard codes
taxRtTl Tax rate for Tourism Levy – As Tax Rate TL NUMBER Y 7,2
per standard codes
taxRtEcm Tax rate for Excise Coal Mining Tax Rate ECM NUMBER Y 7,2
– As per standard codes
taxRtExeeg Tax rate Electricity and Energy Tax Rate EXEEG NUMBER Y 7,2
generation – As per standard
codes
taxRtTot Tax rate VAT – As per standard Tax Rate TOT NUMBER Y 7,2
codes
taxAmtA This is the total tax charged on Tax Amount A NUMBER Y 18,4
all VAT category A line items
on invoice (Pass 0.0 when not
applicable)
taxAmtB This is the total tax charged on Tax Amount B NUMBER Y 18,4
all VAT category A line items
on invoice (Pass 0.0 when not
applicable)
taxAmtC1 This is the total tax charged on Tax Amount C1 NUMBER Y 18,4
all VAT category C1 line items
on invoice (Pass 0.0 when not
applicable)
taxAmtC2 This is the total tax charged on Tax Amount C2 NUMBER Y 18,4
all VAT category C2 line items
on invoice (Pass 0.0 when not
applicable)
taxAmtC3 This is the total tax charged on Tax Amount C3 NUMBER Y 18,4
all VAT category C3 line items
on invoice (Pass 0.0 when not
applicable)
taxAmtD This is the total tax charged on Tax Amount D NUMBER Y 18,4
all VAT category D line items
87
on invoice (Pass 0.0 when not
applicable)
taxAmtRvat This is the total tax charged on Tax Amount RVAT NUMBER Y 18,4
all VAT category RVAT line
items on invoice (Pass 0.0 when
not applicable)
taxAmtE This is the total tax charged on Tax Amount E NUMBER Y 18,4
all VAT category E line items
on invoice (Pass 0.0 when not
applicable)
taxAmtF This is the total tax charged on Tax Amount F NUMBER Y 18,4
all VAT category F (Service
Charge) line items on invoice
(Pass 0.0 when not applicable)
taxAmtIpl1 This is the total Insurance Tax Amount IPL1 NUMBER Y 18,4
Premium Levy IPL on invoice
(Pass 0.0 when not applicable)
taxAmtIpl2 This is the total Insurance Tax Amount IPL2 NUMBER Y 18,4
Premium Levy IPL2
(ReInsurance) on invoice (Pass
0.0 when not applicable)
taxAmtTl This is the total tax Tourism Tax Amount TL NUMBER Y 18,4
Levy charged on invoice (Pass
0.0 when not applicable)
taxAmtEcm This is the total tax charged on Tax Amount ECM NUMBER Y 18,4
all Excise Coal Mining line
items on invoice (Pass 0.0 when
not applicable)
taxAmtExeeg This is the total tax charged on Tax Amount EXEEG NUMBER Y 18,4
all Excise Electricity and Energy
generating line items on invoice
(Pass 0.0 when not applicable)
taxAmtTot [Pass 0.0 not applicable on Tax Amount TOT NUMBER Y 18,4
invoice]
totTaxblAmt This is the total Tax Exclusive Total TaxlAmt NUMBER Y 18,4
Amount for all line items on
invoice
totTaxAmt This is the total tax charged on Tot Tax Amount NUMBER Y 18,4
all line items on invoice
totAmt This is the total Tax Inclusive Total Amount NUMBER Y 18,4
Amount of all line items on the
invoice
PrchrAcptcYn This specifies whether a Purchase Accepted VARCHAR Y 1
purchase has been accepted or Yes or No
not. (Pass N)
remark This is any comment/remark on Remark VARCHAR N 400
the transaction
88
regrId This refers to the ID of the user Registrant Id VARCHAR Y 20
of the system adding the item
regrNm This refers to the username of Registrant Name VARCHAR Y 60
the person making the sale on
the system.
modrId This refers to the ID of the user Modifier Id VARCHAR Y 20
of the system adding the item
modrNm This refers to the username of Modifier Name VARCHAR Y 60
the person modifying the sale on
the system.
saleCtyCd This is the sales category code Sales Category Code VARCHAR Y 2
(pass 1 )
lpoNumber This is the Local Purchase order LPO Number VARCHAR N 50
number as presented by the
buyer. This will be validated.
currencyTyCd This is the currency code used in Currency Type Code VARCHAR Y 5
the transaction – as per standard
codes
exchangeRt This is the exchange rate used in Exchange rate NUMBER Y 18,4
the transaction.
destnCountryCd This is the destination country of Destination Country VARCHAR N 5
the item being exported. Code
dbtRsnCd This is the reason for issuing a Debit Reason Code VARCHAR N 5
debit sale.
invcAdjustReason This is the reason for adjusting Invoice Adjustment VARCHAR N
an invoice Reason
cashDcRt Cash/value discount rate Cash Discount Rate NUMBER N 18,4
cashDcAmt Cash /value discount amount Cash discount amount NUMBER N 18,4
89
qtyUnitCd This is the assigned single item Quantity Unit Code VARCHAR Y 5 See ‘6.5. Unit of
unit code assigned to the item as Quantity’
per standard codes
qty This is the quantity of items Quantity NUMBER Y 13,2
being sold
prc This is the tax inclusive price of Unit Price NUMBER Y 18,4
the item
splyAmt This is the total amount of the Supply Amount NUMBER Y 18,4
supplied item (qty * prc)
dcRt This is the discount rate on line Discount rate NUMBER Y 5,2
item (Pass 0.0 if not applicable)
dcAmt This is the discount amount on Discount Amount NUMBER Y 18,4
line item (Pass 0.0 if not
applicable)
isrccCd Insurance Company Code Insurance Company VARCHAR N 10
Code
isrccNm Insurance Company name Insurance Company VARCHAR N 100
name
isrcAmt This is the insurance amount on Insurance Amount NUMBER N 18,4
line item
vatCatCd This represents the tax category Vat Category Code VARCHAR Y 5
code for VAT purposes
exciseTxCatCd This represents the tax category Excise Tax Category VARCHAR Y 5
code for Excise on line item Code
vatTaxblAmt This is the Tax Exclusive VAT Taxable NUMBER Y 18,4
Amount for VAT at line-item Amount
level (Pass 0.0 when not
applicable)
exciseTaxblAmt This is the Tax Exclusive Excise Taxable NUMBER Y 18,4
Amount for Excise at line-item Amount
level (Pass 0.0 when not
applicable)
vatAmt This is the VAT amount charged VAT Amount NUMBER Y 18,4
on the line item
exciseTxAmt This is the excise tax amount Excise Tax Amount NUMBER Y 18,4
charged on the line item (Pass
0.0 when not applicable)
totAmt This is the total Tax Inclusive Total Amount NUMBER Y 18,4
Amount of the line item
JSON REQUEST SAMPLE
{ "tpin": "1000000000", "bhfId": "000", "orgInvcNo": 0, "cisInvcNo": "CIS001-22", "custTpin": "2000000000", "custNm": "LPO CUSTOMER", "salesTyCd": "N", "rcptTyCd": "S", "pmtTyCd": "01",
"salesSttsCd": "02", "cfmDt": "20240814102010", "salesDt": "20240814", "stockRlsDt": null, "cnclReqDt": null, "cnclDt": null, "rfdDt": null, "rfdRsnCd": null, "totItemCnt": 1, "taxblAmtA": 0.0, "taxblAmtB":
0.0, "taxblAmtC1": 0.0, "taxblAmtC2": 86.2069, "taxblAmtC3": 0.0, "taxblAmtD": 0.0, "taxblAmtRvat": 0.0, "taxblAmtE": 0.0, "taxblAmtF": 0.0, "taxblAmtIpl1": 0, "taxblAmtIpl2": 0, "taxblAmtTl": 0,
"taxblAmtEcm": 0, "taxblAmtExeeg": 0.0, "taxblAmtTot": 0.0, "taxRtA": 16, "taxRtB": 16, "taxRtC1": 0, "taxRtC2": 0, "taxRtC3": 0, "taxRtD": 0, "tlAmt": 0.0, "taxRtRvat": 16, "taxRtE": 0, "taxRtF": 10,
"taxRtIpl1": 5, "taxRtIpl2": 0, "taxRtTl": 1.5, "taxRtEcm": 5, "taxRtExeeg": 3, "taxRtTot": 0, "taxAmtA": 0.0, "taxAmtB": 0.0, "taxAmtC1": 0.0, "taxAmtC2": 0.0, "taxAmtC3": 0.0, "taxAmtD": 0.0, "taxAmtRvat":
0.0, "taxAmtE": 0.0, "taxAmtF": 0.0, "taxAmtIpl1": 0.0, "taxAmtIpl2": 0.0, "taxAmtTl": 0.0, "taxAmtEcm": 0.0, "taxAmtExeeg": 0.0, "taxAmtTot": 0.0, "totTaxblAmt": 86.2069, "totTaxAmt": 0, "cashDcRt": 0,
90
"cashDcAmt": 0, "totAmt": 86.2069, "prchrAcptcYn": "N", "remark": "", "regrId": "admin", "regrNm": "admin", "modrId": "admin", "modrNm": "admin", "saleCtyCd": "1", "lpoNumber": "109506957",
"currencyTyCd": "ZMW", "exchangeRt": "1", "destnCountryCd": "", "dbtRsnCd": "", "invcAdjustReason": "", "itemList": [ { "itemSeq": 1, "itemCd": "20056", "itemClsCd": "50102518", "itemNm": "Item One",
"bcd": "", "pkgUnitCd": "BA", "pkg": 0.0, "qtyUnitCd": "BE", "qty": 1.0, "prc": 86.2069, "splyAmt": 86.2069, "dcRt": 0, "dcAmt": 0.0, "vatCatCd": "C2", "vatTaxblAmt": 86.2069, "vatAmt": 0, "totAmt": 86.2069
}]}
salesTyCd Code associated with type of Sales Type Code VARCHAR Y 5 See ‘6.7.
sale e.g Normal sales, Copy Transaction Type’
sale
rcptTyCd Type of receipt Receipt Type Code VARCHAR Y 5 See ‘6.8. Sale
Receipt Type’
pmtTyCd The mode of payment used Payment Type VARCHAR N 5 See ‘6.9. Payment
for this transaction Code Method’
salesSttsCd Progress of transaction e.g Invoice/Sale Status VARCHAR Y 5 See ‘6.10.
Approved, Refunded etc Code Transaction
Progress’
cfmDt Date time when invoice was Confirmation Date VARCHAR Y 14 yyyyMMddhhmmss
issued
salesDt Date when sale was made Sales Date VARCHAR Y 8 yyyyMMdd
stockRlsDt Date when the item was Stock Released VARCHAR N 14 yyyyMMddhhmmss
released from the Date
warehouse/branch
91
cnclReqDt Date time when a Cancell Requested VARCHAR N 14 yyyyMMddhhmmss
cancellation request was Date
made. This is used when one
needs to cancel an invoice
cnclDt Date when cancellation was Cancel Date VARCHAR N 14 yyyyMMddhhmmss
approved
rfdDt Date when refund was made Refunded Date VARCHAR N 14 yyyyMMddhhmmss
(null when not a refund)
rfdRsnCd Reason for issuing a refund Refunded Reason VARCHAR N 5 See ‘6.15. Refund Reason
(empty string when not a Code Code’
refund)
totItemCnt Total number of items on Total Item Count NUMBER Y 10
the invoice
taxblAmtA Total tax exclusive amount Taxable Amount A NUMBER Y 18,4
for all line items classified as
Standard Rated for VAT
purposes (Pass 0.0 if not
applicable)
taxblAmtB Total tax exclusive Taxable Amount B NUMBER Y 18,4
amount for all line items
classified as MTV -
Minimum Taxable Value for
VAT purposes (pass 0.0 if
not applicable)
taxblAmtC1 Total tax exclusive amount Taxable Amount NUMBER Y 18.4
for all line items classified C1
as C1 - Exports for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC2 Total tax exclusive amount Taxable Amount NUMBER Y 18.4
for all line items classified C2
as C2 – Zero rating LPO for
VAT purposes (pass 0.0 if
not applicable)
taxblAmtC3 Total tax exclusive amount Taxable Amount NUMBER Y 18.4
for all line items classified C3
as C3 Zero rated by nature
for VAT purposes (pass 0.0
if not applicable)
taxblAmtD Total tax exclusive amount Taxable Amount D NUMBER Y 18,4
for all line items classified
as D Exempt for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtRvat Total tax exclusive amount Taxable Amount NUMBER Y 18,4
for all line items classified RVAT
92
as RVAT for VAT purposes
(pass 0.0 if not applicable)
taxblAmtE Total tax exclusive amount Taxable Amount E NUMBER Y 18,4
for all line items classified
as E - Disbursements for
VAT purposes (pass 0.0 if
not applicable)
taxblAmtF Total tax exclusive amount Taxable Amount F NUMBER Y 18,4
for all line items classified
as F for VAT purposes (pass
0.0 if not applicable)
taxblAmtIpl1 Total tax exclusive amount Taxable Amount NUMBER Y 18,4
for all line items attracting IPL
Insurance Premium Levy
(pass 0.0 if not applicable)
taxblAmtIpl2 Total tax exclusive amount Taxable Amount NUMBER Y 18,4
for all line items attracting IPL2
Insurance Premium Levy 2
(pass 0.0 if not applicable)
taxblAmtTl Total tax exclusive amount Taxable Amount NUMBER Y 18,4
for all line items attracting TL
Tourism Levy (pass 0.0 if
not applicable)
taxblAmtEcm Total tax exclusive amount Taxable Amount NUMBER Y 18,4
for all line items attracting ECM
Excise Coal (pass 0.0 if not
applicable)
taxblAmtExeeg Total tax exclusive amount Taxable Amount NUMBER Y 18,4
for all line items attracting EXEEG
Excise Electricity (pass 0.0
if not applicable)
taxblAmtTot Total tax exclusive amount Taxable Amount NUMBER Y 18,4
for all line items attracting TOT
TOT (pass 0.0 if not
applicable)
taxRtA Tax rate VAT Standard Tax Rate A NUMBER Y 7,2
rated category A– As per
standard codes
taxRtB Tax rate for Minimum Tax Rate B NUMBER Y 7,2
Taxable Value – As per
standard codes
taxRtC1 Tax rate for C1- Exports – Tax Rate C1 NUMBER Y 7,2
As per standard codes
taxRtC2 Tax rate for C2 Zero rating Tax Rate C2 NUMBER Y 7,2
LPO – As per standard
codes
93
taxRtC3 Tax rate for C3 Zero rated Tax Rate C3 NUMBER Y 7,2
by nature – As per standard
codes
taxRtD Tax rate for D Exempt – As Tax Rate D NUMBER Y 7,2
per standard codes
taxRtRvat Tax rate for RVAT reverse Tax Rate RVAT NUMBER Y 7,2
VAT – As per standard
codes
taxRtE Tax rate E Disbursements – Tax Rate E NUMBER Y 7,2
As per standard codes
taxRtF Rate for F Service charge – Tax Rate F NUMBER Y 7,2
As per standard codes
taxRtIpl1 Tax rate for Insurance Tax Rate IPL NUMBER Y 7,2
premium levy – As per
standard codes
taxRtIpl2 Tax rate for Insurance Tax Rate IPL2 NUMBER Y 7,2
Premium Levy – As per
standard codes
taxRtTl Tax rate for Tourism Levy – Tax Rate TL NUMBER Y 7,2
As per standard codes
taxRtEcm Tax rate for Excise Coal Tax Rate ECM NUMBER Y 7,2
Mining – As per standard
codes
taxRtExeeg Tax rate Electricity and Tax Rate EXEEG NUMBER Y 7,2
Energy generation – As per
standard codes
taxRtTot Tax rate VAT – As per Tax Rate TOT NUMBER Y 7,2
standard codes
taxAmtA This is the total tax charged Tax Amount A NUMBER Y 18,4
on all VAT category A line
items on invoice (Pass 0.0
when not applicable)
taxAmtB This is the total tax charged Tax Amount B NUMBER Y 18,4
on all VAT category A line
items on invoice (Pass 0.0
when not applicable)
taxAmtC1 This is the total tax charged Tax Amount C1 NUMBER Y 18,4
on all VAT category C1 line
items on invoice (Pass 0.0
when not applicable)
taxAmtC2 This is the total tax charged Tax Amount C2 NUMBER Y 18,4
on all VAT category C2 line
items on invoice (Pass 0.0
when not applicable)
taxAmtC3 This is the total tax charged Tax Amount C3 NUMBER Y 18,4
on all VAT category C3 line
94
items on invoice (Pass 0.0
when not applicable)
taxAmtD This is the total tax charged Tax Amount D NUMBER Y 18,4
on all VAT category D line
items on invoice (Pass 0.0
when not applicable)
taxAmtRvat This is the total tax charged Tax Amount RVAT NUMBER Y 18,4
on all VAT category RVAT
line items on invoice (Pass
0.0 when not applicable)
taxAmtE This is the total tax charged Tax Amount E NUMBER Y 18,4
on all VAT category E line
items on invoice (Pass 0.0
when not applicable)
taxAmtF This is the total tax charged Tax Amount F NUMBER Y 18,4
on all VAT category F
(Service Charge) line items
on invoice (Pass 0.0 when
not applicable)
taxAmtIpl1 This is the total Insurance Tax Amount IPL1 NUMBER Y 18,4
Premium Levy IPL on
invoice (Pass 0.0 when not
applicable)
taxAmtIpl2 This is the total Insurance Tax Amount IPL2 NUMBER Y 18,4
Premium Levy IPL2 (Re-
Insurance) on invoice (Pass
0.0 when not applicable)
taxAmtTl This is the total tax Tourism Tax Amount TL NUMBER Y 18,4
Levy charged on invoice
(Pass 0.0 when not
applicable)
taxAmtEcm This is the total tax charged Tax Amount ECM NUMBER Y 18,4
on all Excise Coal Mining
line items on invoice (Pass
0.0 when not applicable)
taxAmtExeeg This is the total tax charged Tax Amount NUMBER Y 18,4
on all Excise Electricity and EXEEG
Energy generating line items
on invoice (Pass 0.0 when
not applicable)
taxAmtTot This is the total tax charged Tax Amount TOT NUMBER Y 18,4
on all TOT line items on
invoice (Pass 0.0 when not
applicable)
totTaxblAmt This is the total Tax Total TaxlAmt NUMBER Y 18,4
Exclusive Amount for all
line items on invoice
95
totTaxAmt This is the total tax charged Tot Tax Amount NUMBER Y 18,4
on all line items on invoice
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of all
line items on the invoice
prchrAcptcYn This specifies whether a Purchase Accepted VARCHAR Y 1
purchase has been accepted Yes or No
or not. (Pass N)
remark This is any comment/remark Remark VARCHAR N 400
on the transaction
regrId This refers to the ID of the Registrant Id VARCHAR Y 20
user of the system adding
the item
regrNm This refers to the username Registrant Name VARCHAR Y 60
of the person making the
sale on the system.
modrId This refers to the ID of the Modifier Id VARCHAR Y 20
user of the system adding
the item
modrNm This refers to the username Modifier Name VARCHAR Y 60
of the person modifying the
sale on the system. (Default
to ADMIN when not
applicable)
saleCtyCd This is the sales category Sales Category VARCHAR Y 2
code. Code
(pass 1)
lpoNumber This is the Local Purchase LPO Number VARCHAR N 50
order number as presented
by the buyer. This will be
validated.
currencyTyCd This is the currency code Currency Type VARCHAR Y 5
used in the transaction – as Code
per standard codes
exchangeRt This is the exchange rate Exchange rate NUMBER Y 18,4
used in the transaction.
destnCountryCd This is the destination Destination Country VARCHAR N 5
country of the item being Code
exported.
dbtRsnCd This is the reason code for Debit Reason Code VARCHAR N 5
issuing a debit.
invcAdjustReason This is the reason for Invoice Adjustment VARCHAR N
adjusting an invoice Reason
cashDcRt Cash/value discount rate Cash Discount Rate NUMBER N 18,4
96
cashDcAmt Cash /value discount Cash discount NUMBER N 18,4
amount amount
List<Trns itemSeq Item Sequence Number Item Sequence NUMBER Y 11
SalesSave Number
WrItem>
itemCd This is the item code as Item Code VARCHAR Y 100
defined on your system
itemClsCd This is the UNSCP code Item Classification VARCHAR Y 10
assigned to the item Code
itemNm This is the item name as Item Name VARCHAR Y 200
defined on your system
bcd This is the barcode assigned Barcode VARCHAR N 20
to the item
pkgUnitCd This is the packaging unit PackagUnit Code VARCHAR Y 5 See ‘6.4. Packaging Unit’
code assigned to the item as
per standard codes.
pkg This is the number of Package NUMBER Y 13,2
package items being sold.
qtyUnitCd This is the assigned single Quantity Unit Code VARCHAR Y 5 See ‘6.5. Unit of
item unit code assigned to Quantity’
the item as per standard
codes
qty This is the quantity of items Quantity NUMBER Y 13,2
being sold
prc This is the tax inclusive Unit Price NUMBER Y 18,4
price of the item
splyAmt This is the total amount of Supply Amount NUMBER Y 18,4
the supplied item (qty *
prc)
dcRt This is the discount rate on Discount rate NUMBER Y 5,2
line item (Pass 0.0 if not
applicable)
dcAmt This is the discount amount Discount Amount NUMBER Y 18,4
on line item (Pass 0.0 if not
applicable)
isrccCd Insurance Company Code Insurance Company VARCHAR N 10
Code
isrccNm Insurance Company name Insurance Company VARCHAR N 100
name
isrcAmt This is the insurance amount Insurance Amount NUMBER N 18,4
on line item
vatCatCd This represents the tax Vat Category Code VARCHAR Y 5
category code for VAT
purposes on line item
97
exciseTxCatCd This represents the tax Excise Tax VARCHAR Y 5
category code for Excise on Category Code
line item.
vatTaxblAmt This is the Tax Exclusive VAT Taxable NUMBER Y 18,4
Amount for VAT at line- Amount
item level (Pass 0.0 when
not applicable)
exciseTaxblAmt This is the Tax Exclusive Excise Taxable NUMBER Y 18,4
Amount for Excise at line Amount
item level (Pass 0.0 when
not applicable)
tlTaxblAmt This is the Tax Exclusive Tourism Levy NUMBER Y 18,4
Amount for Tourism Lecy Taxable Amount
at line-item level (Pass 0.0
when not applicable)
iplTaxblAmt This is the Tax Exclusive Insurance Premium NUMBER Y 18,4
Amount for IPL at line-item Levy Taxable
level (Pass 0.0 when not Amount
applicable)
iplAmt This is the insurance Insurance Premium NUMBER Y 18,4
premium levy tax amount Levy Amount
charged on the line item
tlAmt This is the Tourism Levy Tourism Levy NUMBER Y 18,4
amount charged on the line mount
item
(Pass 0.0 when not
applicable)
vatAmt This is the VAT amount VAT Amount NUMBER Y 18,4
charged on the line item
exciseTxAmt This is the excise tax Excise Tax Amount NUMBER Y 18,4
amount charged on the line
item (Pass 0.0 when not
applicable)
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of the
line item
JSON REQUEST SAMPLE
{"tpin":"1000000000","bhfId":"000","orgInvcNo":0,"cisInvcNo":"CIS000000","custTpin":"2000000000","custNm":"SMART
CUSTOMER","salesTyCd":"N","rcptTyCd":"S","pmtTyCd":"01","salesSttsCd":"02","cfmDt":"20250608102010","salesDt":"20250608","stockRlsDt":null,"cnclReqDt":null,"cnclDt":null,"rfdDt":null,"rfdRsnCd":
null,"totItemCnt":1,"taxblAmtA":0,"taxblAmtB":0,"taxblAmtC1":400,"taxblAmtC2":0,"taxblAmtC3":0,"taxblAmtD":0,"taxblAmtRvat":0,"taxblAmtE":0,"taxblAmtF":0,"taxblAmtIpl1":0,"taxblAmtIpl2":0,"taxbl
AmtTl":0,"taxblAmtEcm":0,"taxblAmtExeeg":0,"taxblAmtTot":0,"taxRtA":16,"taxRtB":16,"taxRtC1":0,"taxRtC2":0,"taxRtC3":0,"taxRtD":0,"taxRtRvat":16,"taxRtE":0,"taxRtF":10,"taxRtIpl1":5,"taxRtIpl2":0,"ta
xRtTl":1.5,"taxRtEcm":5,"taxRtExeeg":3,"taxRtTot":0,"taxAmtA":0,"taxAmtB":0,"taxAmtC1":0,"taxAmtC2":0,"taxAmtC3":0,"taxAmtD":0,"taxAmtRvat":0,"taxAmtE":0,"taxAmtF":0,"taxAmtIpl1":0,"taxAmtIpl
2":0,"taxAmtTl":0,"taxAmtEcm":0,"taxAmtExeeg":0,"taxAmtTot":0,"totTaxblAmt":400,"totTaxAmt":0,"cashDcRt":0,"cashDcAmt":0,"totAmt":400,"prchrAcptcYn":"N","remark":"","regrId":"admin","regrNm":"
admin","modrId":"admin","modrNm":"admin","saleCtyCd":"1","lpoNumber":null,"currencyTyCd":"ZMW","exchangeRt":"1","destnCountryCd":"ZM","dbtRsnCd":"","invcAdjustReason":"","itemList":[{"itemSe
q":1,"itemCd":"20054","itemClsCd":"50102517","itemNm":"Maize meal - African
98
Pride","bcd":"","pkgUnitCd":"BA","pkg":0,"qtyUnitCd":"BE","qty":4,"prc":100,"splyAmt":400,"dcRt":0,"dcAmt":0,"isrccCd":"","isrccNm":"","isrcRt":0,"isrcAmt":0,"vatCatCd":"C1","exciseTxCatCd":null,"vatT
axblAmt":400,"exciseTaxblAmt":0,"vatAmt":0,"exciseTxAmt":0,"totAmt":400}]}
GET PRINCIPAL
● Endpoint: /trnsSales/selectPrincipals
● Request method: POST.
● Requirement: OPTIONAL (RVAT agents only).
● Description: This endpoint is designed to get principals for RVAT agents
● Request Parameters: principal data including Tpin, bhfId, last request date.
● Response: Returns success or failure. On success it returns list of principals.
● Note: This endpoint is intended solely for use by RVAT Agents to retrieve principal details for processing RVAT transactions.
Select Principal request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
selectPrincipals Search tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
principal Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. By Last Request Date VARCHAR Y 14
default, this defaults to 20160523000000
JSON REQUEST SAMPLE
{"tpin":"1000000000","bhfId":"000","lastReqDt":"20240123121449"}
Request Body
ItemRes Search Item Response resultCd This is the VSDC response code Result Code VARCHAR Y 3
99
principalNm This is the principal name Princilal Name VARCHAR N 255
{ "resultCd": "000", "resultMsg": "It is succeeded", "resultDt": "20240728181556","data": {"taxpayerPrincipalList": [{"id": 100,"tpin": "1000277594","tin": "1000277594", "principalNm":
"KASONGO 1 17","principalAddress": "IBEX","principalEmail": "kasongo@kasongo.com", "principalTelNo": "+260924567890","regDt": null, "modDt": null, "accountNo": "1232312117"},{"id":
101,"tpin": "1000277594","tin": "1000277594", "principalNm": "KASONGO 2 18","principalAddress": "IBEX","principalEmail": "kasongo@kasongo.com","principalTelNo":
"+260924567890","regDt": null,"modDt": null,"accountNo": "1232312218"}]}
}
100
Certified invoicing
solutions
custTpin Customers taxpayer’s Customer TPIN VARCHAR N 10
identification number as
registered on core Tax
Administration System
TaxOnline
custNm Customers name Customer Name VARCHAR N 60
salesTyCd Code associated with type Sales Type Code VARCHAR Y 5 See ‘6.7.
of sale (Pass N) Transaction Type’
rcptTyCd Type of receipt Receipt Type VARCHAR Y 5 See ‘6.8. Sale
Code Receipt Type’
pmtTyCd The mode of payment Payment Type VARCHAR Y 5 See ‘6.9. Payment
used for this transaction Code Method’
salesSttsCd Progress of transaction Invoice/Sale VARCHAR Y 5 See ‘6.10.
e.g. Approved, Refunded Status Code Transaction
etc. Progress’
cfmDt Date time when invoice Confirmation VARCHAR Y 14 yyyyMMddhhmmss
was issued Date
salesDt Date when sale was Sales Date VARCHAR Y 8 yyyyMMdd
made
stockRlsDt Date when the item was Stock Released VARCHAR N 14 yyyyMMddhhmmss
released from the Date
warehouse/branch
cnclReqDt Date time when a Cancell Requested VARCHAR Y 14 yyyyMMddhhmmss
cancellation request was Date
made. This is used when
one needs to cancel an
invoice
cnclDt Date when cancellation Cancel Date VARCHAR Y 14 yyyyMMddhhmmss
was approved
rfdDt Date when refund was Refunded Date VARCHAR Y 14 yyyyMMddhhmmss
made (null when not a
refund)
rfdRsnCd Reason for issuing a Refunded Reason VARCHAR Y 5 See ‘6.15. Refund
refund (empty string Code Reason Code’
when not a refund)
totItemCnt Total number of items Total Item Count NUMBER Y 10
on the invoice
taxblAmtA Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items A
classified as Standard
Rated for VAT purposes
(Pass 0.0 if not
applicable)
101
taxblAmtB Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items B
classified as MTV -
Minimum Taxable
Value for VAT purposes
(pass 0.0 if not
applicable)
taxblAmtC1 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line items C1
classified as C1 -
Exports for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC2 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line items C2
classified as C2 – Zero
rating LPO for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC3 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line items C3
classified as C3 Zero
rated by nature for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtD Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items D
classified as D Exempt
for VAT purposes (pass
0.0 if not applicable)
taxblAmtRvat Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items RVAT
classified as RVAT for
VAT purposes (pass 0.0
if not applicable)
taxblAmtE Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items E
classified as E -
Disbursements for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtF Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items F
classified as F for VAT
purposes (pass 0.0 if not
applicable)
102
taxblAmtIpl1 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items IPL
attracting Insurance
Premium Levy (pass 0.0
if not applicable)
taxblAmtIpl2 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items IPL2
attracting Insurance
Premium Levy 2 (pass
0.0 if not applicable)
taxblAmtTl Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items TL
attracting Tourism Levy
(pass 0.0 if not
applicable)
taxblAmtEcm Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items ECM
attracting Excise Coal
(pass 0.0 if not
applicable)
taxblAmtExeeg Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items EXEEG
attracting Excise
Electricity (pass 0.0 if
not applicable)
taxblAmtTot Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items TOT
attracting TOT (pass 0.0
if not applicable)
taxRtA Tax rate VAT Standard Tax Rate A NUMBER Y 7,2
rated category A– As per
standard codes
taxRtB Tax rate for Minimum Tax Rate B NUMBER Y 7,2
Taxable Value – As per
standard codes
taxRtC1 Tax rate for C1- Exports Tax Rate C1 NUMBER Y 7,2
– As per standard codes
taxRtC2 Tax rate for C2 Zero Tax Rate C2 NUMBER Y 7,2
rating LPO – As per
standard codes
taxRtC3 Tax rate for C3 Zero Tax Rate C3 NUMBER Y 7,2
rated by nature – As per
standard codes
taxRtD Tax rate for D Exempt – Tax Rate D NUMBER Y 7,2
As per standard codes
103
taxRtRvat Tax rate for RVAT Tax Rate RVAT NUMBER Y 7,2
reverse VAT – As per
standard codes
taxRtE Tax rate E Tax Rate E NUMBER Y 7,2
Disbursements – As per
standard codes
taxRtF Rate for F Service Tax Rate F NUMBER Y 7,2
charge – As per standard
codes
taxRtIpl1 Tax rate for Insurance Tax Rate IPL NUMBER Y 7,2
premium levy – As per
standard codes
taxRtIpl2 Tax rate for Insurance Tax Rate IPL2 NUMBER Y 7,2
Premium Levy – As per
standard codes
taxRtTl Tax rate for Tourism Tax Rate TL NUMBER Y 7,2
Levy – As per standard
codes
taxRtEcm Tax rate for Excise Coal Tax Rate ECM NUMBER Y 7,2
Mining – As per
standard codes
taxRtExeeg Tax rate Electricity and Tax Rate NUMBER Y 7,2
Energy generation – As EXEEG
per standard codes
taxRtTot Tax rate VAT – As per Tax Rate TOT NUMBER Y 7,2
standard codes
taxAmtA This is the total tax Tax Amount A NUMBER Y 18,4
charged on all VAT
category A line items on
invoice (Pass 0.0 when
not applicable)
taxAmtB This is the total tax Tax Amount B NUMBER Y 18,4
charged on all VAT
category A line items on
invoice (Pass 0.0 when
not applicable)
taxAmtC1 This is the total tax Tax Amount C1 NUMBER Y 18,4
charged on all VAT
category C1 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC2 This is the total tax Tax Amount C2 NUMBER Y 18,4
charged on all VAT
category C2 line items
on invoice (Pass 0.0
when not applicable)
104
taxAmtC3 This is the total tax Tax Amount C3 NUMBER Y 18,4
charged on all VAT
category C3 line items
on invoice (Pass 0.0
when not applicable)
taxAmtD This is the total tax Tax Amount D NUMBER Y 18,4
charged on all VAT
category D line items on
invoice (Pass 0.0 when
not applicable)
taxAmtRvat This is the total tax Tax Amount NUMBER Y 18,4
charged on all VAT RVAT
category RVAT line
items on invoice (Pass
0.0 when not
applicable)
taxAmtE This is the total tax Tax Amount E NUMBER Y 18,4
charged on all VAT
category E line items on
invoice (Pass 0.0 when
not applicable)
taxAmtF This is the total tax Tax Amount F NUMBER Y 18,4
charged on all VAT
category F (Service
Charge) line items on
invoice (Pass 0.0 when
not applicable)
taxAmtIpl1 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL1
Levy IPL on invoice
(Pass 0.0 when not
applicable)
taxAmtIpl2 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL2
Levy IPL2 (Re-
Insurance) on invoice
(Pass 0.0 when not
applicable)
taxAmtTl This is the total Tax Amount TL NUMBER Y 18,4
tax Tourism Levy
charged on invoice (Pass
0.0 when not
applicable)
taxAmtEcm This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise ECM
Coal Mining line items
105
on invoice (Pass 0.0
when not applicable)
taxAmtExeeg This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise EXEEG
Electricity and Energy
generating line items on
invoice (Pass 0.0 when
not applicable)
taxAmtTot [Pass 0.0 not applicable Tax Amount NUMBER Y 18,4
on invoice] TOT
totTaxblAmt This is the total Tax Total TaxlAmt NUMBER Y 18,4
Exclusive Amount for
all line items on invoice
totTaxAmt This is the total tax Tot Tax Amount NUMBER Y 18,4
charged on all line items
on invoice
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of all
line items on the
invoice
prchrAcptcYn This specifies whether a Purchase VARCHAR Y 1
purchase has been Accepted Yes or
accepted or not. (Pass N) No
remark This is any Remark VARCHAR N 400
comment/remark on the
transaction
regrId This refers to the ID of Registrant Id VARCHAR Y 20
the user of the system
adding the item
regrNm This refers to the Registrant Name VARCHAR Y 60
username of the person
making the sale on the
system.
modrId This refers to the ID of Modifier Id VARCHAR Y 20
the user of the system
adding the item
modrNm This refers to the Modifier Name VARCHAR Y 60
username of the person
modifying the sale on
the system. (Default to
ADMIN when not
applicable)
saleCtyCd This is the sales category Sales Category VARCHAR Y 2
code. Code
(pass 1)
lpoNumber This is the Local LPO Number VARCHAR N 50
Purchase order number
106
as presented by the
buyer. This will be
validated.
currencyTyCd This is the currency code Currency Type VARCHAR Y 5
used in the transaction – Code
as per standard codes
exchangeRt This is the exchange rate Exchange rate NUMBER Y 18,4
used in the transaction.
destnCountryCd This is the destination Destination VARCHAR N 5
country of the item Country Code
being exported.
dbtRsnCd This is the reason code Debit Reason VARCHAR N 5
for issuing a debit. Code
invcAdjustReason This is the reason for Invoice VARCHAR N
adjusting an invoice Adjustment
Reason
principalId Principal ID for RVAT Principal ID NUMBER N 18,0
transaction with Agents
cashDcRt Cash/value discount rate Cash Discount NUMBER N 18,4
Rate
cashDcAmt Cash /value discount Cash discount NUMBER N 18,4
amount amount
List<Trns itemSeq Item Sequence Number Item Sequence NUMBER Y 11
SalesSave Number
WrItem>
itemCd This is the item Item Code VARCHAR Y 100
identifier on the
taxpayer’s system
itemClsCd This is the UNSCP code Item VARCHAR Y 10
assigned to the item Classification
Code
itemNm This is the item name as Item Name VARCHAR Y 200
defined on your system
bcd This is the barcode Barcode VARCHAR N 20
assigned to the item
pkgUnitCd This is the packaging Packaging Unit VARCHAR Y 5 See ‘6.4 Packaging
unit code assigned to the Code Unit’
item as per standard
codes.
pkg This is the number of Package NUMBER Y 13,2
package items being
sold.
qtyUnitCd This is the assigned Quantity Unit VARCHAR Y 5 See ‘6.5. Unit of
single item unit code Code Quantity’
assigned to the item as
per standard codes
107
qty This is the quantity of Quantity NUMBER Y 13,2
items being sold
prc This is the tax inclusive Unit Price NUMBER Y 18,4
price of the item
splyAmt This is the total amount Supply Amount NUMBER Y 18,4
of the supplied item (qty
* prc)
dcRt This is the discount rate Discount rate NUMBER Y 5,2
on line item (Pass 0.0 if
not applicable)
dcAmt This is the discount Discount NUMBER Y 18,4
amount on line item Amount
(Pass 0.0 if not
applicable)
isrccCd Insurance Company Insurance VARCHAR N 10
Code Company Code
isrccNm Insurance Company Insurance VARCHAR N 100
name Company name
isrcAmt This is the insurance Insurance NUMBER N 18,4
amount on line item Amount
vatCatCd This represents the tax Vat Category VARCHAR Y 5
category code for VAT Code
purposes on line item.
Pass null where not
applicable
exciseTxCatCd This represents the tax Excise Tax VARCHAR Y 5
category code for Excise Category Code
on line item. Pass null
where not applicable
vatTaxblAmt This is the Tax VAT Taxable NUMBER Y 18,4
Exclusive Amount for Amount
VAT at line-item level
(Pass 0.0 when not
applicable)
exciseTaxblAmt This is the Tax Excise Taxable NUMBER Y 18,4
Exclusive Amount for Amount
Excise at line-item level
(Pass 0.0 when not
applicable)
tlTaxblAmt This is the Tax Tourism Levy NUMBER Y 18,4
Exclusive Amount for Taxable Amount
Tourism Lecy at line-
item level (Pass 0.0
when not applicable)
iplTaxblAmt This is the Tax Insurance NUMBER Y 18,4
Exclusive Amount for Premium Levy
IPL at line-item level Taxable Amount
108
(Pass 0.0 when not
applicable)
iplAmt This is the insurance Insurance NUMBER Y 18,4
premium levy tax Premium Levy
amount charged on the Amount
line item
tlAmt This is the Tourism Tourism Levy NUMBER Y 18,4
Levy amount charged on mount
the line item.
(Pass 0.0 when not
applicable)
vatAmt This is the VAT amount VAT Amount NUMBER Y 18,4
charged on the line item
exciseTxAmt This is the excise tax Excise Tax NUMBER Y 18,4
amount charged on the Amount
line item (Pass 0.0 when
not applicable)
totAmt This is the total Tax Total Amount NUMBER Y 18,4
Inclusive Amount of
the line item
JSON REQUEST SAMPLE
{"tpin":"1000000000","bhfId":"000","orgInvcNo":0,"cisInvcNo":"CIS001-1379","custTpin":"2000000000","custNm":"Smart
Customer","principalId":"8","salesTyCd":"N","rcptTyCd":"S","pmtTyCd":"01","salesSttsCd":"02","cfmDt":"20250508102010","salesDt":"20250508","stockRlsDt":null,"cnclReqDt":null,"cnclDt":null,"rfdDt
":null,"rfdRsnCd":null,"totItemCnt":2,"taxblAmtA":86.2069,"taxblAmtB":0.0,"taxblAmtC1":0.0,"taxblAmtC2":0.0,"taxblAmtC3":0.0,"taxblAmtD":0.0,"taxblAmtRvat":86.2069,"taxblAmtE":0.0,"taxblAmtF"
:0.0,"taxblAmtIpl1":0.0,"taxblAmtIpl2":0.0,"taxblAmtTl":0.0,"taxblAmtEcm":0,"taxblAmtExeeg":0.0,"taxblAmtTot":0.0,"taxRtA":16,"taxRtB":16,"taxRtC1":0,"taxRtC2":0,"taxRtC3":0,"taxRtD":0,"tlAmt":0
.0,"taxRtRvat":16,"taxRtE":0,"taxRtF":10,"taxRtIpl1":5,"taxRtIpl2":0,"taxRtTl":1.5,"taxRtEcm":5,"taxRtExeeg":3,"taxRtTot":0,"taxAmtA":13.7931,"taxAmtB":0.0,"taxAmtC1":0.0,"taxAmtC2":0.0,"taxAmt
C3":0.0,"taxAmtD":0.0,"taxAmtRvat":13.7931,"taxAmtE":0.0,"taxAmtF":0.0,"taxAmtIpl1":0.0,"taxAmtIpl2":0.0,"taxAmtTl":0.0,"taxAmtEcm":0.0,"taxAmtExeeg":0.0,"taxAmtTot":0.0,"totTaxblAmt":172.4
138,"totTaxAmt":27.5862,"cashDcRt":0,"cashDcAmt":0,"totAmt":200,"prchrAcptcYn":"N","remark":"","regrId":"admin","regrNm":"admin","modrId":"admin","modrNm":"admin","saleCtyCd":"1","lpoNum
ber":null,"currencyTyCd":"ZMW","exchangeRt":"1","destnCountryCd":"","dbtRsnCd":"","invcAdjustReason":"","itemList":[{"itemSeq":1,"itemCd":"20056","itemClsCd":"50102518","itemNm":"Bread","bc
d":"","pkgUnitCd":"BA","pkg":0.0,"qtyUnitCd":"BE","qty":1.0,"prc":100,"splyAmt":100,"dcRt":0.0,"dcAmt":0.0,"isrccCd":"","isrccNm":"","isrcRt":0.0,"isrcAmt":0.0,"vatCatCd":"A","exciseTxCatCd":null,
"tlCatCd":null,"iplCatCd":null,"vatTaxblAmt":86.2069,"vatAmt":13.7931,"exciseTaxblAmt":0,"tlTaxblAmt":0.0,"iplTaxblAmt":0.0,"iplAmt":0.0,"tlAmt":0.0,"exciseTxAmt":0,"totAmt":100},{"itemSeq":2,"i
temCd":"20056","itemClsCd":"50102518","itemNm":"Reinsurance","bcd":"","pkgUnitCd":"BA","pkg":0.0,"qtyUnitCd":"BE","qty":1.0,"prc":100,"splyAmt":100,"dcRt":0.0,"dcAmt":0.0,"isrccCd":"","isrccN
m":"","isrcRt":0.0,"isrcAmt":0.0,"vatCatCd":"RVAT","exciseTxCatCd":null,"vatTaxblAmt":86.2069,"exciseTaxblAmt":0,"tlTaxblAmt":0.0,"tlCatCd":null,"tlAmt":0.0,"iplCatCd":null,"iplAmt":0.0,"iplTaxbl
Amt":0.0,"vatAmt":13.7931,"exciseTxAmt":0,"totAmt":100}]}
109
orgIncNo The invoice number Original Invoice NUMBER N 38
being referred to if you Number
are issuing a credit note
or debit note
cisInvcNo Invoice number as CIS Invoice VARCHAR Y 50
generated on Taxpayers number
Certified invoicing
solutions
custTpin Customers taxpayer’s Customer TPIN VARCHAR N 10
identification number as
registered on core Tax
Administration System
TaxOnline
custNm Customers name Customer Name VARCHAR N 60
110
taxblAmtA Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line items A
classified as Standard
Rated for VAT purposes
(Pass 0.0 if not
applicable)
taxblAmtB Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line B
items classified as MTV
-Minimum Taxable
Value for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC1 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C1
items classified as C1 -
Exports for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtC2 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C2
items classified as C2 –
Zero rating LPO for
VAT purposes (pass 0.0
if not applicable)
taxblAmtC3 Total tax exclusive Taxable Amount NUMBER Y 18.4
amount for all line C3
items classified as C3
Zero rated by nature for
VAT purposes (pass 0.0
if not applicable)
taxblAmtD Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line D
items classified as D
Exempt for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtRvat Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line RVAT
items classified as
RVAT for VAT
purposes (pass 0.0 if not
applicable)
taxblAmtE Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line E
items classified as E -
Disbursements for VAT
111
purposes (pass 0.0 if not
applicable)
taxblAmtF Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line F
items classified as F for
VAT purposes (pass 0.0
if not applicable)
taxblAmtIpl1 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line IPL
items attracting
Insurance Premium
Levy (pass 0.0 if not
applicable)
taxblAmtIpl2 Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line IPL2
items attracting
Insurance Premium
Levy 2 (pass 0.0 if not
applicable)
taxblAmtTl Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line TL
items attracting
Tourism Levy (pass 0.0
if not applicable)
taxblAmtEcm Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line ECM
items attracting Excise
Coal (pass 0.0 if not
applicable)
taxblAmtExeeg Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line EXEEG
items attracting Excise
Electricity (pass 0.0 if
not applicable)
taxblAmtTot Total tax exclusive Taxable Amount NUMBER Y 18,4
amount for all line TOT
items attracting TOT
(pass 0.0 if not
applicable)
taxRtA Tax rate VAT Standard Tax Rate A NUMBER Y 7,2
rated category A– As
per standard codes
taxRtB Tax rate for Minimum Tax Rate B NUMBER Y 7,2
Taxable Value – As per
standard codes
112
taxRtC1 Tax rate for C1- Tax Rate C1 NUMBER Y 7,2
Exports – As per
standard codes
taxRtC2 Tax rate for C2 Zero Tax Rate C2 NUMBER Y 7,2
rating LPO – As per
standard codes
taxRtC3 Tax rate for C3 Zero Tax Rate C3 NUMBER Y 7,2
rated by nature – As per
standard codes
taxRtD Tax rate for D Exempt Tax Rate D NUMBER Y 7,2
– As per standard
codes
taxRtRvat Tax rate for RVAT Tax Rate NUMBER Y 7,2
reverse VAT – As per RVAT
standard codes
taxRtE Tax rate E Tax Rate E NUMBER Y 7,2
Disbursements – As per
standard codes
taxRtF Rate for F Service Tax Rate F NUMBER Y 7,2
charge – As per
standard codes
taxRtIpl1 Tax rate for Insurance Tax Rate IPL NUMBER Y 7,2
premium levy – As per
standard codes
taxRtIpl2 Tax rate for Insurance Tax Rate IPL2 NUMBER Y 7,2
Premium Levy – As per
standard codes
taxRtTl Tax rate for Tourism Tax Rate TL NUMBER Y 7,2
Levy – As per standard
codes
taxRtEcm Tax rate for Excise Tax Rate ECM NUMBER Y 7,2
Coal Mining – As per
standard codes
taxRtExeeg Tax rate Electricity and Tax Rate NUMBER Y 7,2
Energy generation – As EXEEG
per standard codes
taxRtTot Tax rate VAT – As per Tax Rate TOT NUMBER Y 7,2
standard codes
taxAmtA This is the total tax Tax Amount A NUMBER Y 18,4
charged on all VAT
category A line items
on invoice (Pass 0.0
when not applicable)
taxAmtB This is the total tax Tax Amount B NUMBER Y 18,4
charged on all VAT
category A line items
113
on invoice (Pass 0.0
when not applicable)
taxAmtC1 This is the total tax Tax Amount C1 NUMBER Y 18,4
charged on all VAT
category C1 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC2 This is the total tax Tax Amount C2 NUMBER Y 18,4
charged on all VAT
category C2 line items
on invoice (Pass 0.0
when not applicable)
taxAmtC3 This is the total tax Tax Amount C3 NUMBER Y 18,4
charged on all VAT
category C3 line items
on invoice (Pass 0.0
when not applicable)
taxAmtD This is the total tax Tax Amount D NUMBER Y 18,4
charged on all VAT
category D line items
on invoice (Pass 0.0
when not applicable)
taxAmtRvat This is the total tax Tax Amount NUMBER Y 18,4
charged on all VAT RVAT
category RVAT line
items on invoice (Pass
0.0 when not
applicable)
taxAmtE This is the total tax Tax Amount E NUMBER Y 18,4
charged on all VAT
category E line items on
invoice (Pass 0.0 when
not applicable)
taxAmtF This is the total tax Tax Amount F NUMBER Y 18,4
charged on all VAT
category F (Service
Charge) line items on
invoice (Pass 0.0 when
not applicable)
taxAmtIpl1 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL1
Levy IPL on invoice
(Pass 0.0 when not
applicable)
taxAmtIpl2 This is the total Tax Amount NUMBER Y 18,4
Insurance Premium IPL2
Levy IPL2 (Re-
114
Insurance) on invoice
(Pass 0.0 when not
applicable)
taxAmtTl This is the total Tax Amount TL NUMBER Y 18,4
tax Tourism Levy
charged on invoice
(Pass 0.0 when not
applicable)
taxAmtEcm This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise ECM
Coal Mining line items
on invoice (Pass 0.0
when not applicable)
taxAmtExeeg This is the total tax Tax Amount NUMBER Y 18,4
charged on all Excise EXEEG
Electricity and Energy
generating line items on
invoice (Pass 0.0 when
not applicable)
taxAmtTot [Pass 0.0 not applicable Tax Amount NUMBER Y 18,4
on invoice] TOT
totTaxblAmt This is the total Tax Total TaxlAmt NUMBER Y 18,4
Exclusive Amount for
all line items on
invoice
totTaxAmt This is the total tax Tot Tax NUMBER Y 18,2
charged on all line Amount
items on invoice
totAmt This is the total Tax Total Amount NUMBER Y 18,2
Inclusive Amount of
all line items on the
invoice
prchrAcptcYn This specifies whether a Purchase VARCHAR Y 1
purchase has been Accepted Yes or
accepted or not. (Pass No
N)
remark This is any Remark VARCHAR N 400
comment/remark on the
transaction
regrId This refers to the ID of Registrant Id VARCHAR Y 20
the user of the system
adding the item
regrNm This refers to the Registrant VARCHAR Y 60
username of the person Name
making the sale on the
system.
115
modrId This refers to the ID of Modifier Id VARCHAR Y 20
the user of the system
adding the item
modrNm This refers to the Modifier Name VARCHAR Y 60
username of the person
modifying the sale on
the system. (Default to
ADMIN when not
applicable)
saleCtyCd This is the sales Sales Category VARCHAR Y 2
category code. Code
(pass 1)
lpoNumber This is the Local LPO Number VARCHAR N 50
Purchase order number
as presented by the
buyer. This will be
validated.
currencyTyCd This is the currency Currency Type VARCHAR Y 5
code used in the Code
transaction – as per
standard codes
exchangeRt This is the exchange Exchange rate NUMBER Y 18,4
rate used in the
transaction.
destnCountryCd This is the destination Destination VARCHAR N 5
country of the item Country Code
being exported.
dbtRsnCd This is the reason code Debit Reason VARCHAR N 5
for issuing a debit. Code
invcAdjustReason This is the reason for Invoice VARCHAR N
adjusting an invoice Adjustment
Reason
cashDcRt Cash/value discount Cash Discount NUMBER N 18,4
rate Rate
cashDcAmt Cash /value discount Cash discount NUMBER N 18,4
amount amount
List<Trns itemSeq Item Sequence Number Item Sequence NUMBER Y 11
SalesSave Number
WrItem>
itemCd This is the item Item Code VARCHAR Y 100
identifier on the
taxpayer’s system
itemClsCd This is the UNSCP Item VARCHAR Y 10
code assigned to the Classification
item Code
itemNm This is the item name as Item Name VARCHAR Y 200
defined on your system
116
bcd This is the barcode Barcode VARCHAR N 20
assigned to the item
pkgUnitCd This is the packaging Packaging Unit VARCHAR Y 5 See ‘6.4 Packaging Unit’
unit code assigned to Code
the item as per standard
codes.
pkg This is the number of Package NUMBER Y 13,2
package items being
sold.
qtyUnitCd This is the assigned Quantity Unit VARCHAR Y 5 See ‘6.5. Unit of
single item unit code Code Quantity’
assigned to the item as
per standard codes
qty This is the quantity of Quantity NUMBER Y 13,2
items being sold
prc This is the tax inclusive Unit Price NUMBER Y 18,4
price of the item
splyAmt This is the total amount Supply Amount NUMBER Y 18,4
of the supplied item
(qty * prc)
dcRt This is the discount rate Discount rate NUMBER Y 5,2
on line item (Pass 0.0 if
not applicable)
dcAmt This is the discount Discount NUMBER Y 18,2
amount on line item Amount
(Pass 0.0 if not
applicable)
isrccCd Insurance Company Insurance VARCHAR N 10
Code Company Code
isrccNm Insurance Company Insurance VARCHAR N 100
name Company name
isrcAmt This is the insurance Insurance NUMBER N 18,4
amount on line item Amount
vatCatCd This represents the tax Vat Category VARCHAR Y 5
category code for VAT Code
purposes on line item.
Pass null where not
applicable
exciseTxCatCd This represents the tax Excise Tax VARCHAR Y 5
category code for Category Code
Excise on line
item. Pass null where
not applicable
rrp Recommended Retailed RRP NUMBER N 18,4
Price
vatTaxblAmt This is the Tax VAT Taxable NUMBER Y 18,4
Exclusive Amount for Amount
117
VAT at line-item level
(Pass 0.0 when not
applicable)
exciseTaxblAmt This is the Tax Excise Taxable NUMBER Y 18,4
Exclusive Amount for Amount
Excise at line-item level
(Pass 0.0 when not
applicable)
tlTaxblAmt This is the Tax Tourism Levy NUMBER Y 18,4
Exclusive Amount for Taxable
Tourism Lecy at line- Amount
item level (Pass 0.0
when not applicable)
iplTaxblAmt This is the Tax Insurance NUMBER Y 18,4
Exclusive Amount for Premium Levy
IPL at line-item level Taxable
(Pass 0.0 when not Amount
applicable)
iplAmt This is the insurance Insurance NUMBER Y 18,4
premium levy tax Premium Levy
amount charged on the Amount
line item
tlAmt This is the Tourism Tourism Levy NUMBER Y 18,4
Levy amount charged mount
on the line item.
(Pass 0.0 when not
applicable)
vatAmt This is the VAT amount VAT Amount NUMBER Y 18,4
charged on the line
item
exciseTxAmt This is the excise tax Excise Tax NUMBER Y 18,4
amount charged on the Amount
line item (Pass 0.0
when not applicable)
totAmt This is the total Tax Total Amount NUMBER Y 18,2
Inclusive Amount of
the line item
JSON REQUEST SAMPLE
{"tpin": "1000000000","bhfId": "000","cisInvcNo":"INV00004","orgInvcNo": 0,"custTpin": "2000000000","custNm": "Mulonda Mubita","salesTyCd": "N","rcptTyCd": "S","pmtTyCd": "01","salesSttsCd":
"02","cfmDt": "20240508102010","salesDt": "20240508","stockRlsDt": null,"cnclReqDt": null,"cnclDt": null,"rfdDt": null,"rfdRsnCd": null,"totItemCnt": 2,"taxblAmtA": 0.0,
"taxblAmtB": 215.5172,"taxblAmtC": 0.0,"taxblAmtC1": 0.0,"taxblAmtC2": 0.0,"taxblAmtC3": 0.0,"taxblAmtD": 0.0,"taxblAmtRvat": 0.0,"taxblAmtE": 0.0,"taxblAmtF": 0.0,"taxblAmtIpl1":
0,"taxblAmtIpl2": 0.0,"taxblAmtTl": 0,"taxblAmtEcm": 0,"taxblAmtExeeg": 0.0,"taxblAmtTot": 0.0,"taxRtA": 16,"taxRtB": 16,"taxRtC1": 0,"taxRtC2": 0,"taxRtC3": 0,"taxRtD": 0,"taxRtRvat": 16,"taxRtE":
0,
"taxRtF": 10,"taxRtIpl1": 5,"taxRtIpl2": 0,"taxRtTl": 1.5,"taxRtEcm": 5,"taxRtExeeg": 3,"taxRtTot": 0,"taxAmtA": 0.0,"taxAmtB": 34.4828,"taxAmtC": 0.0,"taxAmtC1": 0.0,"taxAmtC2": 0.0,"taxAmtC3":
0.0,"taxAmtD": 0.0,"taxAmtRvat": 0.0,"taxAmtE": 0.0,"taxAmtF": 0,"taxAmtIpl1": 0,"taxAmtIpl2": 0.0,"taxAmtTl": 0,"taxAmtEcm": 0.0,"taxAmtExeeg": 0.0,"taxAmtTot": 0.0,"totTaxblAmt": 215.5172,
118
"totTaxAmt": 34.4828,"totAmt": 200,"prchrAcptcYn": "N","remark": "","regrId": "admin","regrNm": "admin","modrId": "admin","modrNm": "admin","saleCtyCd": "1","lpoNumber": null,"currencyTyCd":
"ZMW","exchangeRt": "1","destnCountryCd": "","dbtRsnCd": "","invcAdjustReason":"","receipt":{"prchrAcptcYn":"N"},"itemList": [{"itemSeq": 1,"itemCd": "20044","itemClsCd": "50102517",
"itemNm": "Chicken Wings","bcd": "","pkgUnitCd": "BA","pkg": 0.0,"qtyUnitCd": "BE","qty": 1.0,"rrp": 150,"prc": 100,"splyAmt": 150,"dcRt": 0.0,"dcAmt": 0.0,"isrccCd": "","isrccNm": "","isrcRt":
0.0,"isrcAmt": 0.0,"vatCatCd": "B","exciseTxCatCd": null,"vatTaxblAmt": 129.3103,"exciseTaxblAmt": 0,"vatAmt": 20.6897,"exciseTxAmt": 0,"totAmt": 100},{"itemSeq": 2,"itemCd":
"20044","itemClsCd": "50102517","itemNm": "Chips","bcd": "","pkgUnitCd": "BA","pkg": 0.0,"qtyUnitCd": "BE","qty": 1.0,"rrp": 50,"prc": 100,"splyAmt": 100,"dcRt": 0.0,"dcAmt": 0.0,"isrccCd":
"","isrccNm": "","isrcRt": 0.0,"isrcAmt": 0.0,"vatCatCd": "B","exciseTxCatCd": null,"vatTaxblAmt": 86.2069,"exciseTaxblAmt": 0,"vatAmt": 13.7931,"exciseTxAmt": 0,"totAmt": 100}]}
TrnsSalesSaveWrRes Save resultCd This is the VSDC response code Result Code VARCHAR 3
Sales
resultMsg This is the VSDC response message Result Message VARCHAR 200
Response
resultDt This is the VSDC response date-time Result DateTime VARCHAR 14
SELECT INVOICE
● Endpoint: /trnsSales/selectInvoice
● Request method: POST.
● Requirement: OPTIONAL
● Description: This endpoint facilitates the retrieval of invoice transactions already posted to ZRA.
● Request Parameters: TPIN, Branch ID, Invoice SDC ID and CIS Invoice number.
● Response: Returns details of an already uploaded invoice.
● Note: This request will only return details if an invoice was successfully posted to ZRA. More information about the uploaded invoices is
available on the Portal under Transaction Management.
119
Select Invoice Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length Format
TrnsSalesSaveWrRes Save tpin This is the taxpayer identification number Result Code VARCHAR Y 3
Sales
bhfId This is the branch/store locator of the Result Message VARCHAR Y 3
Response
registered VSDC
invcSdcId This is the device id where the invoice was Invoice SDC Id VARCHAR Y 13
issued from
cisInvcNo This is the invoice number being retrieved CIS Invoice Number VARCHAR Y 50
TrnsSalesSelect Select resultCd This is the VSDC response code Result Code VARCHAR 3
Invoice
resultMsg This is the VSDC response message Result Message VARCHAR 200
Response
resultDt This is the VSDC response date-time Result DateTime VARCHAR 14
data Response data OBJECT
JSON RESPONSE SAMPLE
{"resultCd": "000", "resultMsg": "It is succeeded", "resultDt": "20240613184837", "data": { "cisInvcNo": "CIS001-7", "rcptNo": 21, "intrlData": "YO53RJAA7IKAGABBV4BWJ5SS4Q", "rcptSign":
"STKXHWQ72I2O4WIX", "vsdcRcptPbctDate": "2024-06-13 18:46:20", "sdcId": "SDC0060000356", "mrcNo": "WIS00001200", "qrCodeUrl":
"https://sandboxportal.zra.org.zm/common/link/ebm/receipt/indexEbmReceiptData?Data=1000000668000STKXHWQ72I2O4WIX"}}
120
TAX INVOICE ENHANCEMENT REQUEST
ENDPOINT: /trnsSale/saveSales
Attribute Leng
Object ID Object name Attribute ID Attribute name description Data Type Required th Format
permenentRsdnc
Adrs Customer Permanent residence address Varchar 100
121
saleDetail
See ‘6.3. Country Codes’
countriesVisited List of countries visited List<String> 5
{"tpin":"1234567890","bhfId":"000","orgInvcNo":0,"cisInvcNo":"9","custTpin":"1000000000","custNm":"Walk-In
Customer","salesTyCd":"N","rcptTyCd":"S","pmtTyCd":"01","salesSttsCd":"02","cfmDt":"20250528173452","salesDt":"20250528","stockRlsDt":"20250528173452","cnclReqDt":"20250528173452","cnclDt":null,"t
otItemCnt":1,"taxblAmtA":0,"taxblAmtB":0,"taxblAmtC1":7000,"taxblAmtC2":0,"taxblAmtC3":0,"taxblAmtD":0,"taxblAmtRvat":0,"taxblAmtE":0,"taxblAmtF":0,"taxblAmtIpl1":0,"taxblAmtIpl2":0,"taxblAmtTl":0,
"taxblAmtEcm":0,"taxblAmtExeeg":0,"taxblAmtTot":0,"taxAmtA":0,"taxAmtB":0,"taxAmtC":0,"taxAmtC1":0,"taxAmtC2":0,"taxAmtC3":0,"taxAmtD":0,"taxAmtRvat":0,"taxAmtE":0,"taxAmtF":0,"taxAmtIpl1":0,"
taxAmtIpl2":0,"taxAmtTl":0,"taxAmtEcm":0,"taxAmtExeeg":0,"taxAmtTot":0,"totTaxblAmt":7000,"totTaxAmt":0,"totAmt":7000,"taxRtA":16,"taxRtB":16,"taxRtC1":0,"taxRtC2":0,"taxRtC3":0,"taxRtD":0,"tlAmt":
0,"taxRtRvat":16,"taxRtE":0,"taxRtF":10,"taxRtIpl1":5,"taxRtIpl2":0,"taxRtTl":1.5,"taxRtEcm":5,"taxRtExeeg":3,"taxRtTot":0,"prchrAcptcYn":"N","remark":"","regrId":"admin","regrNm":"admin","modrId":"admin"
,"modrNm":"admin","lpoNumber":null,"currencyTyCd":"ZMW","exchangeRt":"1.0","destnCountryCd":"RW","dbtRsnCd":null,"invcAdjustReason":null,"bankCd":"ABSA","swiftCd":"3123","bnkBranch":"Lusaka","
bankAccntNo":"121321312","bankAccntHldr":"Yvette","custTyCd":"01","travelPurposeCd":"01","permanentRsdncAdrs":"Gasaba
downtown","permanentRsdncCountryCd":"RW","originCountryCd":"RW","bookingAgentNm":"Lusaka
Tour","tourPackageNames":[],"rebateInvcList":[],"itemList":[{"itemSeq":1,"itemCd":"ZA2NTNO0000027","itemClsCd":"25101917","itemNm":"Rice","bcd":"","pkgUnitCd":"NT","pkg":1,"qtyUnitCd":"NO","qty":1,
"prc":7000,"splyAmt":7000,"dcRt":0,"dcAmt":0,"vatCatCd":"C1","vatTaxblAmt":7000,"vatAmt":0,"totAmt":7000}]}
122
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Require Data Format
d Length
TrnsSalesSaveWrR Save resultCd This is the VSDC response code Result Code VARCHAR 3
es Sales
Response resultMsg This is the VSDC response message Result Message VARCHAR 200
123
5.10. Commercial invoice information
· Endpoint:/trnsSales/saveCommercialInvoice
· Request method: POST
· Requirement: Required for mining sector
· Description: For all export of goods and incidental services (e.g. Transport and Insurance), suppliers will be required to issue a
commercial invoice using Smart Invoice. It serves as a customs declaration provided by the person or corporation that is exporting an
item across international borders. (It is used in capturing imports and exports entries)
· Request Parameters: Invoice data including sender details, receiver details, transporter details, delivery details, shipment details
invoice type, invoice number, and transaction timestamp.
· Response: Returns the success or failure of invoice data submission.
· Dependency: A commercial invoice is required before any export of minerals, and should be followed by customs declaration,
Provisional invoice (If applicable) and Final Tax Invoice or Final credit note
· Commercial invoice acquittal process: A commercial invoice is acquitted upon creating associated provisional invoice or Final Tax
invoice.
124
7 orgInvcNo Original Invoice number NUMBER No 38
VARCHA
yyyyMMdd
8 invcDt Invoice date R Yes 8
VARCHA
9 ucrNo UCR Number R Yes 20
VARCHA
10 loadingPort Loading Port R No -
VARCHA
11 consignmentNo Consignment Number R No -
VARCHA
yyyyMMddhhmmss
12 shippingDt Shipping date R Yes -
VARCHA
13 shipmentNo Shipment Number R Yes 20
VARCHA
See 6.6. Currency
14 currencyTyCd Currency R Yes 5
15 exchangeRt Exchange rate NUMBER Yes -
VARCHA
16 exportRsnTxt Reason for export description R Yes 100
VARCHA
17 senderAddrssDesc Sender address R Yes 100
VARCHA
18 senderPostalCd Sender postal code/City R Yes 50
VARCHA
6.3. Countries code
19 exportCountryCd Country of Export code R Yes 5
VARCHA
20 senderNm Sender name R Yes 255
VARCHA
21 senderTelNo Sender telephone R Yes 13
VARCHA
22 senderEmail Sender email R Yes 100
VARCHA
23 rcvCompanyNm Receiver company name R Yes 255
VARCHA
24 rcvAddrssDesc Receiver address R Yes 100
VARCHA
25 rcvPostalCd Receiver postal code/city R Yes 100
VARCHA
26 destnCountryCd Country of Destination code R Yes 5 See 6.3. Countries code
VARCHA
27 dischargePort Port of Discharge R Yes 50
VARCHA 1.20. Destination
28 dstntnIncotermCd Destination incoterm code R Yes 5 Incortem
125
VARCHA
29 dstntnIncoterm Destination incoterm R No -
dstntnIncotermOthe VARCHA
30 r Other departure incoterm R Yes 30
VARCHA
31 rcvNm Receiver name R Yes 255
VARCHA
32 rcvTelNo Receiver telephone R Yes 15
VARCHA
33 rcvEmail Receiver email R Yes 100
VARCHA
34 dlvryCompanyNm Delivery company name R Yes 255
VARCHA
35 dlvryAddrssDesc Delivery address R Yes 100
VARCHA
36 dlvryPostalCd Delivery postal code/city R Yes 50
VARCHA
37 dlvryLoc Delivery location R Yes 100
VARCHA
38 loadingPortCd Port of Loading R Yes 5 6.19. Zambia ports
VARCHA 6.21. Departure
39 dprtrIncotermCd Departure incoterm R Yes 5 Incoterm
VARCHA
40 dprtrIncoterm Departure incoterm R No -
VARCHA
41 dprtrIncotermOther Other departure incoterm R Yes 20
VARCHA
42 dlvryContact Delivery contact R Yes 50
VARCHA
43 dlvryTelNo Delivery telephone R Yes 15
VARCHA
44 dlvryEmail Delivery email R Yes 100
VARCHA
45 transporterNm Name of transporter R Yes 255
VARCHA
46 transporterTpin TPIN of Transporter R No 10
transporterAddrssD VARCHA
47 esc Address of Transporter R Yes 100
VARCHA
6.3. Countries code
48 orgnNatCd Country of Origin of Transporter R Yes 5
VARCHA
49 transporterInvcNo Transporter’s Invoice Number R No 30
126
Transporter’s vehicle registration VARCHA
50 trnsptVhclRegNo number R Yes 20
VARCHA
51 vesselNo Vessel Number R Yes 50
52 totAmt Total Commercial Invoice Value NUMBER Yes -
VARCHA
53 bankCd Beneficiary Bank code R Yes 5 6.23. Banks
VARCHA
54 swiftCd SWIFT Code R Yes 20
VARCHA
55 bnkBranch Bank Branch R Yes 20
VARCHA
56 bankAccntNo Beneficiary Bank account no R Yes 50
VARCHA
57 bankAccntHldr Beneficiary Bank account holder R Yes 50
VARCHA
58 pymntTerms Terms of payment R Yes 100
VARCHA See ‘6.7. Transaction
59 salesTyCd Sales Type Code R No - type’
VARCHA
See ‘6.8. Sale
60 rcptTyCd Receipt Type Code R Yes 5
VARCHA See 1.22. Commercial
61 salesSttsCd Sales Status Code R Yes 5 Invoice status
VARCHA See ‘6.15. Refund
62 rfdRsnCd Refund Reason Code R No 5 Reason Code’
63 totItemCnt Total Item Count NUMBER Yes -
64 subTot Subtotal NUMBER Yes -
65 totFreightCosts Total Freight Costs NUMBER Yes -
66 totHandlingCosts Total Handling Costs NUMBER Yes -
67 totStorageCosts Total Storage Costs NUMBER Yes -
68 totInsuranceCosts Total Insurance Costs NUMBER Yes -
69 totOtherCosts Total Other Costs NUMBER Yes -
VARCHA
70 buyerRefNo Buyer Reference R Yes 50
VARCHA
71 frghtForwarder Freight Forwarder R Yes 50
VARCHA
72 regDt Registration Date R Yes -
itemList Item List 1 itemSeq Item sequence NUMBER YES 3
127
VARCHA
2 itemCd Item code R YES 100
VARCHA
3 itemNm Item name R YES 200
VARCHA
4 itemClsCd Item class code R YES 10 See UNSPC code
VARCHA
5 hsCd HS code R 20
6 pkg Number of Package NUMBER 18,4
VARCHA See ‘6.4 Packaging
7 pkgUnitCd Packaging Unit code R 5 Unit’
8 qty Quantity NUMBER YES 18,4
VARCHA See ‘6.5. Unit of
9 qtyUnitCd quantity unit code R YES 5 Quantity’
10 prc Tax inclusive price of an item NUMBER YES 18,4
11 shpmntVal Shipment value NUMBER YES 18,4
12 dcRt Discount rate NUMBER YES 18,4
13 dcAmt discount amount NUMBER YES 18,4
14 subTot Sub total NUMBER YES 18,4
15 freightCosts Freight costs NUMBER YES 18,4
16 handlingCosts Handling costs NUMBER YES 18,4
17 storageCosts Storage costs NUMBER YES 18,4
18 insuranceCosts Insurance costs NUMBER YES 18,4
19 otherCosts Other costs NUMBER YES 18,4
20 totAmt Total commercial invoice value NUMBER YES 18,4
{"tpin":"100000000","bhfId":"000","cisInvcNo":"CI/1","orgSdcId":null,"orgInvcNo":0,"invcDt":"20241015","salesTyCd":"CI","rcptTyCd":"S","salesSttsCd":"01","shippingDt":"20231015120000","shipmentNo
":"21212","ucrNo":"SHIP12345","currencyTyCd":"USD","exchangeRt":1.2345,"exportRsnTxt":"Reason for export example","senderAddrssDesc":"Addis abba
Dr","senderPostalCd":"12345","exportCountryCd":"SA","senderNm":"Bupe Karima","senderTelNo":"0912345678","senderEmail":"sender@zra.zm","rcvCompanyNm":"Google cloud Datacenter
Ltd","rcvAddrssDesc":"456 Market St","rcvPostalCd":"54321","destnCountryCd":"SA","dischargePort":"Cape town","buyerRefNo":"BUY_REF_001","rcvNm":"Alex
Zulu","rcvTelNo":"0987654321","rcvEmail":"receiver@zulu.com","dlvryCompanyNm":"Delivery Company","dlvryAddrssDesc":"789 Industrial Rd","dlvryPostalCd":"67890","dlvryLoc":"Warehouse
1","loadingPortCd":"QEW","dlvryContact":"John Doe","dlvryTelNo":"1230987654","dlvryEmail":"delivery@example.com","transporterNm":"Transporter
Inc","transporterTpin":"TRAN123456","transporterAddrssDesc":"101 Transport St","orgnNatCd":"US","transporterInvcNo":"TRANINV123","frghtForwarder":"Lusaka logistics
Ltd","vesselNo":"VESSEL001","bankCd":"BOZ","swiftCd":"SWIFT01","bnkBranch":"BRANCH01","bankAccntNo":"12345678901234","bankAccntHldr":"Account Holder","pymntTerms":"90
DAYS","totItemCnt":2,"totAmt":10184,"subTot":10000,"totFreightCosts":100,"totHandlingCosts":50,"totStorageCosts":20,"totInsuranceCosts":10,"totOtherCosts":4,"consignmentNo":"CONS12345","customsC
d":"CUST01","trnsptVhclRegNo":"VHCL123","dprtrIncotermCd":"EXW","dprtrIncotermOther":"Makeni","dstntnIncotermCd":"EXW","dstntnIncotermOther":"Durban","regrId":"ADMIN","regrNm":"admin","
regDt":"20241015100000","itemList":[{"itemSeq":1,"itemCd":"ITEM001","itemNm":"Product
A","itemClsCd":"CLS001","hsCd":"HS123456","pkg":10.0000,"pkgUnitCd":"BA","qty":100.0000,"qtyUnitCd":"4B","prc":50.0000,"splyAmt":5000.0000,"freightCosts":50.0000,"handlingCosts":25.0000,"stora
geCosts":10.0000,"insuranceCosts":5.0000,"otherCosts":2.0000,"totAmt":5092.0000},{"itemSeq":2,"itemCd":"ITEM002","itemNm":"Product
128
B","itemClsCd":"CLS001","hsCd":"HS123456","pkg":10.0000,"pkgUnitCd":"BA","qty":100.0000,"qtyUnitCd":"4B","prc":50.0000,"splyAmt":5000.0000,"freightCosts":50.0000,"handlingCosts":25.0000,"stora
geCosts":10.0000,"insuranceCosts":5.0000,"otherCosts":2.0000,"totAmt":5092.0000}]}
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Require Data Format
d Length
TrnsSalesSaveWrR Save resultCd This is the VSDC response code Result Code VARCHAR 3
es Sales
Response resultMsg This is the VSDC response message Result Message VARCHAR 200
· Endpoint:/trnsSales/saveCommercialInvoice
· Request method: POST
· Requirement: Required when reversing a commercial invoice
Object ID Oject name Attribute ID Attribute Name Attribute Description Data Type Required Data Length Format
TrnsSaveComercialInv Commercial VARCHA
oice Invoice 1 tpin TPIN R Yes 10
VARCHA
2 bhfId Branch ID R Yes 3
129
VARCHA
3 customsCd Customs Code R Yes 50
4 invcNo Commercial Invoice number NUMBER Yes 38
VARCHA
5 cisInvcNo CIS Invoice Number R Yes 50
VARCHA
6 orgSdcId Original Invoice Number R No 14
7 orgInvcNo Original Invoice number NUMBER No 38
VARCHA
yyyyMMdd
8 invcDt Invoice date R Yes 8
VARCHA
9 ucrNo UCR Number R Yes 20
VARCHA
10 loadingPort Loading Port R No -
VARCHA
11 consignmentNo Consignment Number R No -
VARCHA
yyyyMMddhhmmss
12 shippingDt Shipping date R Yes -
VARCHA
13 shipmentNo Shipment Number R Yes 20
VARCHA
See 6.6. Currency
14 currencyTyCd Currency R Yes 5
15 exchangeRt Exchange rate NUMBER Yes -
VARCHA
16 exportRsnTxt Reason for export description R Yes 100
VARCHA
17 senderAddrssDesc Sender address R Yes 100
VARCHA
18 senderPostalCd Sender postal code/City R Yes 50
VARCHA
6.3. Countries code
19 exportCountryCd Country of Export code R Yes 5
VARCHA
20 senderNm Sender name R Yes 255
VARCHA
21 senderTelNo Sender telephone R Yes 13
VARCHA
22 senderEmail Sender email R Yes 100
VARCHA
23 rcvCompanyNm Receiver company name R Yes 255
VARCHA
24 rcvAddrssDesc Receiver address R Yes 100
130
VARCHA
25 rcvPostalCd Receiver postal code/city R Yes 100
VARCHA
26 destnCountryCd Country of Destination code R Yes 5 See 6.3. Countries code
VARCHA
27 dischargePort Port of Discharge R Yes 50
VARCHA 1.20. Destination
28 dstntnIncotermCd Destination incoterm code R Yes 5 Incortem
VARCHA
29 dstntnIncoterm Destination incoterm R No -
dstntnIncotermOthe VARCHA
30 r Other departure incoterm R Yes 30
VARCHA
31 rcvNm Receiver name R Yes 255
VARCHA
32 rcvTelNo Receiver telephone R Yes 15
VARCHA
33 rcvEmail Receiver email R Yes 100
VARCHA
34 dlvryCompanyNm Delivery company name R Yes 255
VARCHA
35 dlvryAddrssDesc Delivery address R Yes 100
VARCHA
36 dlvryPostalCd Delivery postal code/city R Yes 50
VARCHA
37 dlvryLoc Delivery location R Yes 100
VARCHA
38 loadingPortCd Port of Loading R Yes 5 6.19. Zambia ports
VARCHA 6.21. Departure
39 dprtrIncotermCd Departure incoterm R Yes 5 Incoterm
VARCHA
40 dprtrIncoterm Departure incoterm R No -
VARCHA
41 dprtrIncotermOther Other departure incoterm R Yes 20
VARCHA
42 dlvryContact Delivery contact R Yes 50
VARCHA
43 dlvryTelNo Delivery telephone R Yes 15
VARCHA
44 dlvryEmail Delivery email R Yes 100
VARCHA
45 transporterNm Name of transporter R Yes 255
131
VARCHA
46 transporterTpin TPIN of Transporter R No 10
transporterAddrssD VARCHA
47 esc Address of Transporter R Yes 100
VARCHA
6.3. Countries code
48 orgnNatCd Country of Origin of Transporter R Yes 5
VARCHA
49 transporterInvcNo Transporter’s Invoice Number R No 30
Transporter’s vehicle registration VARCHA
50 trnsptVhclRegNo number R Yes 20
VARCHA
51 vesselNo Vessel Number R Yes 50
52 totAmt Total Commercial Invoice Value NUMBER Yes -
VARCHA
53 bankCd Beneficiary Bank code R Yes 5 6.23. Banks
VARCHA
54 swiftCd SWIFT Code R Yes 20
VARCHA
55 bnkBranch Bank Branch R Yes 20
VARCHA
56 bankAccntNo Beneficiary Bank account no R Yes 50
VARCHA
57 bankAccntHldr Beneficiary Bank account holder R Yes 50
VARCHA
58 pymntTerms Terms of payment R Yes 100
VARCHA See ‘6.7. Transaction
59 salesTyCd Sales Type Code R No - type’
VARCHA
See ‘6.8. Sale
60 rcptTyCd Receipt Type Code R Yes 5
VARCHA See 1.22. Commercial
61 salesSttsCd Sales Status Code R Yes 5 Invoice status
VARCHA See ‘6.15. Refund
62 rfdRsnCd Refund Reason Code R Yes 5 Reason Code’
63 totItemCnt Total Item Count NUMBER Yes -
64 subTot Subtotal NUMBER Yes -
65 totFreightCosts Total Freight Costs NUMBER Yes -
66 totHandlingCosts Total Handling Costs NUMBER Yes -
67 totStorageCosts Total Storage Costs NUMBER Yes -
68 totInsuranceCosts Total Insurance Costs NUMBER Yes -
132
69 totOtherCosts Total Other Costs NUMBER Yes -
VARCHA
70 buyerRefNo Buyer Reference R Yes 50
VARCHA
71 frghtForwarder Freight Forwarder R Yes 50
VARCHA
72 regDt Registration Date R Yes -
1 itemSeq Item sequence NUMBER YES 3
VARCHA
2 itemCd Item code R YES 100
VARCHA
3 itemNm Item name R YES 200
VARCHA
4 itemClsCd Item class code R YES 10 See UNSPC code
VARCHA
5 hsCd HS code R 20
6 pkg Number of Package NUMBER 18,4
VARCHA See ‘6.4 Packaging
7 pkgUnitCd Packaging Unit code R 5 Unit’
8 qty Quantity NUMBER YES 18,4
VARCHA See ‘6.5. Unit of
9 qtyUnitCd quantity unit code R YES 5 Quantity’
10 prc Tax inclusive price of an item NUMBER YES 18,4
11 shpmntVal Shipment value NUMBER YES 18,4
12 dcRt Discount rate NUMBER YES 18,4
13 dcAmt discount amount NUMBER YES 18,4
14 subTot Sub total NUMBER YES 18,4
15 freightCosts Freight costs NUMBER YES 18,4
16 handlingCosts Handling costs NUMBER YES 18,4
17 storageCosts Storage costs NUMBER YES 18,4
18 insuranceCosts Insurance costs NUMBER YES 18,4
19 otherCosts Other costs NUMBER YES 18,4
itemList Item List 20 totAmt Total commercial invoice value NUMBER YES 18,4
{"tpin":"1000426601","bhfId":"000","cisInvcNo":"CI/14","orgSdcId":"SDC0030000001","orgInvcNo":2,"rfdRsnCd":"01","invcDt":"20241015","salesTyCd":"CI","rcptTyCd":"R","salesSttsCd":"01","shippingDt":"20
231015120000","shipmentNo":"21212","ucrNo":"SHIP12345","currencyTyCd":"USD","exchangeRt":1.2345,"exportRsnTxt":"Reason for export example","senderAddrssDesc":"Addis abba
Dr","senderPostalCd":"12345","exportCountryCd":"SA","senderNm":"Bupe Karima","senderTelNo":"0912345678","senderEmail":"sender@zra.zm","rcvCompanyNm":"Google cloud Datacenter
Ltd","rcvAddrssDesc":"456 Market St","rcvPostalCd":"54321","destnCountryCd":"SA","dischargePort":"Cape town","buyerRefNo":"BUY_REF_001","rcvNm":"Alex
133
Zulu","rcvTelNo":"0987654321","rcvEmail":"receiver@zulu.com","dlvryCompanyNm":"Delivery Company","dlvryAddrssDesc":"789 Industrial Rd","dlvryPostalCd":"67890","dlvryLoc":"Warehouse
1","loadingPortCd":"QEW","dlvryContact":"John Doe","dlvryTelNo":"1230987654","dlvryEmail":"delivery@example.com","transporterNm":"Transporter
Inc","transporterTpin":"TRAN123456","transporterAddrssDesc":"101 Transport St","orgnNatCd":"US","transporterInvcNo":"TRANINV123","frghtForwarder":"Lusaka logistics
Ltd","vesselNo":"VESSEL001","bankCd":"BOZ","swiftCd":"SWIFT01","bnkBranch":"BRANCH01","bankAccntNo":"12345678901234","bankAccntHldr":"Account Holder","pymntTerms":"90
DAYS","totItemCnt":2,"totAmt":10184,"subTot":10000,"totFreightCosts":100,"totHandlingCosts":50,"totStorageCosts":20,"totInsuranceCosts":10,"totOtherCosts":4,"consignmentNo":"CONS12345","customsCd":"C
UST01","trnsptVhclRegNo":"VHCL123","dprtrIncotermCd":"EXW","dprtrIncotermOther":"Makeni","dstntnIncotermCd":"EXW","dstntnIncotermOther":"Durban","regrId":"ADMIN","regrNm":"admin","regDt":"202
41015100000","itemList":[{"itemSeq":1,"itemCd":"ITEM001","itemNm":"Product
A","itemClsCd":"CLS001","hsCd":"HS123456","pkg":10.0000,"pkgUnitCd":"BA","qty":100.0000,"qtyUnitCd":"4B","prc":50.0000,"splyAmt":5000.0000,"freightCosts":50.0000,"handlingCosts":25.0000,"storageCost
s":10.0000,"insuranceCosts":5.0000,"otherCosts":2.0000,"totAmt":5092.0000},{"itemSeq":2,"itemCd":"ITEM002","itemNm":"Product
B","itemClsCd":"CLS001","hsCd":"HS123456","pkg":10.0000,"pkgUnitCd":"BA","qty":100.0000,"qtyUnitCd":"4B","prc":50.0000,"splyAmt":5000.0000,"freightCosts":50.0000,"handlingCosts":25.0000,"storageCost
s":10.0000,"insuranceCosts":5.0000,"otherCosts":2.0000,"totAmt":5092.0000}]}
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Require Data Format
d Length
TrnsSalesSaveWrR Save resultCd This is the VSDC response code Result Code VARCHAR 3
es Sales
Response resultMsg This is the VSDC response message Result Message VARCHAR 200
134
5.11. Provisional and Final invoice Information
The Provisional invoice API facilitates the transmission of detailed provisional invoice data from a third-party system to Smart Invoice. This data
includes specific details associated with each sale, such as customer information, sale type, invoice number, and the date/time of the transaction.
Developers can use this API to seamlessly transfer provisional invoice information, ensuring accurate invoicing and efficient management of
customer transactions.
135
Object ID Object name Attribute ID Attribute name Attribute description Data Type Required Length Format
See ‘6.10.
Transaction
salesSttsCd Sales Status Code Varchar 5 Progress’
136
Confirmation Date (format:
cfmDt YYYYMMDDHHMMSS) Varchar 14
invcAdjustR
eason Invoice Adjustment Reason Varchar 255
137
prchseOrdrN
o Purchase Order Number Varchar YES 15
commInvcN List<Long
oList Commercial Invoice Number > YES 38,0
treatmentCha
rges Treatment Charges (deduction) Number YES 18,4
processingC
harges Processing Charges (deduction) Number YES 18,4
tollingCharg
es Tolling Charges (deduction) Number YES 18,4
refineryChar
ges Refinery Charges (deduction) Number YES 18,4
freightOrTra
nsport Freight or Transportation Charges (deduction) Number YES 18,4
moistureDed
uctions Moisture Deductions (deduction) Number YES 18,4
insolubleDed
uctions Insoluble Deductions (deduction) Number YES 18,4
totalDeductio
ns Total Deductions Number YES 18,4
138
regrNm Registrar Name Varchar YES 50
currencyTyC
d Currency Type Code (e.g., USD) Varchar YES 5
139
See ‘6.5. Unit of
qtyUnitCd Quantity Unit Code String 5 Quantity’
140
{"tpin":"1000000000","bhfId":"000","custTpin":"1000000001","destnCountryCd":"RW","cisInvcNo":"PROV00022433235","orgCommInvcNoList":[8],"totTaxAmt":1350.1063,"taxRtTot":0,"taxRtExeeg":3,"taxblAmtC3":0,"
taxRtA":16,"taxblAmtC2":0,"taxRtB":16,"rfdDt":null,"taxblAmtC1":0,"taxRtD":0,"taxRtE":0,"taxRtF":10,"currencyTyCd":"ZMW","orgInvcNo":"0","taxAmtTot":0,"taxblAmtIpl2":0,"salesSttsCd":"02","taxblAmtIpl1":0,"mo
drId":"1001666658","rcptTyCd":"S","invcAdjustReason":"","taxAmtTl":0,"taxAmtExeeg":0,"cnclReqDt":null,"salesDt":"20241204","taxRtIpl2":0,"taxblAmtExeeg":0,"taxRtIpl1":5,"exchangeRt":1,"taxblAmtRvat":0,"pmtTy
Cd":"08","cfmDt":"20241204123409","totTaxblAmt":8438.18,"dbtRsnCd":"","taxRtTl":1.5,"taxblAmtEcm":0,"taxRtC1":0,"taxRtEcm":5,"taxblAmtA":8438.1636,"taxblAmtB":0,"modrNm":"Colgate Palmolive (Zambia)
Inc.","orgSdcId":null,"taxRtC2":0,"taxRtC3":0,"prchrAcptcYn":"Y","remark":"","regrId":"1001666658","taxAmtEcm":0,"taxRtRvat":16,"taxAmtD":0,"taxAmtIpl1":0,"taxAmtC":0,"taxAmtB":0,"taxAmtA":1350.1063,"taxA
mtIpl2":0,"taxAmtF":0,"taxAmtE":0,"taxblAmtC":0,"taxblAmtTl":0,"taxblAmtD":0,"taxblAmtE":0,"taxblAmtF":0,"rfdRsnCd":null,"custNm":"Choppies Lake road","permanentRsdncAdrs":"Kigali,
Rw","originCountryCd":"RW","permanentRsdncCountryCd":"ZM","lpoNumber":null,"cnclDt":null,"totItemCnt":7,"totAmt":9788.2699,"salesTyCd":"PI","taxAmtRvat":0,"regrNm":"Colgate Palmolive (Zambia)
Inc.","taxblAmtTot":0,"taxAmtC1":0,"taxAmtC3":0,"taxAmtC2":0,"bankCd":"ECO","swiftCd":"3123123123","bnkBranch":"KATWE","bankAccntNo":"194712974192749","bankAccntHldr":"Karim
Ahmed","prchseOrdrNo":"PUR000980","itemList":[{"prc":619.1152,"vatTaxblAmt":960.696,"qtyUnitCd":"BX","bcd":16001067021541,"exciseTxCatCd":"","dcAmt":123.82,"itemClsCd":"41104211","pkgUnitCd":"EA","ite
mCd":"FZA02154C","splyAmt":1238.2304,"totAmt":1114.4074,"itemNm":"STA SOFT BABY
2L","pkg":18,"itemSeq":1,"dcRt":10,"qty":2,"vatAmt":153.7114,"vatCatCd":"A"},{"prc":619.1152,"vatTaxblAmt":960.696,"qtyUnitCd":"BX","bcd":16001067093937,"dcAmt":123.82,"itemClsCd":"41104211","pkgUnitCd":
"EA","itemCd":"FZA00314E","splyAmt":1238.2304,"totAmt":1114.4074,"itemNm":"STA-SOFT 2L LAVENDER (F.
BOOSTER)","pkg":18,"isrcAmt":"","itemSeq":2,"dcRt":10,"qty":2,"vatAmt":153.7114,"vatCatCd":"A"},{"prc":619.1152,"vatTaxblAmt":960.696,"qtyUnitCd":"BX","bcd":16001067093692,"exciseTxCatCd":"","dcAmt":123
.82,"itemClsCd":"41104211","pkgUnitCd":"EA","itemCd":"FZA00305E","splyAmt":1238.2304,"totAmt":1114.4074,"itemNm":"STA-SOFT 2L SPRING FRESH (F.
BOOSTER)","pkg":18,"itemSeq":3,"dcRt":10,"qty":2,"vatAmt":153.7114,"vatCatCd":"A"},{"prc":1996.7892,"vatTaxblAmt":1514.8056,"qtyUnitCd":"BX","bcd":16920354817820,"exciseTxCatCd":"","dcAmt":239.61,"item
ClsCd":"53131502","pkgUnitCd":"EA","itemCd":"61041185","splyAmt":1996.7892,"totAmt":1757.1745,"itemNm":"COLGATE TP HERBAL
140G","pkg":72,"isrcAmt":"","itemSeq":4,"dcRt":12,"qty":1,"vatAmt":242.3689,"vatCatCd":"A"},{"prc":1340.148,"vatTaxblAmt":1155.3,"qtyUnitCd":"BX","bcd":16920354817813,"exciseTxCatCd":"","dcAmt":0,"itemCls
Cd":"53131502","pkgUnitCd":"EA","itemCd":"61041186","splyAmt":1340.148,"totAmt":1340.148,"itemNm":"COL TP HERBAL
70G","pkg":72,"isrcAmt":"","itemSeq":5,"dcRt":0,"qty":1,"vatAmt":184.848,"vatCatCd":"A"},{"prc":1815.0752,"vatTaxblAmt":1564.72,"qtyUnitCd":"BX","bcd":8718951289505,"exciseTxCatCd":"","dcAmt":0,"itemClsCd"
:"53131502","pkgUnitCd":"EA","itemCd":"61031123","splyAmt":1815.0752,"totAmt":1815.0752,"itemNm":"COL TP MAX FRESH COOL MINT
75ML","pkg":72,"isrcAmt":"","itemSeq":6,"dcRt":0,"qty":1,"vatAmt":250.3552,"vatCatCd":"A"},{"prc":1532.65,"vatTaxblAmt":1321.25,"qtyUnitCd":"BX","bcd":8718951350878,"exciseTxCatCd":"","dcAmt":0,"itemClsCd
":"53131502","pkgUnitCd":"EA","itemCd":"61013331","splyAmt":1532.65,"totAmt":1532.65,"itemNm":"Charcoal Gentle Clean 120g","pkg":48,"isrcAmt":"","itemSeq":7,"dcRt":0,"qty":1,"vatAmt":211.4,"vatCatCd":"A"}]}
141
should be called to update the stock quantities based on the sales recorded. This process ensures that inventory adjustments due to
sales are accurately reflected in the overall stock inventory, for further reporting to Smart Invoice.
● Business rule:
o Final tax invoice always follows a credit not of a Provisional invoice
o Final invoice should reference to a provisional invoice or commercial invoice
o One Final invoice can finalize multiple provisional invoices
o One Final invoice can acquit multiple commercial invoices
Object ID Object name Attribute ID Attribute name Attribute description Data Type Required Length Format
142
orgProvInvc List of original provisional invoices number to be List<Long
NoList finalized >
See ‘6.10.
Transaction
salesSttsCd Sales Status Code Varchar 5 Progress’
invcAdjustR
eason Invoice Adjustment Reason Varchar 255
143
taxblAmtC1 Taxable Amount (Category 1) Number 18,4
prchseOrdrN
o Purchase Order Number Varchar YES 15
commInvcN
o Commercial Invoice Number Number YES 38,0
treatmentCha
rges Treatment Charges (deduction) Number YES 18,4
processingC
harges Processing Charges (deduction) Number YES 18,4
tollingCharg
es Tolling Charges (deduction) Number YES 18,4
refineryChar
ges Refinery Charges (deduction) Number YES 18,4
144
freightOrTra
nsport Freight or Transportation Charges (deduction) Number YES 18,4
moistureDed
uctions Moisture Deductions (deduction) Number YES 18,4
insolubleDed
uctions Insoluble Deductions (deduction) Number YES 18,4
totalDeductio
ns Total Deductions Number YES 18,4
currencyTyC
d Currency Type Code (e.g., USD) Varchar YES 5
145
itemCd Item Code Varchar 10
146
vatCatCd VAT Category Code String 5
{"tpin":"1000426601","bhfId":"000","custTpin":"1003084830","destnCountryCd":"RW","cisInvcNo":"PROV00022431","orgProvInvcNoList":[1,3],"totTaxAmt":153.7114,"taxRtTot":0,"taxRtExeeg":3,"taxblAmtC3":0,"taxR
tA":16,"taxblAmtC2":0,"taxRtB":16,"rfdDt":null,"taxblAmtC1":0,"taxRtD":0,"taxRtE":0,"taxRtF":10,"currencyTyCd":"ZMW","orgInvcNo":"0","taxAmtTot":0,"taxblAmtIpl2":0,"salesSttsCd":"02","taxblAmtIpl1":0,"modrId
":"1001666658","rcptTyCd":"S","invcAdjustReason":"","taxAmtTl":0,"taxAmtExeeg":0,"cnclReqDt":null,"salesDt":"20241204","taxRtIpl2":0,"taxblAmtExeeg":0,"taxRtIpl1":5,"exchangeRt":1,"taxblAmtRvat":0,"pmtTyCd":
"08","cfmDt":"20241204123409","totTaxblAmt":960.696,"dbtRsnCd":"","taxRtTl":1.5,"taxblAmtEcm":0,"taxRtC1":0,"taxRtEcm":5,"taxblAmtA":960.696,"taxblAmtB":0,"modrNm":"Colgate Palmolive (Zambia)
Inc.","orgSdcId":null,"taxRtC2":0,"taxRtC3":0,"prchrAcptcYn":"Y","remark":"","regrId":"1001666658","taxAmtEcm":0,"taxRtRvat":16,"taxAmtD":0,"taxAmtIpl1":0,"taxAmtC":0,"taxAmtB":0,"taxAmtA":153.7114,"taxAmt
Ipl2":0,"taxAmtF":0,"taxAmtE":0,"taxblAmtC":0,"taxblAmtTl":0,"taxblAmtD":0,"taxblAmtE":0,"taxblAmtF":0,"rfdRsnCd":null,"custNm":"Choppies Lake road","permanentRsdncAdrs":"Kigali,
Rw","originCountryCd":"RW","permanentRsdncCountryCd":"ZM","lpoNumber":null,"cnclDt":null,"totItemCnt":1,"totAmt":1114.4074,"salesTyCd":"F","taxAmtRvat":0,"regrNm":"Colgate Palmolive (Zambia)
Inc.","taxblAmtTot":0,"taxAmtC1":0,"taxAmtC3":0,"taxAmtC2":0,"bankCd":"ECO","swiftCd":"3123123123","bnkBranch":"KATWE","bankAccntNo":"194712974192749","bankAccntHldr":"Karim
Ahmed","prchseOrdrNo":"PUR000980","itemList":[{"prc":619.1152,"vatTaxblAmt":960.696,"qtyUnitCd":"BX","bcd":16001067021541,"exciseTxCatCd":"","dcAmt":123.82,"itemClsCd":"41104211","pkgUnitCd":"EA","ite
mCd":"FZA02154C","splyAmt":1238.2304,"totAmt":1114.4074,"itemNm":"STA SOFT BABY 2L","pkg":18,"itemSeq":1,"dcRt":10,"qty":2,"vatAmt":153.7114,"vatCatCd":"A"}]}
147
● Business rule:
o Final credit note always follows a previously overstated Provisional invoice
o Final credit note should reference to a provisional invoice
o One Final credit note can finalize multiple provisional invoices
o One Final credit note can acquit multiple commercial invoices
o The final credit note enables users to submit downward adjustments to a previously understated provisional invoice
Object ID Object name Attribute ID Attribute name Attribute description Data Type Required Length Format
148
orgProvInvc List of original provisional invoices number to be List<Long
NoList finalized >
See ‘6.10.
Transaction
salesSttsCd Sales Status Code Varchar 5 Progress’
invcAdjustR
eason Invoice Adjustment Reason Varchar 255
149
taxRtC1 Tax Rate (Category 1) Number 5,2
prchseOrdrN
o Purchase Order Number Varchar YES 15
commInvcN
o Commercial Invoice Number Number YES 38,0
treatmentCha
rges Treatment Charges (deduction) Number YES 18,4
processingC
harges Processing Charges (deduction) Number YES 18,4
tollingCharg
es Tolling Charges (deduction) Number YES 18,4
refineryChar
ges Refinery Charges (deduction) Number YES 18,4
freightOrTra
nsport Freight or Transportation Charges (deduction) Number YES 18,4
150
moistureDed
uctions Moisture Deductions (deduction) Number YES 18,4
insolubleDed
uctions Insoluble Deductions (deduction) Number YES 18,4
totalDeductio
ns Total Deductions Number YES 18,4
currencyTyC
d Currency Type Code (e.g., USD) Varchar YES 5
151
itemClsCd Item Classification Code Varchar 10
152
vatTaxblAmt VAT Taxable Amount Number 18,4
{"tpin":"1000000000","bhfId":"000","custTpin":"1000000000","destnCountryCd":"RW","cisInvcNo":"PROV00022431","orgProvInvcNoList":[1,6],"totTaxAmt":153.7114,"taxRtTot":0,"taxRtExeeg":3,"taxblAmtC3":0,"taxR
tA":16,"taxblAmtC2":0,"taxRtB":16,"rfdDt":null,"taxblAmtC1":0,"taxRtD":0,"taxRtE":0,"taxRtF":10,"currencyTyCd":"ZMW","orgInvcNo":"0","taxAmtTot":0,"taxblAmtIpl2":0,"salesSttsCd":"02","taxblAmtIpl1":0,"modrId
":"1001666658","rcptTyCd":"R","invcAdjustReason":"","taxAmtTl":0,"taxAmtExeeg":0,"cnclReqDt":null,"salesDt":"20241204","taxRtIpl2":0,"taxblAmtExeeg":0,"taxRtIpl1":5,"exchangeRt":1,"taxblAmtRvat":0,"pmtTyCd":
"08","cfmDt":"20241204123409","totTaxblAmt":960.696,"dbtRsnCd":"","taxRtTl":1.5,"taxblAmtEcm":0,"taxRtC1":0,"taxRtEcm":5,"taxblAmtA":960.696,"taxblAmtB":0,"modrNm":"Colgate Palmolive (Zambia)
Inc.","orgSdcId":null,"taxRtC2":0,"taxRtC3":0,"prchrAcptcYn":"Y","remark":"","regrId":"1001666658","taxAmtEcm":0,"taxRtRvat":16,"taxAmtD":0,"taxAmtIpl1":0,"taxAmtC":0,"taxAmtB":0,"taxAmtA":153.7114,"taxAmt
Ipl2":0,"taxAmtF":0,"taxAmtE":0,"taxblAmtC":0,"taxblAmtTl":0,"taxblAmtD":0,"taxblAmtE":0,"taxblAmtF":0,"rfdRsnCd":"02","custNm":"Choppies Lake road","permanentRsdncAdrs":"Kigali,
Rw","originCountryCd":"RW","permanentRsdncCountryCd":"ZM","lpoNumber":null,"cnclDt":null,"totItemCnt":1,"totAmt":1114.4074,"salesTyCd":"F","taxAmtRvat":0,"regrNm":"Colgate Palmolive (Zambia)
Inc.","taxblAmtTot":0,"taxAmtC1":0,"taxAmtC3":0,"taxAmtC2":0,"bankCd":"ECO","swiftCd":"3123123123","bnkBranch":"KATWE","bankAccntNo":"194712974192749","bankAccntHldr":"Karim
Ahmed","prchseOrdrNo":"PUR000980","itemList":[{"prc":619.1152,"vatTaxblAmt":960.696,"qtyUnitCd":"BX","bcd":16001067021541,"exciseTxCatCd":"","dcAmt":123.82,"itemClsCd":"41104211","pkgUnitCd":"EA","ite
mCd":"FZA02154C","splyAmt":1238.2304,"totAmt":1114.4074,"itemNm":"STA SOFT BABY 2L","pkg":18,"itemSeq":1,"dcRt":10,"qty":2,"vatAmt":153.7114,"vatCatCd":"A"}]}
153
o One Final combined invoice can finalize multiple provisional invoices
o One Final combined invoice can acquit multiple commercial invoices
o Final invoice allows users to submit additional adjustments on a previously understated provisional invoice
Request body
Object ID Object name Attribute ID Attribute name Attribute description Data Type Required Length Format
154
See ‘6.8. Sale
rcptTyCd Receipt Type Code Varchar 5 Receipt Type’
See ‘6.10.
Transaction
salesSttsCd Sales Status Code Varchar 5 Progress’
invcAdjustReaso
n Invoice Adjustment Reason Varchar 255
155
taxAmtC1 Tax Amount (Category 1) Number 18,4
treatmentCharge
s Treatment Charges (deduction) Number YES 18,4
processingCharg
es Processing Charges (deduction) Number YES 18,4
freightOrTranspo
rt Freight or Transportation Charges (deduction) Number YES 18,4
moistureDeducti
ons Moisture Deductions (deduction) Number YES 18,4
156
insolubleDeducti
ons Insoluble Deductions (deduction) Number YES 18,4
157
itemNm Item Name Varchar 50
158
vatAmt VAT Amount Number 18,4
{"tpin":"1000000000","bhfId":"000","custTpin":"1000000000","destnCountryCd":"RW","cisInvcNo":"PROV00022431","orgProvInvcNoList":[1,6],"totTaxAmt":153.7114,"taxRtTot":0,"taxRtExeeg":3,"taxblAmtC3":0,"taxRtA":
16,"taxblAmtC2":0,"taxRtB":16,"rfdDt":null,"taxblAmtC1":0,"taxRtD":0,"taxRtE":0,"taxRtF":10,"currencyTyCd":"ZMW","orgInvcNo":"0","taxAmtTot":0,"taxblAmtIpl2":0,"salesSttsCd":"02","taxblAmtIpl1":0,"modrId":"1001
666658","rcptTyCd":"R","invcAdjustReason":"","taxAmtTl":0,"taxAmtExeeg":0,"cnclReqDt":null,"salesDt":"20241204","taxRtIpl2":0,"taxblAmtExeeg":0,"taxRtIpl1":5,"exchangeRt":1,"taxblAmtRvat":0,"pmtTyCd":"08","cfm
Dt":"20241204123409","totTaxblAmt":960.696,"dbtRsnCd":"","taxRtTl":1.5,"taxblAmtEcm":0,"taxRtC1":0,"taxRtEcm":5,"taxblAmtA":960.696,"taxblAmtB":0,"modrNm":"Colgate Palmolive (Zambia)
Inc.","orgSdcId":null,"taxRtC2":0,"taxRtC3":0,"prchrAcptcYn":"Y","remark":"","regrId":"1001666658","taxAmtEcm":0,"taxRtRvat":16,"taxAmtD":0,"taxAmtIpl1":0,"taxAmtC":0,"taxAmtB":0,"taxAmtA":153.7114,"taxAmtIpl
2":0,"taxAmtF":0,"taxAmtE":0,"taxblAmtC":0,"taxblAmtTl":0,"taxblAmtD":0,"taxblAmtE":0,"taxblAmtF":0,"rfdRsnCd":"02","custNm":"Choppies Lake road","permanentRsdncAdrs":"Kigali,
Rw","originCountryCd":"RW","permanentRsdncCountryCd":"ZM","lpoNumber":null,"cnclDt":null,"totItemCnt":1,"totAmt":1114.4074,"salesTyCd":"F","taxAmtRvat":0,"regrNm":"Colgate Palmolive (Zambia)
Inc.","taxblAmtTot":0,"taxAmtC1":0,"taxAmtC3":0,"taxAmtC2":0,"bankCd":"ECO","swiftCd":"3123123123","bnkBranch":"KATWE","bankAccntNo":"194712974192749","bankAccntHldr":"Karim
Ahmed","prchseOrdrNo":"PUR000980","itemList":[{"prc":619.1152,"vatTaxblAmt":960.696,"qtyUnitCd":"BX","bcd":16001067021541,"exciseTxCatCd":"","dcAmt":123.82,"itemClsCd":"41104211","pkgUnitCd":"EA","itemC
d":"FZA02154C","splyAmt":1238.2304,"totAmt":1114.4074,"itemNm":"STA SOFT BABY 2L","pkg":18,"itemSeq":1,"dcRt":10,"qty":2,"vatAmt":153.7114,"vatCatCd":"A"}]}
GET PURCHASES
● Endpoint: /trnsPurchase/selectTrnsPurchaseSales
● Request method: POST.
● Requirement: MANDATORY
● Description: Retrieve all purchases made by a business when they are supplied by another business using Smart Invoice.
● Request Parameters: TPIN, Branch ID, and Last Request Date
● Response: Returns a list of purchases with their details including item names, description, price recorded in Smart Invoice.
159
ERP VSDC API
TrnsPurchaseSalesRe Search tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
q Purchase/Sales Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. Last Request Date VARCHAR Y 14
By default, this defaults to 20160523000000
JSON REQUEST SAMPLE
TrnsPurchaseSalesRes Search resultCd This is the VSDC response code Result Code VARCHAR 3
Purchase/Sales
Response resultMsg This is the VSDC response Result Message VARCHAR 200
message
resultDt This is the VSDC response date- Result Date Time VARCHAR 14 yyyyMMddhhmmss
time
spplrTpin This is the TPIN of the supplier Supplier TPIN VARCHAR 10
160
rcptTyCd This represents the type of sale of Receipt Type Code VARCHAR 5 See ‘6.8. Sale
the transaction i.e. Sale or Refund Receipt Type’
after Sale
pmtTyCd This is the mode/method of Payment Type Code VARCHAR 5 See 6.9. Payment
payment used in the transaction Method
cfmDt This is the date on which the Confirmed Date VARCHAR 14 yyyyMMddhhmmss
purchase was approved/confirmed
salesDt This is the date on which the sale Sales Date VARCHAR 8 yyyyMMdd
was made
stockRlsDt This is the date on which items Stock Release Date VARCHAR 14 yyyyMMddhhmmss
were released from
warehouse/branch for sale
totItemCnt This is the total number of line Total Item Count NUMBER 10
items on invoice
totTaxblAmt This is the total Tax Exclusive Total Taxable Amount NUMBER 18,4
Amount for all line items on
invoice
totTaxAmt This is the total tax charged on all Total Tax Amount NUMBER 18,2
line items on invoice
totAmt This is the total Tax Inclusive Total Amount NUMBER 18,2
Amount of all line items on the
invoice
remark This is an additional comment Remark VARCHAR 400
section/field for remarks
itemSeq This is the line item sequence Item Sequence NUMBER 4
number
itemCd This is the item code identifier of Item Code VARCHAR 100
the item
itemClsCd This is the classification code of Item Classification Code 10
the item
itemNm This is the name of the item being Item Name VARCHAR 200
supplied
bcd This is the Barcode assigned to line Barcode VARCHAR 20
item
pkgUnitCd This is the packaging unit code Package Unit Code VARCHAR 5 See ‘6.4. Packaging Unit’
assigned to the item as per standard
codes.
pkg This is the number of package Package NUMBER 13,2
items being sold.
qtyUnitCd This is the assigned single item Quantity Unit Code VARCHAR 5 See ‘6.5. Unit of
unit of measure code assigned to Quantity’
the item as per standard codes
qty This is the quantity of the line Quantity NUMBER 13,2
items
prc This is the tax inclusive price of Price NUMBER 18,4
the item
161
splyAmt This is the total amount of the Supply Amount NUMBER 18,4
items or services provided by the
seller to the buyer (qty * prc)
dcRt This is the discount rate Discount Rate NUMBER 5,2
dcAmt This is the total discount amount Discount Amount NUMBER 18,2
applied on the invoice if
applicable
vatCatCd This represents the tax category VAT Category Code VARCHAR 5 See ‘6.1. Tax Type’
code for VAT purposes.
iplCatCd This represents the tax category for IPL Category Code VARCHAR 5 See ‘6.1. Tax Type’
IPL purposes e.g. “IPL”
tlCatCd This represents the tax category for TL Category Code VARCHAR 5 See ‘6.1. Tax Type’
TL purposes e.g.”TL”
exciseTxCatC This represents the tax category for Excise Tax Category Code VARCHAR 5 See ‘6.1. Tax Type’
Excise purposes e.g. “ECM” or
“EXEEG”
vatTaxblAmt This is the tax exclusive amount for VAT Taxable Amount NUMBER 18,4
a line item classified as VAT
exciseTaxblAmt This is the tax exclusive amount for Excise Table Amount NUMBER 18,4
a line item classified as Excise
iplTaxblAmt This is the tax exclusive amount IPL Taxable Amount NUMBER 18,4
for a line item classified as IPL
tlTaxblAmt This is the tax exclusive amount TL Taxable Amount NUMBER 18,4
for a line item classified as TL
taxblAmt This is the Total tax exclusive Taxable Amount NUMBER 18,4
amount for the line item
vatAmt This represents the tax charged VAT Amount NUMBER 18,4
specifically to VAT line items
iplAmt This represents the tax charged IPL Amount NUMBER 18,4
specifically to IPL line items
tlAmt This represents the tax charged TL Amount NUMBER 18,4
specifically to TL line items
exciseTxAmt This represents the tax charged Excise Tax Amount NUMBER 18,4
specifically to Excise line items
totAmt This is the total Tax Inclusive Total Amount NUMBER 18,2
Amount of the line item
JSON RESPONSE SAMPLE
{"resultCd":"000","resultMsg":"It is succeeded","resultDt":"20240510103403","data":{"saleList":[{"spplrTpin":"1000000000","spplrNm":"SMART
SUPPLIER","spplrBhfId":"000","spplrInvcNo":45,"rcptTyCd":"S","pmtTyCd":"01","cfmDt":"2024-05-08
10:20:10","salesDt":"20240502","stockRlsDt":null,"totItemCnt":1,"totTaxblAmt":86.2069,"totTaxAmt":13.7931,"totAmt":100,"remark":null,"itemList":[{"itemSeq":1,"itemCd":"20044","itemClsCd":"50102517","ite
mNm":"ChickenWings","bcd":null,"pkgUnitCd":"BA","pkg":0,"qtyUnitCd":"BE","qty":1,"prc":100,"splyAmt":100,"dcRt":0,"dcAmt":0,"vatCatCd":"A","iplCatCd":null,"tlCatCd":null,"exciseTxCatCd":null,"vatTax
blAmt":86.21,"exciseTaxblAmt":0,"iplTaxblAmt":0,"tlTaxblAmt":0,"taxblAmt":86.21,"vatAmt":13.79,"iplAmt":0,"tlAmt":0,"exciseTxAmt":0,"totAmt":100}]}]}}
162
SAVE PURCHASES
● Endpoints: /trnsPurchase/savePurchase
● Request method: POST.
● Requirement: MANDATORY
● Description: This endpoint is utilized to approve or reject all purchases made by a business from suppliers.
● Request Parameters: Purchase data including supplier information, purchase type code, purchase status code, item information, etc.
● Response: Returns the success or failure of the purchase data submission.
● Dependency: Upon approval of a purchase, you must call the "Save Stock Items" endpoint to add the approved purchases as stock items.
Subsequently, call the “Stock Master” endpoint to update the existing stock quantities for any items that were already present in your
inventory reflecting the additional approved purchases. This process ensures that approved purchases are accurately reflected in the
overall stock inventory.
ERP VSDC API
163
Object ID Object Attribute ID Attribute Description Attribute Name Data Type Required Data Format
Name Length
164
totTaxAmt Total tax amount NUMBER Y 18,2
Total Tax Amount
totAmt Total amount NUMBER Y 18,2
Total tax amount
itemSeq Item Sequence Number Item Sequence NUMBER Y 3
Number
itemCd This is the item identifier Item Code VARCHAR N 100
on the taxpayer’s system
itemClsCd This is the UNSCP code Item Classification VARCHAR Y 10
assigned to the item Code
itemNm This is the item name as Item Name VARCHAR Y 200
defined on your system
bcd This is the barcode Barcode VARCHAR N 20
assigned to the item
spplrItemClsCd This is the supplier Supplier Item VARCHAR N 10
UNSCP code assigned to Classification Code
the item
spplrItemCd This is the supplier item Supplier Item Code VARCHAR N 20
code as defined on your
system
spplrItemNm This is the supplier item Supplier Item Name VARCHAR N 200
name as defined on your
system
pkgUnitCd This is the packaging unit Packaging Unit Code VARCHAR N 5 See ‘6.4. Packaging Unit’
code assigned to the item
as per standard codes.
pkg This is the number of Package NUMBER Y 13,2
package items being sold.
qtyUnitCd This is the assigned single Quantity Unit Code VARCHAR Y 5 See ‘6.5. Unit of
item unit code assigned to measures
the item as per standard
codes
qty This is the quantity of Quantity NUMBER Y 13,2
items being sold
prc This is the tax inclusive Unit Price NUMBER Y 18,2
price of the item
splyAmt This is the total amount of Supply Price NUMBER Y 18,2
the supplied item (qty *
prc)
dcRt This is the discount rate on Discount Rate NUMBER Y 5,2
the line item (Pass 0.0 if
not applicable)
dcAmt This is the discount amount Discount Amount NUMBER Y 18,2
on the line item (Pass 0.0 if
not applicable)
165
iplCatCd This represents the tax IPL Category Code VARCHAR Y 5
category code for IPL
purposes on the line item
tlCatCd This represents the tax TL Category Code VARCHAR Y 5
category code for TL
purposes on the line item
exciseCatCd This represents the tax Excise Category VARCHAR Y 5
category code for EXCISE Code
purposes on line item
taxblAmt This is the Tax Exclusive VAT Taxable NUMBER Y 18,2
Amount for VAT at line Amount
item level (Pass 0.0 when
not applicable)
vatCatCd This represents the tax VAT Category Code VARCHAR Y 5
category code for VAT
purposes on line item
iplTaxblAmt This is the Tax Exclusive IPL Taxable Amount NUMBER Y 18,2
Amount for IPL at line item
level (Pass 0.0 when not
applicable)
tlTaxblAmt This is the Tax Exclusive TL Taxable Amount NUMBER Y 18,2
Amount for TL at line item
level (Pass 0.0 when not
applicable)
exciseTaxblAmt This is the Tax Exclusive EXCISE Taxable NUMBER Y 18,2
Amount for EXCISE at line Amount
item level (Pass 0.0 when
not applicable)
taxAmt This is the VAT amount VAT Tax Amount NUMBER Y 18,2
charged on the line item
iplAmt This is the IPL amount IPL Tax Amount NUMBER Y 18,2
charged on the line item
tlAmt This is the TL amount TL Tax Amount NUMBER Y 18,2
charged on the line item
exciseTxAmt This is the EXCISE amount EXCISE Tax Amount NUMBER Y 18,2
charged on the line item
totAmt This is the total Tax Total Amount NUMBER Y 18,2
Inclusive Amount of the
line item
166
1","bcd":null,"pkgUnitCd":"BG","pkg":0,"qtyUnitCd":"KG","qty":1,"prc":100,"splyAmt":100,"dcRt":0,"dcAmt":0,"taxTyCd":"A","iplCatCd":null,"tlCatCd":null,"exciseCatCd":null,"taxblAmt":86.21,"vatCatCd":
"A","iplTaxblAmt":null,"tlTaxblAmt":null,"exciseTaxblAmt":null,"taxAmt":13.79,"iplAmt":null,"tlAmt":null,"exciseTxAmt":null,"totAmt":100}]}
TrnsPurchaseSaveRe Save Purchase Response resultCd This is the VSDC response code Result Code VARCHAR 3
s
resultMsg This is the VSDC response message Result Message VARCHAR 200
resultDt This is the response date Result Date VARCHAR 14
167
Select Stock Items Request
Object ID Object Name Attribute ID Attribute Description Attribute Name Data Type Required Data Length
StockMoveRe Select Stock tpin Taxpayer’s identification number as registered on core Tax TPIN VARCHAR Y 10
q Items Administration System TaxOnline
Request bhfId Taxpayer branch (store) location identifier Branch ID VARCHAR Y 3
lastReqDt This is the date depicting the last time an endpoint was called. By Last Request Date VARCHAR Y 14
default, this defaults to 20160523000000
JSON REQUEST SAMPLE
ImptItemSaveRes Update Item Response resultCd This is the VSDC response code Recult code VARCHAR 10
resultMsg This is the response message Result message VARCHAR 200
resultDt This is the VSDC response date Result date VARCHAR 14
sarNo Stock Accounting Record Number, Stored and released Number NUMBER 38
for the stock transaction or record.
ocrnDt This is the occurrence date Occurrence date VARCHAR 14
totTaxAmt This is the total tax amount Total tax amount VARCHAR (18,4)
168
itemCd This is the item code Item code VARCHAR 100
itemClsCd This is the item classification code Item classisifcation code VARCHAR 10
pkgUnitCd This is the packaging unit code Package unit code VARCHAR 5
vatCatCd This is the VAT category code Vat category code VARCHAR 5
169
Save Stock Items Request
Object ID Object Name Attribute ID Attribute Attribute Name Data Type Required Data Length Format
Description
170
stock transaction or
record.
totTaxblAmt The total amount of Total Supply Price
the stock transaction
NUMBER Y 18,4
or record subject to
taxation.
totTaxAmt The total amount of Total VAT
tax associated with
NUMBER Y 18,4
the stock transaction
or record.
totAmt The overall total Total Amount
amount of the stock
transaction or record, NUMBER Y 18,4
including taxes and
charges.
remark Remarks or notes Remark
associated with the
VARCHAR N 400
stock transaction or
record.
regrId The identifier of the Registrant Name
individual who
VARCHAR Y 60
registered or recorded
the stock transaction.
regrNm The name of the Registrant ID
individual who
VARCHAR Y 20
registered or recorded
the stock transaction.
modrNm The name of the Modifier Name
individual who
VARCHAR Y 60
modified or updated
the stock transaction.
modrId The identifier of the Modifier ID
individual who
VARCHAR Y 20
modified or updated
the stock transaction.
itemSeq Item Sequence Item Sequence
NUMBER Y 3
Number
itemCd This is the item code Item Code
as defined on your VARCHAR N 100
system
itemClsCd This is the UNSCP Item Class Code
code assigned to the VARCHAR Y 10
item
itemNm This is the item name Item Name
as defined on your VARCHAR Y 200
system
171
This is the Barcode Barcode
bcd VARCHAR N 20
assigned to line item
This is the packaging Package unit code See ‘6.4. Packaging Unit Code’
unit code assigned to
pkgUnitCd VARCHAR Y 5
the item as per
standard codes.
This is the number of Package Quantity
pkg package items being NUMBER Y 13,2
sold.
This is the assigned Unit Quantity Code See ‘6.5. Unit of Measure
single item unit of
qtyUnitCd measure code VARCHAR Y 5
assigned to the item
as per standard codes
This is the quantity of Unit Quantity
qty
the line items
itemExprDt This is the expiry date Item Expired Date yyyyMMdd
NUMBER Y 13,2
of the item
This is the unit price Unit Price
prc VARCHAR N 8
of the item
splyAmt This is the total Supply Amount
amount of the items
or services provided NUMBER Y 15,2
by the seller to the
buyer (qty * prc)
totDcAmt This is the total Discount Amount
discount amount NUMBER Y 18,4
applied on an invoice
iplCatCd This represents the tax IPL Category Code
category for IPL VARCHAR Y 5
purposes e.g. “IPL1”
tlCatCd This represents the tax TL Category Code
category for TL VARCHAR Y 5
purposes e.g.”TL”
exciseTxCatC This represents the tax Excise Category
category for Excise Code
VARCHAR Y 5
purposes e.g. “ECM”
or “EXEEG”
taxblAmt This is the Total tax Taxable Amount
exclusive amount for NUMBER Y 18,4
the line item
This represents the tax VAT Category
vatCatCd category code for VAT Code VARCHAR Y 5
purposes.
taxAmt This is the tax amount Tax Amount
NUMBER Y 18,4
of the item
172
iplAmt This is the IPL tax IPL Amount
NUMBER Y 18,4
amount
tlAmt This is the TL tax TL Amount
NUMBER Y 18,4
amount
exciseTxAmt This is the excise tax Excise Amount
NUMBER Y 18,4
amount
totAmt This is the total amount Total Amount
NUMBER Y 18,4
JSON REQUEST SAMPLE
{ "tpin": "1000000000", "bhfId": "000", "sarNo": 1, "orgSarNo": 0, "regTyCd": "M", "custTpin": null, "custNm": null, "custBhfId": null, "sarTyCd": "02", "ocrnDt": "20240509",
"totItemCnt": 1, "totTaxblAmt": 86.2069, "totTaxAmt": 13.7931, "totAmt": 100, "remark": null, "regrId": "Admin", "regrNm": "Admin", "modrNm": "Admin", "modrId": "Admin",
"itemList": [{"itemSeq": 1, "itemCd": "20044", "itemClsCd": "50102517", "itemNm": "Soupu dedede", "pkgUnitCd": "BA", "qtyUnitCd": "BE", "qty": 1, "prc": 100, "splyAmt": 100, "taxblAmt": 86.21,
"vatCatCd": "A", "taxAmt": 13.79, "totAmt": 100} ]}
StockIOSaveRes Save Stock In/Out Response resultCd This is the VSDC response code Result Code VARCHAR 3
resultMsg This is the response message Result Message VARCHAR 200
resultDt This is the response date Result Date VARCHAR 14
173
Save Stock Master Request
Attribute Description
Object ID Object Name Attribute ID Attribute Name Data Type Required Data Length Format
{"tpin":"1000000000","bhfId":"000","regrId":"Admin","regrNm":"Admin","modrNm":"Admin","modrId":"Admin","stockItemList":[{"itemCd":"P10007","rsdQty":34},{"itemCd":"P10005","rsdQty":34},{"itemC
d":"P10006","rsdQty":34}]}
StockMstSaveRes Save Stock Master Response resultCd This is the VSDC response code Result Code VARCHAR 3
resultMsg This is the response message Result Message VARCHAR 200
resultDt This is the response date Result Date VARCHAR 14
174
6. Code Definition
6.1. Tax Type
Code Classification Name
Tax Type
Code Code Name Code Description remark
Category applies to products and services which attract VAT at
VAT A Standard Rated 16% 16% by nature
Minimum Taxable Value (MTV) 16% is charged on the Retail Price recommended by manufacturer
B of MTV goods.
Product Type
Code Code Name Code Description remark
175
6.3. Countries code
Code Classification Code Classification Name
05 Nation
Code Sort Order Code Name Code Description remark
AI 5 ANGUILLA ANGUILLA
AL 6 ALBANIA ALBANIA
AM 7 ARMENIA ARMENIA
NETHERLANDS
AN 8 ANTILLES NETHERLANDS ANTILLES
AO 9 ANGOLA ANGOLA
AQ 10 ANTARCTICA ANTARCTICA
AR 11 ARGENTINA ARGENTINA
AS 12 AMERICAN SAMOA AMERICAN SAMOA
176
Code Classification Code Classification Name
05 Nation
Code Sort Order Code Name Code Description remark
AT 13 AUSTRIA AUSTRIA
AU 14 AUSTRALIA AUSTRALIA
AW 15 ARUBA ARUBA
AX 16 ALAND ISLANDS ALAND ISLANDS
AZ 17 AZERBAIJAN AZERBAIJAN
BOSNIA AND
BA 18 HERZEGOVINA BOSNIA AND HERZEGOVINA
BB 19 BARBADOS BARBADOS
BD 20 BANGLADESH BANGLADESH
BE 21 BELGIUM BELGIUM
BF 22 BURKINA FASO BURKINA FASO
BG 23 BULGARIA BULGARIA
BH 24 BAHRAIN BAHRAIN
BI 25 BURUNDI BURUNDI
BJ 26 BENIN BENIN
BM 27 BERMUDA BERMUDA
BRUNEI
BN 28 DARUSSALAM BRUNEI DARUSSALAM
BO 29 BOLIVIA BOLIVIA
BR 30 BRAZIL BRAZIL
BS 31 BAHAMAS BAHAMAS
BT 32 BHUTAN BHUTAN
BV 33 BOUVET ISLAND BOUVET ISLAND
BW 34 BOTSWANA BOTSWANA
BY 35 BELARUS BELARUS
BZ 36 BELIZE BELIZE
CA 37 CANADA CANADA
COCOS (KEELING)
CC 38 COCOS (KEELING) ISLANDS
ISLANDS
CONGO,
CD 39 DEMOCRATIC CONGO, DEMOCRATIC REPUBLIC
REPUBLIC
CENTRAL AFRICAN
CF 40 REPUBLIC CENTRAL AFRICAN REPUBLIC
CG 41 CONGO CONGO
CH 42 SWITZERLAND SWITZERLAND
COTE D'IVOIRE
CI 43 COTE D'IVOIRE (IVORY COAST)
(IVORY
COAST)
CK 44 COOK ISLANDS COOK ISLANDS
CL 45 CHILE CHILE
CM 46 CAMEROON CAMEROON
CN 47 CHINA CHINA
CO 48 COLOMBIA COLOMBIA
CR 49 COSTA RICA COSTA RICA
CZECHOSLOVAKIA
CS 50 CZECHOSLOVAKIA (FORMER)
(FORMER)
CU 51 CUBA CUBA
177
CV 52 CAPE VERDE CAPE VERDE
CX 53 CHRISTMAS ISLAND CHRISTMAS ISLAND
CY 54 CYPRUS CYPRUS
CZ 55 CZECH REPUBLIC CZECH REPUBLIC
05 Nation
Code Sort Order Code Name Code Description remark
DE 56 GERMANY GERMANY
DJ 57 DJIBOUTI DJIBOUTI
DK 58 DENMARK DENMARK
DM 59 DOMINICA DOMINICA
DOMINICAN
DO 60 REPUBLIC DOMINICAN REPUBLIC
DZ 61 ALGERIA ALGERIA
EC 62 ECUADOR ECUADOR
EE 63 ESTONIA ESTONIA
EG 64 EGYPT EGYPT
EH 65 WESTERN SAHARA WESTERN SAHARA
ER 66 ERITREA ERITREA
ES 67 SPAIN SPAIN
ET 68 ETHIOPIA ETHIOPIA
EU 69 EUROPEAN UNION EUROPEAN UNION
FI 70 FINLAND FINLAND
FJ 71 FIJI FIJI
FALKLAND ISLANDS
FK 72 FALKLAND ISLANDS (MALVINAS)
(MALVINAS)
FM 73 MICRONESIA MICRONESIA
FO 74 FAROE ISLANDS FAROE ISLANDS
FR 75 FRANCE FRANCE
FRANCE,
FX 76 METROPOLITA FRANCE, METROPOLITAN
N
GA 77 GABON GABON
GB 78 GREAT BRITAIN (UK) GREAT BRITAIN (UK)
GD 79 GRENADA GRENADA
GE 80 GEORGIA GEORGIA
GF 81 FRENCH GUIANA FRENCH GUIANA
GG 82 GUERNSEY GUERNSEY
GH 83 GHANA GHANA
GI 84 GIBRALTAR GIBRALTAR
GL 85 GREENLAND GREENLAND
GM 86 GAMBIA GAMBIA
GN 87 GUINEA GUINEA
GP 88 GUADELOUPE GUADELOUPE
GQ 89 EQUATORIAL GUINEA EQUATORIAL GUINEA
GR 90 GREECE GREECE
S. GEORGIA AND
GS 91 S. GEORGIA AND S. SANDWICH ISLS.
S. SANDWICH
ISLS.
GT 92 GUATEMALA GUATEMALA
178
GU 93 GUAM GUAM
GW 94 GUINEA BISSAU GUINEA BISSAU
GY 95 GUYANA GUYANA
HK 96 HONG KONG HONG KONG
HEARD AND
HM 97 HEARD AND MCDONALD ISLANDS
MCDONALD ISLANDS
HN 98 HONDURAS HONDURAS
HR 99 CROATIA (HRVATSKA) CROATIA (HRVATSKA)
05 Nation
Code Sort Order Code Name Code Description remark
179
LT 134 LITHUANIA LITHUANIA
LU 135 LUXEMBOURG LUXEMBOURG
LV 136 LATVIA LATVIA
LY 137 LIBYA LIBYA
MA 138 MOROCCO MOROCCO
MC 139 MONACO MONACO
MD 140 MOLDOVA MOLDOVA
ME 141 MONTENEGRO MONTENEGRO
MG 142 MADAGASCAR MADAGASCAR
MH 143 MARSHALL ISLANDS MARSHALL ISLANDS
F.Y.R.O.M.
MK 144 (MACEDONIA) F.Y.R.O.M. (MACEDONIA)
05 Nation
Code Sort Order Code Name Code Description remark
180
PE 175 PERU PERU
PF 176 FRENCH POLYNESIA FRENCH POLYNESIA
PG 177 PAPUA NEW GUINEA PAPUA NEW GUINEA
PH 178 PHILIPPINES PHILIPPINES
PK 179 PAKISTAN PAKISTAN
PL 180 POLAND POLAND
ST. PIERRE AND
PM 181 ST. PIERRE AND MIQUELON
MIQUELON
PN 182 PITCAIRN PITCAIRN
PR 183 PUERTO RICO PUERTO RICO
PALESTINIAN
PS 184 TERRITORY, PALESTINIAN TERRITORY, OCCUPIED
OCCUPIED
PT 185 PORTUGAL PORTUGAL
PW 186 PALAU PALAU
PY 187 PARAGUAY PARAGUAY
QA 188 QATAR QATAR
05 Nation
Code Sort Order Code Name Code Description remark
181
TD 215 CHAD CHAD
FRENCH SOUTHERN
TF 216 FRENCH SOUTHERN TERRITORIES
TERRITORIES
TG 217 TOGO TOGO
TH 218 THAILAND THAILAND
TJ 219 TAJIKISTAN TAJIKISTAN
TK 220 TOKELAU TOKELAU
TM 221 TURKMENISTAN TURKMENISTAN
TN 222 TUNISIA TUNISIA
TO 223 TONGA TONGA
TP 224 EAST TIMOR EAST TIMOR
TR 225 TURKEY TURKEY
TRINIDAD AND
TT 226 TRINIDAD AND TOBAGO
TOBAGO
TV 227 TUVALU TUVALU
TW 228 TAIWAN TAIWAN
TZ 229 TANZANIA TANZANIA
UA 230 UKRAINE UKRAINE
UG 231 UGANDA UGANDA
UK 232 UNITED KINGDOM UNITED KINGDOM
05 Nation
Code Sort Order Code Name Code Description remark
US MINOR OUTLYING
UM 233 US MINOR OUTLYING ISLANDS
ISLANDS
US 234 UNITED STATES UNITED STATES
UY 235 URUGUAY URUGUAY
UZ 236 UZBEKISTAN UZBEKISTAN
VATICAN CITY STATE
VA 237 VATICAN CITY STATE (HOLY SEE)
(HOLY SEE)
SAINT VINCENT &
VC 238 THE GRENADINES SAINT VINCENT & THE GRENADINES
182
6.4. Packaging Unit
Packaging Unit
Code Code Name Code Description remark
CJ Coffin Coffin
CL Coil Coil
Wooden Box, Wooden
CR Wooden Box, Wooden Case
Case
CS Cassette Cassette
CT Carton Carton
CTN Container Container
CY Cylinder Cylinder
DR Drum Drum
GT Extra Countable Item Extra Countable Item
HH Hand Baggage Hand Baggage
IZ Ingots Ingots
JR Jar Jar
183
JU Jug Jug
JY Jerry CAN Cylindrical Jerry CAN Cylindrical
KZ Canester Canester
Logs, in
LZ bundle/bunch/truss Logs, in bundle/bunch/truss
NT Net Net
Non-Exterior Packaging
OU Unit Non-Exterior Packaging Unit
PD Poddon Poddon
PG Plate Plate
PI Pipe Pipe
PO Pilot Pilot
PU Traypack Traypack
RL Reel Reel
RO Roll Roll
Rods, in
RZ bundle/bunch/truss Rods, in bundle/bunch/truss
SK Skeletoncase Skeletoncase
TY Tank, cylindrical Tank, cylindrical
Bulk,gas(at 1031 mbar 15
VG Bulk,gas(at 1031 mbar 15 oC)
oC)
Bulk,liquid(at normal
VL temperature/pressure) Bulk,liquid(at normal temperature/pressure)
Bulk, solid, large
VO Bulk, solid, large particles("nodules")
particles(nodules)
Bulk, gas (liquefied at
VQ abnormal Bulk, gas(liquefied at abnormal temperature/pressure)
temperature/pressure)
Bulk, solid, granular
VR particles(grains) Bulk, solid, granular particles("grains")
Packaging Unit
Code Code Name Code Description remark
184
ECPO Econo Poc Sell Refers to an economical or budget-friendly pocket for
selling items.
Green Lugs
G/L Lugs or containers that are green in color.
Sock
SOCK A fabric covering often used for protection or packaging.
185
CEL Cell Cell
CMT centimetre centimetre
CR CARAT CARAT
DR Drum Drum
DZ Dozen Dozen
GLL Gallon Gallon
GRM Gram Gram
GRO Gross Gross
KG Kilo-Gramme Kilo-Gramme
KTM kilometre kilometre
KWT kilowatt kilowatt
L Litre Litre
LBR pound pound
LK link link
LTR Litre Litre
M Metre Metre
M2 Square Metre Square Metre
M3 Cubic Metre Cubic Metre
MGM milligram milligram
MTR metre metre
megawatt hour
MWT (1000 kW.h) megawatt hour (1000 kW.h)
NO Number Number
NX part per thousand part per thousand
PA packet packet
PG plate plate
PR pair pair
RL reel reel
RO roll roll
SET set set
ST sheet sheet
TNE tonne (metric ton) tonne (metric ton)
TU tube tube
U Pieces/item [Number] Pieces/item [Number]
YRD yard yard
P1 Pack Pack
PL Pallet Pallet
Ft Feet Feet
MM Millimetre Millimetre
In Inches Inches
Oz Ounce Ounce
YR Year Year
M Month Month
Wk Week Week
D Day Day
hr Hour Hour
ha Hectare Hectare
186
yd2 Square yards Square yards
ft2 Square feet Square feet
cm2 Square centimetre Square centimetre
m2 Square metre Square metre
pt Pints Pints
qt Quarts Quarts
mm Millilitre Millilitre
2X Meter/Minute Meter/Minute
4G Microliter Microliter
4O Microfarad Microfarad
4T Pikofarad Pikofarad
A Ampere Ampere
A87 Gigaohm Gigaohm
A93 Gram/Cubic meter Gram/Cubic meter
ACR Acre Acre
B34 Kilogram/cubic Kilogram/cubic decimeter
decimeter
B45 Kilomol Kilomol
B47 Kilonewton Kilonewton
B73 Meganewton Meganewton
B75 Megohm Megohm
B78 Megavolt Megavolt
B84 Microampere Microampere
BAG Bag Bag
BAR bar bar
BOT Bottle Bottle
BQK Becquerel/kilogram Becquerel/kilogram
C10 Millifarad Millifarad
C36 Mol per cubic meter Mol per cubic meter
C38 Mol per liter Mol per liter
C39 Nanoampere Nanoampere
C3S Cubic Cubic centimeter/second
centimeter/second
C41 Nanofarad Nanofarad
C56 Newton/Square Newton/Square millimeter
millimeter
CCM Cubic centimeter Cubic centimeter
CD Candela Candela
CDM Cubic decimeter Cubic decimeter
EA Each Indicates individual units or items.
6.6. Currency
187
USD United States Dollar United States Dollar
ZAR South African Rand South African Rand
GBP Pound Sterling Pound Sterling
CNY Chinese Yuan Chinese Yuan
EUR Euro Euro
188
Transaction progress
Code Code Name Code Description remark
02 Approved Approved
05 Refunded Refunded
06 Transferred Transferred
04 Rejected Rejected
P Purchase Purchase
R Refund after Purchase Refund after Purchase
189
892 Client An error occurred while Request Header data is created.
893 Client An error occurred while Request Body data is created.
894 Client An error regarding server communication occurred.
895 Client An error regarding unallowed Request Method occurred.
896 Client An error regarding Request Status occurred.
899 Client An error regarding Client occurred.
900 Server There is no Header information
901 Server It is not valid device
902 Server This device is installed
903 Server Only VSDC device can be verified.
910 Server Request parameter error
911 Server There is no request full text
912 Server There is a request Method error.
913 Client Code value error among request parameters.
921 Server Sales or sales invoice data which is declared cannot be received.
922 Server Sales invoice data can be received after receiving the sales data.
924 Client CIS Invoice number already exists.
930 Server The specified invoice could not be found. Please verify [orgInvcNo] and try again
931 Server The credit note amount exceeds the original invoice amount for item:
932 Server The item specified in the credit note does not exist on the original invoice. [itemCd]
934 Server The quantity specified in the credit note exceeds the quantity in the original invoice.
935 Server The credit note contains information that does not match the original invoice data
990 Server The maximum number of views are exceeded
991 Server There is an error during registration
01 Import Incoming-Import
02 Purchase Incoming- Purchase
03 Return Incoming- Return
04 Stock Movement Incoming- Stock Movement
05 Processing Incoming- Processing
06 Adjustment Incoming- Adjustment
11 Sale Outgoing- Sale
12 Return Outgoing- Return
190
Code Code Name Code Description remark
Where the CIS has no unique identifiers for a registered item, the below formula should be used to generate
item code.
191
02 Wrong invoice amount
03 Omitted item
04 Other [specify]
192
MWI MWINILUNGA
NDA NDOLA AIRPORT
NDO NDOLA PORT OFFICE
NGE NCHELENGE
NKO NAKONDE
NYA NYALA
SKA SAKANYA
SOL SOLWEZI
SVO SIAVONGA
SZE SINAZONGWE
VFL VICTORIA FALLS
ZOM ZOMBE
Destination Incortem
11 Other
Departure Incortem
02 Other
193
Code Code Name Code description Remark
01 Pending Acquittal
02 Acquitted
03 Cancelled
04 Reversed
6.23. Banks
20 customer type
Code Sort Order Code Name Code Description remark
01 1 Resident
02 2 Non resident
Transporter
03 3
22 travel purpose
194
Code Sort Order Code Name Code Description remark
01 1 Business
02 2 Holiday Travels
Other (Please specify)
03 3
195