Get Transaction Details With ID

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Example request

curl --location 'https://{Host}/v2/transactions/2152557245' \
--header 'Authorization: Basic b25lLnRpbGwwMToyMDJjYjk2MmFViOTY0YjA3MTUyZDIzNGI3MA=='

Query Parameters

ParameterTypeDescription
id (path)*longUnique transaction id to fetch details.
type (query)*EnumType of transaction to fetch.
Value: REGULAR, RETURN, NOT_INTERESTED, NOT_INTERESTED_RETURN. Default value is REGULAR.
tenders (query)booleanPass true to retrieve payment mode details. Default value is false.
credit_notes (query)booleanPass true to retrieve credit notes details (added through v1.1 transaction/add). Default value is false.
mlpbooleanPass true to include loyalty points information in the response
points_breakupbooleanPass 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"

Example response

{
    "useDefaultFleetGroup": false,
    "loyaltiesPointDetails": [
        {
            "issuedPoints": 4000.0,
            "returnedPoints": 0.0,
            "redeemedPoints": 0.0,
            "expiredPoints": 4000.0,
            "availablePoints": 0.0,
            "expiryDate": "2026-03-16T23:59:59Z",
            "programId": 973,
            "delayedPoints": 0.0,
            "delayedPointsReturned": 0.0,
            "redeemableFrom": "2026-02-18T11:35:57Z",
            "pointsBreakup": {
                "currentPoints": {
                    "regularPointsBreakup": [
                        {
                            "programId": 973,
                            "issued": 4000.0,
                            "returned": 0.0,
                            "redeemed": 0.0,
                            "expired": 4000.0,
                            "expiryDate": "2026-03-16T23:59:59Z",
                            "expiryType": "fixed",
                            "awardedDate": "2026-02-18T11:35:57Z",
                            "allocationType": "LINEITEM",
                            "skuCode": "model_id_001"
                        }
                    ],
                    "promotionalPointsBreakup": []
                },
                "promisedPoints": {
                    "regularPointsBreakup": [],
                    "promotionalPointsBreakup": []
                }
            }
        },
        {
            "issuedPoints": 1.0,
            "returnedPoints": 0.0,
            "redeemedPoints": 0.0,
            "expiredPoints": 1.0,
            "availablePoints": 0.0,
            "expiryDate": "2026-03-16T23:59:59Z",
            "programId": 983,
            "delayedPoints": 0.0,
            "delayedPointsReturned": 0.0,
            "redeemableFrom": "2026-02-18T11:35:57Z",
            "pointsBreakup": {
                "currentPoints": {
                    "regularPointsBreakup": [
                        {
                            "programId": 983,
                            "issued": 1.0,
                            "returned": 0.0,
                            "redeemed": 0.0,
                            "expired": 1.0,
                            "expiryDate": "2026-03-16T23:59:59Z",
                            "expiryType": "rolling",
                            "awardedDate": "2026-02-18T11:35:57Z",
                            "allocationType": "BILL"
                        }
                    ],
                    "promotionalPointsBreakup": []
                },
                "promisedPoints": {
                    "regularPointsBreakup": [],
                    "promotionalPointsBreakup": []
                }
            }
        }
    ],
    "billPointsBreakup": [],
    "attribution": {
        "createDate": "2026-02-18T06:05:00Z",
        "createdBy": {
            "id": 75155297,
            "code": "tj_capillary",
            "description": "",
            "name": "tj_capillary",
            "type": "TILL",
            "referenceId": -1,
            "adminType": "GENERAL",
            "isActive": true,
            "isOuEnabled": false,
            "timeZoneId": 191,
            "currencyId": 95,
            "languageId": 148,
            "default": false
        },
        "modifiedBy": {
            "referenceId": -1,
            "default": false
        },
        "modifiedDate": "2026-02-18T06:05:57Z"
    },
    "billDetails": {
        "amount": 2000.0,
        "billingStore": {
            "id": 75152715,
            "code": "doc123",
            "description": "",
            "name": "DocStore",
            "type": "STORE",
            "referenceId": -1,
            "adminType": "GENERAL",
            "isActive": true,
            "isOuEnabled": false,
            "timeZoneId": 191,
            "currencyId": 95,
            "languageId": 148,
            "default": false
        },
        "billNumber": "demogorundtxn00loyal0029",
        "billingTime": "2026-02-18T06:05:00Z",
        "discount": 0.0,
        "grossAmount": 2000.0,
        "note": "DGtxn L 0029",
        "returnDetails": {
            "canceled": false
        },
        "niReturnDetails": {},
        "invalidBill": false,
        "billingTimeInputOffset": "+05:30"
    },
    "customFields": {},
    "source": "instore",
    "addWithLocalCurrency": false,
    "async": false,
    "useV2": false,
    "simulation": false,
    "customerId": 564662499,
    "id": 897887933,
    "lineItems": [
        {
            "id": 4053962482,
            "customerId": 0,
            "details": {
                "amount": 2000.0,
                "description": "Sports Shoes",
                "discount": 0.0,
                "itemCode": "model_id_001",
                "qty": 1.0,
                "rate": 2000.0,
                "serial": 0,
                "value": 0.0,
                "returnable": true,
                "returnableDays": -1,
                "attributes": {},
                "extendedFields": {
                    "size": "medium"
                },
                "newExtendedFields": {},
                "attributesSet": []
            },
            "outlierStatus": "NORMAL",
            "returnDetails": {},
            "valid": true,
            "returnLineItemsDtos": [],
            "niReturnLineItemsDtos": [],
            "addonDetails": [],
            "splitItemsDetails": [],
            "niReturn": false
        }
    ],
    "outlierStatus": "NORMAL",
    "type": "REGULAR",
    "lifeTimePurchases": 0,
    "ignorePoints": false,
    "extendedFields": {
        "event_input_date_offset": "+05:30",
        "external_coupon_code": "WEB"
    },
    "autoUpdateTime": "2026-02-18T06:05:57Z",
    "niReturnDetails": {},
    "basketSize": 1.0,
    "returnDetails": {
        "canceled": false
    },
    "retroTxn": false,
    "warnings": []
}

