Fetch customer's offers

Changed on

Use this endpoint to fetch customer's offers (subscriptions and passes).

This endpoint lists all active and stopped subscriptions, but it doesn't return expired ones.

You can find details about customer subscriptions here, like status, expiration date, price, payment method, or period.

get/customers/{customerId}/offers

Request

  • Base URL
    https://mediastoreapi-sandbox.cleeng.com
  • URL
    https://mediastoreapi-sandbox.cleeng.com/customers/{customerId}/offers
  • Auth
    API key in header Authorization

Path parameters

customerIdinteger required

Customer identifier at Cleeng

Response

200

Example response

{
  "responseData": {
    "items": [
      {
        "subscriptionId": 271645437,
        "offerId": "S253647975_PL",
        "status": "active",
        "startedAt": 1592311518,
        "expiresAt": 1650285918,
        "nextPaymentPrice": 19.99,
        "nextPaymentCurrency": "EUR",
        "nextPaymentAt": 1650026718,
        "paymentGateway": "adyen",
        "paymentMethod": "mc",
        "externalPaymentId": "X8J5SMWTBGNG5S82",
        "inTrial": true,
        "offerType": "S",
        "offerTitle": "Monthly subscription (recurring) to My Super Company",
        "period": "month",
        "totalPrice": 19.99
      }
    ]
  }
}

Changes