Fetch customer transactions

Use this endpoint to fetch the customer's transactions. Transactions are related to details about successfully executed payments.

It returns details like transaction date, price breakpoints, payment method.

Use transactionId if you want to obtain a specific transaction.

get/transactions

Request

  • Base URL
    https://api.sandbox.cleeng.com/3.1
  • URL
    https://api.sandbox.cleeng.com/3.1/transactions
  • Auth
    API key in header X-Publisher-Token

Query parameters

customerIdinteger required

Customer identifier at Cleeng.

limitinteger

Number of results you want to retrieve. Default value: 50.

offsetinteger

From which element you want to get results. Helpful in pagination. Default value: 0.

transactionIdstring

Transaction identifier at Cleeng. Required if customerId is not provided.

Headers

X-Publisher-Tokenstring
Content-Typestring

Response

200

Example response

{
  "responseData": {
    "items": [
      {
        "applicableTax": "1.8700",
        "appliedExchangeRateCustomer": "1.0000",
        "campaignId": "0",
        "customerCountry": "PL",
        "customerCurrency": "EUR",
        "customerEmail": "ikulacz+releasetest1@cleeng.com",
        "customerId": "930977603",
        "customerIpCountry": "PL",
        "customerLocale": "pl_PL",
        "discountRate": "0.0000",
        "discountType": "0",
        "discountValue": "0.0000",
        "discountedOfferPrice": "8.1300",
        "offerCurrency": "EUR",
        "offerId": "S333919956_PL",
        "offerPeriod": "monthly",
        "offerPriceExclTax": "8.1300",
        "offerTitle": "Monthly subscription (recurring) to SportTV",
        "offerType": "subscription",
        "paymentMethod": "card",
        "publisherId": "227635535",
        "publisherSiteName": "SportTV",
        "taxRate": "0.2300",
        "transactionCurrency": "EUR",
        "transactionDate": 1628085830,
        "transactionExternalData": "862628085828720A",
        "transactionId": "T278908407",
        "transactionPriceExclTax": "8.1300",
        "transactionPriceInclTax": "10.0000",
        "targetType": "giftId",
        "targetId": "123456789"
      }
    ]
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.