Rounding of monetary fields

Monetary fields in transaction line items (such as amount, rate, value, and discount) are rounded based on the AMOUNT_ROUNDING_OFF_TO_DECIMAL_PLACES configuration. If this configuration is set to a value greater than or equal to 0, these fields are rounded down to the specified number of decimal places. For example, if set to 2, a value of 38.989 becomes 38.98. If set to 3, 38.987 becomes 38.987. This rounding uses the floor method, which may cause values to be slightly lower than expected.

To ensure correct storage and retrieval of decimal values, set AMOUNT_ROUNDING_OFF_TO_DECIMAL_PLACES to one more than the value of CONF_DECIMAL_PLACES_FOR_BASE_CURRENCY. For example, if CONF_DECIMAL_PLACES_FOR_BASE_CURRENCY is 2, set AMOUNT_ROUNDING_OFF_TO_DECIMAL_PLACES to 3.

Response parameter

Top-level parameters

ParameterData typeDescription
idLongUnique identifier of the transaction.
customerIdLongUnique identifier of the customer linked to the transaction.
typeStringType of transaction. Possible values: REGULAR, NOT_INTERESTED, RETURN, NOT_INTERESTED_RETURN, MIXED, NI_MIXED, ALL.
sourceStringChannel through which the transaction was recorded. Example: instore.
outlierStatusStringWhether the transaction is included in loyalty processing. Possible values: NORMAL (transaction is processed and points are awarded), OUTLIER (transaction is excluded from points calculation).
lifeTimePurchasesLongTotal purchase value the customer has accumulated across all transactions, including this one.
basketSizeDecimalTotal quantity of all items in the transaction. Calculated as the sum of qty across all line items.
ignorePointsBooleanWhether points accrual was skipped for this transaction. Possible values: true (points not awarded), false (points awarded normally).
retroTxnBooleanWhether this is a retro transaction. A retro transaction links a past purchase to a customer after the fact. Possible values: true, false.
addWithLocalCurrencyBooleanWhether the transaction was recorded in the store's local currency. Possible values: true (local currency used), false (org base currency used).
asyncBooleanWhether the transaction was processed in the background. Possible values: true (asynchronous), false (synchronous).
useV2BooleanWhether v2 processing logic was applied to this transaction.
simulationBooleanWhether this was a simulated transaction. A simulated transaction is not saved to the database. Possible values: true, false.
useDefaultFleetGroupBooleanWhether the default user group was applied to this transaction.
autoUpdateTimeStringTimestamp of the last automatic system update to this transaction, in ISO 8601 format.
billPointsBreakupArrayBill-level points breakup. Returns an empty array if no bill-level points are configured separately from program-level points. 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.
customFieldsObjectCustom fields recorded at the transaction level as key-value pairs. Returns an empty object if no custom fields were provided.
extendedFieldsObjectExtended fields recorded at the transaction level. See extendedFields object.
niReturnDetailsObjectDetails about a not-interested return at the transaction level. Returns an empty object if not applicable.
returnDetailsObjectCancellation status for the transaction. See returnDetails object.
loyaltiesPointDetailsArrayLoyalty points summary, with one entry per loyalty program that awarded points for this transaction. See loyaltiesPointDetails array.
warningsArrayWarnings generated during transaction processing. Returns an empty array if there are none.

