Fetch customer's transactions
Changed onUse /customers/:customerId/transactions endpoint to fetch customer's transactions. Transactions are related to details about successfully executed payments. It returns details like transaction date, price breakpoints, payment method.
get/customers/{customerId}/transactions
Request
- Base URLhttps://mediastoreapi-sandbox.cleeng.com
- URLhttps://mediastoreapi-sandbox.cleeng.com/customers/{customerId}/transactions
- AuthAPI key in header Authorization
Path parameters
customerIdstring required
Customer identifier at Cleeng
Query parameters
limitstring
Number of results you want to retrieve. Default value: 50
offsetstring
From which offer you want to get results. Helpful in pagination. Default value: 0
Response
200
Example response
{
"responseData": {
"items": [
{
"applicableTax": "1.8700",
"appliedExchangeRateCustomer": "1.0000",
"campaignId": "0",
"customerCountry": "PL",
"customerCurrency": "EUR",
"customerEmail": "user123@gmail.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
- info
endpoint added
- info