Create a sale.

Creates a sale using the supplied invoice details, customer information, and sale items.

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 customer_name is provided without customer_tin, the sale will not include 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
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. Must use HTTP(S), include a host, and contain no credentials or fragment. Literal localhost and private IP addresses are rejected; DNS hostnames are not resolved by this check.

string

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

boolean

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

double

The rate used to calculate the service charge applied to the sale.

items
array of objects
required

The items included in the sale, with their DigiTax item IDs, quantities, and amounts.

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