extendedFields object

Extended fields capture additional transaction attributes configured at the org level.

ParameterData typeDescription
event_input_date_offsetStringUTC offset of the timezone in which the transaction date was submitted. Example: +05:30 for Indian Standard Time.
external_coupon_codeStringExternal coupon code applied to the transaction. Example: WEB.

returnDetails object

ParameterData typeDescription
canceledBooleanWhether this transaction has been canceled. Possible values: true (canceled), false (active).

loyaltiesPointDetails array

Each entry in this array represents the loyalty points summary for one program that awarded points for this transaction.

ParameterData typeDescription
programIdLongUnique identifier of the loyalty program.
issuedPointsDecimalTotal points issued to the customer for this transaction under this program.
returnedPointsDecimalPoints reversed due to a product return or transaction reversal.
redeemedPointsDecimalPoints the customer redeemed as part of this transaction.
expiredPointsDecimalPoints from this transaction that have already expired.
availablePointsDecimalPoints currently available for the customer to redeem.
delayedPointsDecimalPoints pending conversion to the customer's active balance, due to a delayed accrual configuration.
delayedPointsReturnedDecimalPending points reversed before they were converted to active points.
expiryDateStringDate and time when the points from this transaction expire, in ISO 8601 format.
redeemableFromStringDate and time from which the issued points are eligible for redemption, in ISO 8601 format.
pointsBreakupObjectGranular breakdown of points split into active and pending categories. See pointsBreakup object.

pointsBreakup object

currentPoints object

Points already credited to the customer's active loyalty balance.

ParameterData typeDescription
regularPointsBreakupArrayBreakdown of regular (non-promotional) points in the active balance. Returns an empty array if none were credited. See regularPointsBreakup object.
promotionalPointsBreakupArrayBreakdown of promotional points in the active balance. Returns an empty array if none were credited.

promisedPoints object

Points in a pending state, not yet credited to the customer's active balance due to delayed accrual settings.

ParameterData typeDescription
regularPointsBreakupArrayBreakdown of regular points currently pending. Returns an empty array if there are none.
promotionalPointsBreakupArrayBreakdown of promotional points currently pending. Returns an empty array if there are none.

