Purchases
This section deals with requests for getting a list of business purchases or specific purchases, getting a list of business purchase items, sending a purchase to eTIMS and creating eTIMS business purchases.
Get specific purchase
Description
This endpoint retrieves the details of a specific purchase identified by the unique ID in the URL.
Parameters
Path parameter
- id: this is the id of the etims purchase
path Parameters
idetims purchase id
Headers
AcceptReturns response in json format
Get specific purchase › Responses
Get a list of business purchase items from eTIMS
Description
The endpoint retrieves a list of purchase items from the eTIMS system.
Optional query parameters allow filtering results.
query Parameters
purchase_invoiceFilter purchase items by purchase invoice ID
Headers
AcceptReturns response in JSON format
Get a list of business purchase items from eTIMS › Responses
OK
Map a purchase item to a product
Description
Links (maps) a specific ETIMS purchase item to an existing product. .
Parameters
Path parameter
- id (integer): The ID of the ETIMS purchase item to be linked.
Header parameter
- X-Workstation (string): The workstation ID from which the request is made. Required for audit and tracking.
Body parameter
- product (string, UUID): The unique identifier of the product you want to link to the purchase item.
Example
Code
path Parameters
purchase_item_idID of the ETIMS purchase item to map
Headers
X-Workstation[REQUIRED] Workstation ID from which the mapping is performed
Map a purchase item to a product › Request Body
productThe UUID of the product to map to the purchase item
Map a purchase item to a product › Responses
Mapping successful. Returns the updated purchase item details.
idis_mappedproduct_nameproduct_codeitem_sequence_numberitem_codeitem_classification_codeitem_namebarcodepackage_unit_codepackagequantity_unit_codequantityunit_pricesupply_amountdiscount_ratediscount_amounttaxation_type_codetaxable_amounttax_amounttotal_amountpurchase_invoiceorganisationbranchproductSend purchase to eTIMS
Description
Sends a specific ETIMS purchase to the ETIMS system, allowing you to trigger either processing or cancellation of the transaction.
Parameters
Path parameter
- id (integer): The ID of the ETIMS purchase invoice to be sent.
Header parameters
- X-Workstation (string): The workstation ID from which the request is made. Required for audit and tracking.
- Accept (string): Specifies the response format. Use
application/json.
Body parameter
- purchase_transaction_status (string): The action to perform. Must be either:
PROCESS– to process and send the purchase to ETIMS.CANCELLED– to cancel the purchase transaction in ETIMS.
Example
Code
path Parameters
id(Required) A unique identifier for the ETIMS purchase invoice.
Headers
X-Workstation[REQUIRED] Workstation ID
AcceptResponse format. Use application/json.
Send purchase to eTIMS › Request Body
purchase_transaction_statusThe action to perform: PROCESS to send the purchase, or CANCELLED to cancel it.
Send purchase to eTIMS › Responses
Request successful.

