Sales
This section covers signing sales invoices (single and bulk), signing sales credit notes, retrieving the signed credit note status, and fetching sales transactions from eTIMS.
Sign sales invoice
Levies (e.g. catering levy): for a line that attracts a levy, add a levies field set to the levy's name, e.g. "levies": "Catering Levy" (see the second item in the example). It is charged on top of VAT and is not reported to KRA as tax.
Example — 1,000 (VAT-incl.) × 5 at 16% VAT + 2% levy:
| Component | Calculation | Amount |
|---|---|---|
| Net | 5,000 ÷ 1.18 | 4,237.29 |
| Catering levy | 4,237.29 × 2% | 84.75 |
| VAT (to KRA) | 5,000 − 4,237.29 − 84.75 | 677.96 |
| Total | 5,000.00 |
Headers
X-Workstation[REQUIRED] Workstation ID
AcceptReturns response in json format
Sign sales invoice › Request Body
reference_numbercustomer_pinpartner_namesales_typecustomer_referenceSign sales invoice › Responses
Bulk Sign Sales Invoices
Submits a batch of sales invoices to be signed in a single request. The signing is processed asynchronously and the optional callback_url will be notified with the outcome when the job completes.
Headers
X-Workstation[REQUIRED] Workstation ID
AcceptReturns response in json format
Bulk Sign Sales Invoices › Request Body
List of invoices to sign in bulk
callback_urlOptional URL that will be called once the bulk signing job completes
Bulk Sign Sales Invoices › Responses
Bulk signing request accepted; processing continues asynchronously and results are delivered to callback_url when available.
messageSign sales credit note
Headers
AcceptX-WorkstationSign sales credit note › Request Body
invoice_referencerefund_reasonamountSign sales credit note › Responses
Get Signed Credit Note Status
Description
Retrieves the SCU (Sales Control Unit) response for a signed credit note — i.e. the eTIMS signing status and control details returned by KRA after the credit note was signed.
query Parameters
invoice_referenceformatHeaders
X-WorkstationGet Signed Credit Note Status › Responses
Signed credit note status returned
invoice_referenceFetch sales transactions
Description
Fetches sales transactions from KRA (eTIMS) for the user's branch. Use the optional date query parameters to bound the results.
Query parameters
| Priority | Key | Type | Description |
|---|---|---|---|
| Optional | start_date | date (YYYY-MM-DD) | Inclusive lower bound. Defaults to today when omitted. |
| Optional | end_date | date (YYYY-MM-DD) | Inclusive upper bound. |
Required
- X-Workstation - [REQUIRED] The workstation ID of the user.
query Parameters
start_dateInclusive lower bound (YYYY-MM-DD). Defaults to today when omitted.
end_dateInclusive upper bound (YYYY-MM-DD).
Headers
AcceptReturns the response in JSON format
X-Workstation[REQUIRED] Workstation ID
Fetch sales transactions › Responses
OK
invoice_numberreferencetypestatussale_datecustomer_pincustomer_nametotal_amounttotal_tax_amountreceipt_numberreceipt_signature
