Sales: Data Attributes

Peruse further details of attributes filled-in in Sales endpoint

A sale is an event where an item is exchanged for currency.

A credit note is the reversal of a sale.

A debit note is an adjustment to an invoice already processed. This could be to either increase or reduce the price

📘

Sales and Credit notes share the same API endpoint

The attributes for sales and credit notes are mostly the same with the following difference:

  • The Receipt Type code of a sale is "S" , a debit note is "D" and that of a credit note is "R"
  • The original_invoice_number is required in a credit note to tie it to the original sale to which the credit note is being created against.

Attributes table

Attribute IDRequiredData TypeDescription - Sample (JSON)
sale_id (id)(For GET (single sale), PUT and DELETE)stringsale_id represents the UUID (Sale ID) as generated by Digitax- "PFHol0bfkZ"
trader_invoice_numberYesstringRepresents the Trader Invoice Number - "12345678901"
original_invoice_numberOnly for credit notestringRepresents the Trader Invoice Number used during the sale that this credit note seeks to reverse - "12345678901"
invoice_numberYesnumberRepresents the Invoice Number - 1234567890
receipt_type_codeYesstringRepresents the Receipt Type Code. See Receipt Type Codes table for context - "S"
payment_type_codeNostringRepresents the Payment Type Code. See Payment Type Codes table - "01"
invoice_status_codeYesstringRepresents the Invoice Status Code. See Invoice Status Codes table - "01"
itemsYesarray of objectsRepresents an Array of Item Objects

Receipt Type Codes

CodeCode NameCode Description
SSalesSales
RCredit NoteCredit Note (after making a sale)
DDebit NoteDebit Note (after making a sale)

Payment Type Codes

CodeCode NameCode Description
01CASHCASH
02CREDITCREDIT
03CASH/CREDITCASH/CREDIT
04BANK CHECKBANK CHECK PAYMENT
05DEBIT&CREDIT CARDPAYMENT USING CARD
06MOBILE MONEYANY TRANSACTION USING MOBILE MONEY SYSTEM
07OTHEROTHER MEANS OF PAYMENT

Invoice Status Codes

CodeCode NameCode Description
01Wait for ApprovalWait for Approval
02ApprovedApproved
03Cancel RequestedCancel Requested
04CanceledCanceled
05"Credit Note Generated"Credit Note Generated
06TransferredTransferred

Currency Code

CodeCode Name
ZMWZambian kwacha
USDUnited States dollar
ZARSouth African rand
GBPPound sterling
CNYChinese yuan
EUREuro

Countries Code

CodeCode Name
ACASCENSION ISLAND
ADANDOZRA
AEUNITED ARAB EMIRATES
AGANTIGUAAND BARBUDA
AIANGUILLA
ALALBANIA
AMARMENIA
ANNETHERLANDS ANTILLES
AOANGOLA
AQANTARCTICA
ARARGENTINA
ASAMERICAN SAMOA
ZMZAMBIA

Refund Reason Code

CodeCode Name
01WRONG PRODUCT
02WRONG PRICE
03DAMAGED GOODS
04WRONG CUSTOMER INVOICED
05DUPLICATED INVOICE
06EXCESS SUPPLIES
07Other

Debit Reason Code

CodeCode Name
01Wrong quantity invoiced
02Wrong invoice amount
03Omitted item
04Other [specify]