Add sale with item information

Creates a sale using item details supplied directly in the request.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The date of the sale (YYYY-MM-DD). Dates after the current UTC date are rejected.

string

The KRA-approved tax identification number of the customer.

string

The customer's name. If only the customer_name is provided and the customer_tin is omitted, a given sale will not have any customer details

string

The DigiTax-generated customer ID. If both the customer_id and customer_tin+customer_name are provided, the customer_id is prioritised.

string
required

The invoice reference from your system. It must be unique across sales and credit notes in the business. References from failed transactions can be reused.

string
deprecated

This field is deprecated and will be ignored if provided. The receipt type code is populated automatically based on invoice type

string
required

The code identifying the payment method used for the sale.

string
required

The invoice status code. Refer to the Invoice Status Codes table for the code values.

string

Optional URL where DigiTax sends an HTTP POST callback with event sale.sync when the sale's eTIMS synchronization succeeds or fails. See Callback URLs for the payload.

invoice_auth
object
deprecated

This field has been replaced with dedicated endpoints for reverse invoicing seen HERE.

string

Allows for additional details to be captured in the invoice. This is not transmitted to KRA.

boolean

Indicates if the sale is tax-exempt. The customer's PIN may be omitted for tax-exempt sales.

items
array of objects
required

The items included in the sale, with their details supplied directly in the request.

items*
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json