regularPointsBreakup object

Each entry represents one batch of regular points awarded under a specific program.

ParameterData typeDescription
programIdLongUnique identifier of the loyalty program that awarded these points.
issuedDecimalNumber of points issued in this batch.
returnedDecimalNumber of points reversed in this batch.
redeemedDecimalNumber of points redeemed from this batch.
expiredDecimalNumber of points from this batch that have expired.
expiryDateStringDate and time when this batch of points expires, in ISO 8601 format.
expiryTypeStringExpiry strategy applied to this batch. Possible values: fixed (points expire on a fixed calendar date, unaffected by customer activity), rolling (the expiry date extends when the customer makes a qualifying transaction).
awardedDateStringDate and time when these points were credited to the customer's active balance, in ISO 8601 format.
allocationTypeStringLevel at which these points were allocated. Possible values: BILL (awarded on the total bill amount), LINEITEM (awarded on a specific product line item), BILL_PROMOTION (awarded on the bill via a promotion), LINEITEM_PROMOTION (awarded on a line item via a promotion), CUSTOMER_PROMOTION (awarded to the customer via a promotion, not tied to a specific bill or line item).
skuCodeStringItem code of the product against which these points were awarded. Present only when allocationType is LINEITEM. Matches the itemCode of the corresponding line item.

billDetails object

ParameterData typeDescription
billNumberStringUnique bill or invoice number for this transaction.
billingTimeString

Indicates the bill creation date and time in ISO 8601 format, returned in the server time zone.

EU server example
2025-12-16T14:30:45Z → 16 December 2025, 14:30:45 (UTC)

India server example
2025-12-16T14:30:45+05:30 → 16 December 2025, 14:30:45 (IST)

Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.

billingTimeInputOffsetStringUTC offset of the timezone in which the billing time was originally submitted. Example: +05:30 for Indian Standard Time. This value is extracted from the billing time input and included in the response for reference.
amountDecimalNet bill amount after discounts.
grossAmountDecimalGross bill amount before discounts.
discountDecimalTotal discount applied to the bill.
noteStringFree-text note associated with the transaction.
invalidBillBooleanWhether the bill is flagged as invalid. An invalid bill is excluded from loyalty processing. Possible values: true (invalid), false (valid).
returnDetailsObjectCancellation status at the bill level. See returnDetails object.
niReturnDetailsObjectNot-interested return details at the bill level. Returns an empty object if not applicable.
billingStoreObjectDetails of the store where the transaction was billed. See billingStore object.

billingStore object

ParameterData typeDescription
idLongUnique identifier of the store.
codeStringUnique code assigned to the store.
nameStringDisplay name of the store.
descriptionStringDescription of the store.
typeStringType of org entity. Example: STORE.
referenceIdLongExternal reference identifier for the store. Returns -1 if no external reference is configured.
adminTypeStringAdministrative classification of the store. Possible values: ADMIN, GENERAL.
isActiveBooleanWhether the store is currently active.
isOuEnabledBooleanWhether organizational unit (OU) configuration is enabled for this store.
timeZoneIdLongInternal identifier of the timezone configured for this store.
currencyIdLongInternal identifier of the currency configured for this store.
languageIdLongInternal identifier of the language configured for this store.
defaultBooleanWhether this is the default store.

attribution object

Contains information about who created and last modified the transaction record.

ParameterData typeDescription
createDateStringDate and time when the transaction was created, in ISO 8601 format. Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.
modifiedDateStringDate and time when the transaction was modified, in ISO 8601 format. Note: The response time zone always matches the server time zone, regardless of the time zone offset in the request.
createdByObjectDetails of the till or entity that recorded the transaction. See createdBy object.
modifiedByObjectDetails of the entity that last modified the transaction. See modifiedBy object.

createdBy object

