Skip to content
Axis Solutions ZMB
YouTube

Save Purchases

The SavePurchaseAsync() method is used to approve or reject purchases made by a business from suppliers.
This ensures that only valid and authorized purchase records are reflected in the inventory.
Approved purchases must then be processed into stock using the appropriate inventory APIs.

SavePurchaseAsync() method

This method is used to submit and confirm purchase records.
The request includes supplier details, purchase type, payment details, item list, and tax breakdowns.

Request Parameters

ParameterTypeDescription
TPINstringTaxpayer Identification Number of the business
BhfIdstringBranch ID of the taxpayer
CisInvcNostringInternal purchase invoice number
OrgInvcNostringOriginal invoice number (nullable)
SupplrTpinstringSupplier’s TPIN
SupplrNmstringSupplier’s business name
SupplrBhfIdstringSupplier branch ID
SupplrInvcNostringSupplier invoice number
RegTyCdstringRegistration type code
PchsTyCdstringPurchase type code
RcptTyCdstringReceipt type code
PmtTyCdstringPayment type code
PchsSttsCdstringPurchase status code
CfmDtstringConfirmation date (format: yyyyMMddHHmmss)
PchsDtstringPurchase date (format: yyyyMMdd)
TotItemCntintTotal number of items
TotTaxblAmtdecimalTotal taxable amount
TotTaxAmtdecimalTotal tax amount
TotAmtdecimalTotal purchase amount (tax inclusive)
RemarkstringNotes or description of the purchase
ItemListarrayList of purchase item details

Each ItemList entry includes:

  • ItemSeq: Item sequence number
  • ItemCd: Item code
  • ItemClsCd: Item classification code (UNSPSC)
  • ItemNm: Item name
  • Qty: Quantity purchased
  • Prc: Unit price
  • TaxblAmt: Taxable amount
  • TaxAmt: Tax amount
  • VatCatCd: VAT category code

Usage Example

Device initialise

Response


{
  "success": true,
  "code": "000",
  "message": "Operation completed successfully",
  "timestamp": "2025-09-19 16:33:36",
  "data": null,
  "error": null
}