Get Transaction Details

Retrieves the details of a specific transaction.

Example request

curl --location 'https://eu.api.capillarytech.com/v2/transactions/891067503' \
--header 'Authorization: Basic dGpfY2FwaWxsYXJ5OjVjMTc3MDJlOTI5NjQ4MjTY3ZDJiMGM2ZTk5ZjE5' \
--header 'Cookie: _cfuvid=8BjW8Nhvt_fDf9HkQ9kOll2YcHbWSDerAZeGO3nnarM-1757677291733-0.0.1.1-604800000'

Request Parameters

Parameter

Type

Description

id (path)

long

Unique transaction id to fetch details.

type (query)

Enum

Type of transaction to fetch. Value: REGULAR, RETURN, NOT_INTERESTED, NOT_INTERESTED_RETURN. Default value is REGULAR.

tenders (query)

boolean

Pass true to retrieve payment mode details. Default value is false.

credit_notes (query)

boolean

Pass true to retrieve credit notes details (added through v1.1 transaction/add). Default value is false.

mlp

boolean

Pass true to include loyalty points information in the response

points_breakup

boolean

Pass true to include detailed loyalty points breakdown

📘

NOTE

To receive loyalty points information in the response:

  • You must use the transaction id (not number)
  • You must include both Query parameters: ?mlp=true&points_breakup=truE

The API behaves differently depending on identifier used:

  • When using transaction ID: Can return loyalty points if requested
  • When using transaction number: Will never return loyalty points (field will always be empty)
🚧

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 parameter

🚧

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

Response parameters


ParameterDescription
useDefaultFleetGroupDetermines if the default fleet group is used. False means it's not used.
loyaltiesPointDetailsAn array indicating about the loyalty points details associated.
billPointsBreakupAn array representing the breakdown of points in the bill. Note: This field always returns an empty array for Get Transaction by ID and Get Transaction by Number APIs. To get points breakup details, use the v2/userGroup2/transactions (GET) API response instead.
attributionContains information about who created and modified the transaction record.
• createDateThe date and time when the record was created.
• createdByDetails about the user who created the record.
  • idUser ID.
  • codeUser code.
  • descriptionDescription of the user.
  • nameUser name.
  • typeType of user.
  • adminTypeType of admin privileges.
  • isActiveIndicates if the user is active.
  • isOuEnabledIndicates if organisational unit is enabled for the user.
  • timeZoneIdUser's time zone ID.
  • currencyIdUser's currency ID.
  • languageIdUser's language ID.
• modifiedByDetails about the user who last modified the record (currently empty).
• modifiedDateThe date and time when the record was last modified (in UTC).
billDetailsContains billing information for the transaction.
• amountThe total amount of the bill in base currency.
• billingStoreDetails about the store where the billing occurred.
  • idStore ID.
  • codeStore code.
  • descriptionDescription of the store.
  • nameStore name.
  • typeType of store.
  • adminTypeType of admin privileges for the store.
  • isActiveIndicates if the store is active.
  • isOuEnabledIndicates if organisational unit is enabled for the store.
  • timeZoneIdStore's time zone ID.
  • currencyIdStore's currency ID.
  • languageIdStore's language ID.
• billNumberUnique identifier for the bill.
• billingTimeThe date and time when the billing occurred (in UTC).
• currencyCurrency details used for billing.
  • idCurrency ID.
  • nameName of the transaction currency (for example, United States dollar).
  • symbolCurrency symbol (for example, $).
  • ratioConversion rate between the transaction currency and the base currency.
• discountDiscount applied to the bill in base currency.
• grossAmountTotal bill amount before discounts are applied in base currency.
• noteAdditional notes or comments about the bill.
• returnDetailsDetails about the return status of the bill.
  • canceledIndicates if the bill is canceled.
• niReturnDetailsDetails about non-inventory returns (currently empty).
• invalidBillIndicates if the bill is valid or not.
customFieldsAn empty object indicating custom fields associated with this record.
sourceIndicates the source of the transaction, such as "instore".
addWithLocalCurrencyDetermines if additional information is added with local currency. False means it's not added.
asyncDetermines if the transaction is asynchronous. False means it's synchronous.
useV2Determines if version 2 of the transaction system is used. False means it's not used.
simulationIndicates if the transaction is a simulation. False means it's a real transaction.
customerIdThe unique identifier for the customer associated with the transaction.
idThe unique identifier for this transaction record.
lineItemsAn array that includes details of items in the transaction. Note: The description here is what you entered during transaction creation, not the inventory-level description.
• idUnique identifier for the line item.
• detailsContains detailed information about each line item.
  • amountTotal amount for this line item in base currency.
  • descriptionDescription of the item in the transaction.
  • discountDiscount applied at line-item level in base currency.
  • itemCodeUnique code of the item.
  • qtyQuantity of the item.
  • ratePrice per item unit in base currency.
  • serialSerial number of the line item in the bill.
  • valueTotal value for this line item in base currency.
  • returnableIndicates if the item is eligible for return.
  • returnableDaysNumber of days within which the item can be returned.
  • attributesAdditional item attributes (currently empty).
• outlierStatusIndicates if the line item is marked as outlier or normal.
• validIndicates if the line item is valid.
• currencyLogDtoContains details about currency conversions used for the transaction or line item. For the line item-level transactions, the value details are provided only in the base currency.
  • addedByID of the user or till that added the transaction.
  • addedOnDate when the transaction was created.
  • addedOnISOISO format of creation date.
  • autoUpdateTimestampDate when the transaction record was last updated.
  • autoUpdateTimestampISOISO format of last update timestamp.
  • baseCurrencyIdUnique identifier of the base currency.
  • baseCurrencyInformation about the base currency used in the transaction.
    • idBase currency ID.
    • nameBase currency name (for example, Indian rupee).
    • symbolBase currency symbol (for example, ₹).
    • isoCodeISO code for the base currency.
  • transactionCurrencyIdUnique identifier of the transaction currency.
  • transactionCurrencyInformation about the transaction currency used in the transaction.
    • idTransaction currency ID.
    • nameTransaction currency name (for example, United States dollar).
    • symbolTransaction currency symbol (for example, $).
    • isoCodeISO code for the transaction currency.
  • ratioConversion rate between transaction currency and base currency.
  • valueTransaction value in base currency.
  • localValueValue in transaction currency before conversion.
  • localDiscountDiscount in transaction currency before conversion.
  • localGrossAmountGross amount in transaction currency before conversion.
  • refTypeType of transaction reference (for example, REGULAR).
  • refIdReference ID associated with the currency log.
  • orgIdOrganisation ID under which the transaction was processed.
  • ratioConversion ratio used for this transaction (for example, 86.0 means 1 USD = ₹86).
extendedFieldsAdditional metadata fields, if any.
autoUpdateTimeThe date and time when the transaction record was last updated (UTC).
niReturnDetailsDetails about non-inventory returns for the transaction (currently empty).
basketSizeTotal quantity of items in the transaction.
retroTxnIndicates if it is a retrospective transaction. False means it’s not.
returnDetailsContains return information for the entire transaction.
• canceledIndicates if the entire transaction is canceled.
warningsArray containing any warnings associated with this transaction.

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