Public
Documentation Settings

ZRA SMART INVOICE API VER ISHYIGA 1.4 INGWE

ZRA SMART INVOICE API Documentation VER ISHYIGA 1.4 INGWE , API for SMART INVOICE INTEGRATION DOCUMENTATION VCIS/VSDC

This document describes the API specification to integrate with Electronic Invoicing Systems (Smart invoice)

Overview
The following specific requirements are for the systems to communicate with Smart invoice VCIS, the Certified Invoicing System to be used together with a Virtual Sales Data Controller (VSDC).

DATA FLOW DIAGRAM : https://wirepickpay.com/DataFlow.php

This Api have an Authentication

"COMPANY_TPIN": "1004097050",
"COMPANY_NAMES": "WIREPICK INC ",
"COMPANY_SECURITY_KEY": "AQPBBLMHBBKGGGC3FVVOAGLDWL32GGLF"

SMART INVOICE API Receive data in two ways

1.XML FORMAT
2.JSON FORMAT.

TAX TYPE & TAX CODE MAPPING

ZRA TAX CODESYSTEM TAX CODEDESCRIPTIONTAX RATE
AAStandard Rated(16%)16
BBMinimum Taxable Value (MTV-16%)16
C1CC1 (Exports(0%))0
C2DC2 (Zero-rating LPO)0
C3EC3 (Zero-rated by nature)0
DFExempt0

ERROR CODE LIST

CODEERRORACCEPTED
B05CLIENT NAME MISSING<2 char
B051TAX NUMBER FORMAT NOT ACCEPTED!EMPTY or !10
B06CLIENT NAME DIFFERENT FOR PREVIOUS ONEPREVIOUS TPIN NUMBER
B07CODE MISSINGnull
B09DESCRIPTION MISSINGnull
B10QUANTITY MISSING>0
B11QUANTITY IS NEGATIVE<0
B12QUANTITY NOT A NUMBERcharacter
B13TAX_RATE NOT ACCEPTED!0 or !16
B16INVOICE TOTAL AMOUNT DIFFERENT TO GROSS_AMOUNT>0.05
B18INVOICE TOTAL TAXES AMOUNT DIFFERENT TAXES>0.05
B19INVOICE REFERENCE MISSINGnull
B20INVOICE REFERENCE ALREADY SENTTRUE
B21NEGATIVE SALE PRICE NOT ALLOWED<=0
B22ZERO TOTAL INVOICE NOT SUPPORTED<=0
R1REFUND TOTAL AMOUNT DIFFERENT TO ORIGINAL INVOICE AMOUNT
R2REFUND TOTAL VAT AMOUNT DIFFERENT TO ORIGINAL INVOICE VAT AMOUNT
R3REFUND ITEM MISSING , ITEM NOT FOUND
R4REFUND ITEM DIFFERENT FROM INVOICE ITEM , CHECK ITEM NAME AND CODE
R5MISSING REFUND_IDREFUND_ID
F01FLAG NUMBER FORMATINVOICE, REFUND, PROFORMA, PARTIAL REFUND, INVENTORY, ITEM
F02INVOICE ALREADY REFUNDED
B70WRONG CURRENCYZMW when EXCHANGE_RATE is 1
IS100INTERNAL ERROR
B15CHECK NUMBER OF ITEMS WITH EXPECTED SIZE
B27TAXRATE DIFFERENT FROM PREVIOUS ONE
B061ITEM CODE DIFFERENT FOR PREVIOUS ONE
B28CLIENT TAX NUMBER DIFFERENT FROM PREVIOUS ONE
B29CLIENT TAX NUMBER IS FOR ANOTHER CLIENT
B31LEVY A AMOUNT ARE DIFFERENT
B32LEVY B AMOUNT ARE DIFFERENT
B33LEVY C AMOUNT ARE DIFFERENT
B34TOTAL LEVY AMOUNT ARE DIFFERENT
B35LEVY D AMOUNT ARE DIFFERENT
B01INCORRECT CLIENT TPIN PIN
A01COMPANY_NAMES: COMPANY_TPIN: COMPANY_SECURITY_KEY: DOES NOT EXISTS
A02EMPTY LIST
A03REFUND BYPASS( EXCEEDING ORGINAL INVOICE AMOUNT)
A04UNKNOWN FLAG NAMEINVOICE,REFUND
A05MISSING ORIGINAL INVOICE NUMBER
A06INVALID UNITY PRICE
A07INVALID DISCOUNT
A08INVALID TAXCODEA,B,C1,C2,C3
,D
A09INVALID TAXRATE0 OR 16
A12INCOME MSG FAILED TO BE LOGGEDSEND INVOICE FIRST
A10NOT ENGINE SIZE FOUND (CONTACT AUTHORITY TECH TEAM)ENGINE SHOULD HAVE SIZE
A11ITEM COUNT NOT A NUMBER>0
A13EVAT NOT ABLE TO REACH ITS DATABASE
A14ENCOUTED ITEMS SYS ERROR CONTACT TECH TEAM
D01INVOICE ALREADY EXIST
D02MISSING ITEM NAME
D03MISSING ITEM CODE
D07MISSING ITEM ORIGIN COUNTRY CODE08Default (ZMW) FOR ZAMBIA
D08MISSING PACKAGING UNIT
D09MISSING QUANTITY UNIT
D10MISSING ITEM CATEGORY NAME
T03TPIN NUMBER NOT FOUNDWhen the requestED TPIN NUMBER is not found in synchronized ZRA data
T04TPIN STOPPED
T05TPIN PROTECTED
T06INCORRECT CLIENT TPIN
N01ITEM NOT FOUND
N02ITEM NOT VALIDATED, PENDING
D04NO RESPONSE FOUND SEND INVOICE FIRSTSEND INVOICE
D05INVOICE UNDER STAMPINGPULL RESPONSE AFTER 3 SECOND
D06STAMPING ENGINE IS DOWNCHECK IF SDK OR SERVER MACHINE IS RUNNING
P01PRODUCT ALREADY EXIST
H01WRONG COMMANDID REQUEST
H02WRONG TIME FORMAT
H03INVENTORY EXISTS
H04INVENTORY NOT RECEIVED

INVOICE

Invoice
Invoce (Normal Sale) refers to a receipt that shall be produced and offered to the client. It is any receipt produced while the Electronic Billing Machine is in its normal registration mode, used to register sales of goods and/or services, including corrections and discounts.

The following is an example of how data to be sent should be structured.