Get Transaction Details

This API allows you to fetch the details of a specific transaction based on the transaction id.

📘

Notes

  • Either transaction number or id is mandatory.
  • Only the main transaction level amount, gross amount and discount values are displayed in transaction currency (the currency in which the transaction was made) and the rest are displayed in the base currency (default currency set at organisation level).

Example request

curl --location 'https://eu.api.capillarytech.com/v1.1/transaction/get?format=json&number=test00tra' \
--header 'Authorization: Basic dGpfY2FwaWxsYXJ5OjVjMTc3MDJlOTI5NjQY3ZDJiMGM2ZTk5ZjE5' \
--header 'Cookie: _cfuvid=kT1kqAlyicvTpZehl3LUNV6zQ5yGGnkRef26o7SjzBI-1757601983154-0.0.1.1-604800000'

Request Query Parameters

ParameterTypeDescription
idlongUnique id of the transaction to fetch.
numberstringUnique transaction number that want to fetch.
store_codestringFetch the transactions of a specific store. Pass the store code.
till_codestringFetch the transactions of a specific TILL. Pass the respective TILL code.
amountdoubleFilter transactions of a specific amount.
datedate-timeFilter transactions of a specific date. Pass the date in YYYY-MM-DD format.
typeEnumFilter transactions of a specific type. Values: REGULAR, NOT_INTERESTED, RETURN, NOT_INTERESTED_RETURN, MIXED, NI_MIXED, ALL (to retrieve any transaction type, for mixed or NI mixed, it retrieves both transaction and return details). By default it shows the details of regular transaction.
tendersbooleanPass true to retrieve transaction details.
credit_notesbooleanPass true to retrieve credit notes.
user_idbooleanPass true to retrieve unique ID of the customer in response.
🚧

If you attempt to retrieve data of any deleted customer after a successful PII deletion, you will receive the following response:

"message": "Customer is deleted after PII delete request"

Response parameters

🚧

The description in the line item is not the inventory level description but the description that you added while adding the transaction.


ParameterDescription
response.statusContains metadata about the API response.
• successIndicates whether the API request was successful (true or false).
• codeHTTP status code for the response.
• messageMessage describing the result of the API call.
response.transactionsHolds all transaction-related details.
• countTotal number of transactions returned in the response.
• transactionArray of transaction objects containing individual transaction data.
transaction.customerInformation about the customer associated with the transaction.
• mobileCustomer’s mobile number.
• first_nameCustomer’s first name.
• last_nameCustomer’s last name.
• emailCustomer’s email address.
• external_idExternal customer ID, if any.
• sourceChannel or source of transaction (for example, instore, online).
transaction.billing_tillDetails of the billing till (point of sale terminal).
• codeUnique till code.
• nameName of the till, if available.
transaction.billing_storeStore details where the transaction took place.
• codeStore code.
• nameStore name.
transaction.idUnique identifier for the transaction.
transaction.numberTransaction reference number.
transaction.typeTransaction type (for example, REGULAR, RETURN).
transaction.outlier_statusIndicates whether the transaction is flagged as normal or outlier.
transaction.storeStore identifier linked to the transaction.
transaction.delivery_statusDelivery status of the transaction (for example, DELIVERED).
transaction.sourceSource channel for the transaction (for example, instore, API).
transaction.custom_fieldsContains custom field details, if configured.
transaction.extended_fieldsHolds additional metadata fields.
transaction.local_currencyCurrency details showing base and transaction currency values.
• idUnique ID for the currency mapping entry.
• ratioConversion rate between transaction currency and base currency.
• base_currencyDefines the base currency set in the organization.
  • idBase currency ID.
  • nameName of the base currency (for example, Indian rupee).
  • symbolSymbol of the base currency (₹).
• transaction_currencyCurrency in which the transaction occurred. This is the currency set at the store level or using the transaction API with local currency.
  • idTransaction currency ID.
  • nameName of the transaction currency (for example, United States dollar).
  • symbolSymbol of the transaction currency ($).
• amountTransaction amount in transaction currency.
• valueConverted amount in base currency.
• discountTotal discount applied in transaction currency.
• gross_amountGross transaction amount before discounts in transaction currency.
transaction.currencyDetails of the transaction currency.
• ratioConversion ratio used.
• idTransaction currency ID.
• nameTransaction currency name (for example, United States dollar).
• symbolTransaction currency symbol ($).
transaction.amountTotal transaction amount in base currency.
transaction.billing_timeDate and time when the transaction was billed.
transaction.auto_update_timeDate and time when the transaction was last updated.
transaction.gross_amountTotal gross amount in base currency before discount.
transaction.discountDiscount applied at the transaction level in base currency.
transaction.notesNotes or comments linked to the transaction.
**transaction.line_itemsList of items included in the transaction.
• line_itemArray of individual line item details.
line_item.typeType of item (for example, REGULAR).
line_item.serialSerial number of the line item in the transaction.
line_item.item_codeUnique code identifying the item.
line_item.descriptionDescription of the purchased item.
line_item.qtyQuantity of the item.
line_item.rateRate per item in base currency.
line_item.valueLine item total value in base currency.
line_item.discountDiscount applied at line-item level in base currency.
line_item.amountTotal amount for the line item after discount in base currency.
line_item.returnableIndicates whether the item can be returned (true/false).
line_item.returnable_daysNumber of days within which the item can be returned.
line_item.local_currencyCurrency details for the line item.
• idCurrency record ID for the line item.
• ratioConversion rate used for the line item.
• base_currencyBase currency details (ID, name, symbol).
• transaction_currencyTransaction currency details (ID, name, symbol).
• amountLine item amount in base currency.
• valueLine item value in base currency.
• rateRate per unit in base currency.
• discountDiscount value for the line item in base currency
line_item.combo_items / addon_items / split_items / attributesContainers for additional item configurations or attributes (empty in this example).
transaction.item_statusIndicates the success of the transaction fetch operation.
• successtrue if retrieval was successful.
• codeResponse code for the fetch operation.
• messageDescriptive message about the operation result.

Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!