ParameterData typeDescription
idLongUnique identifier of the entity that created the transaction.
codeStringCode of the entity.
nameStringName of the entity.
descriptionStringDescription of the entity.
typeStringType of entity. Example: TILL.
referenceIdLongExternal reference identifier. Returns -1 if no external reference is configured.
adminTypeStringAdministrative classification. Possible values: ADMIN, GENERAL.
isActiveBooleanWhether the entity is currently active.
isOuEnabledBooleanWhether OU configuration is enabled for this entity.
timeZoneIdLongInternal identifier of the timezone configured for this entity.
currencyIdLongInternal identifier of the currency configured for this entity.
languageIdLongInternal identifier of the language configured for this entity.
defaultBooleanWhether this is the default entity.

modifiedBy object

ParameterData typeDescription
referenceIdLongExternal reference identifier of the entity that last modified the transaction. Returns -1 if no external reference is configured.
defaultBooleanWhether this is the default entity.

lineItems array

Each entry represents one product line item in the transaction.

ParameterData typeDescription
idLongUnique identifier of the line item.
customerIdLongIdentifier of the customer linked to this line item. Returns 0 if the line item is not linked to a specific customer.
outlierStatusStringWhether this line item is included in loyalty processing. Possible values: NORMAL (processed normally), OUTLIER (excluded from points calculation).
validBooleanWhether this line item is valid for loyalty processing. Possible values: true (valid), false (invalid).
niReturnBooleanWhether this is a not-interested return line item. Possible values: true, false.
returnDetailsObjectReturn details for this line item. Returns an empty object if no return is associated.
returnLineItemsDtosArrayReturn line items linked to this line item. Returns an empty array if no returns are associated.
niReturnLineItemsDtosArrayNot-interested return line items linked to this line item. Returns an empty array if not applicable.
addonDetailsArrayAdd-on items linked to this line item. Returns an empty array if no add-ons are present.
splitItemsDetailsArraySplit item details for this line item. Returns an empty array if the item is not split.
detailsObjectProduct and pricing information for this line item. See details object.

details object

ParameterData typeDescription
itemCodeStringUnique code identifying the product (SKU).
descriptionStringShort description of the product.
qtyDecimalQuantity of the product purchased.
rateDecimalUnit price of the product. This value may be rounded down based on the AMOUNT_ROUNDING_OFF_TO_DECIMAL_PLACES configuration.
amountDecimalNet line item amount after discount. This value may be rounded down based on the AMOUNT_ROUNDING_OFF_TO_DECIMAL_PLACES configuration.
valueDecimalGross value of the line item before discount. This value may be rounded down based on the AMOUNT_ROUNDING_OFF_TO_DECIMAL_PLACES configuration.
discountDecimalDiscount applied to this line item. This value may be rounded down based on the AMOUNT_ROUNDING_OFF_TO_DECIMAL_PLACES configuration.
serialLongPosition of this line item within the transaction.
returnableBooleanWhether this product is eligible for return after purchase.
returnableDaysIntegerNumber of days within which this product can be returned. Returns -1 if no return window is configured.
attributesObjectProduct attributes for this line item as key-value pairs. Returns an empty object if no attributes are present.
extendedFieldsObjectExtended fields at the line item level as key-value pairs. Example: "size": "medium".
newExtendedFieldsObjectAdditional extended fields at the line item level. Returns an empty object if not applicable.
attributesSetArraySet of attribute entries derived from the attributes object. Returns an empty array if no attributes are present.

[!NOTE]
Monetary fields in line items (amount, rate, value, discount) are rounded down to the number of decimal places specified by the AMOUNT_ROUNDING_OFF_TO_DECIMAL_PLACES configuration. This may cause values to be slightly lower than expected. Set this configuration to one more than the base currency decimal places to ensure accurate results.


Path Params
string
required
Query Params
string
enum
Defaults to REGULAR
Allowed:
boolean
Defaults to false
boolean
Defaults to false
Responses

Language
Credentials
Basic
base64
:
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json