Subscription

List subscriptions

List the subscriptions associated with the current user.

get/subscription

Response

List of subscriptions.

Example response

{
  "data": [
    {
      "id": "sub_XXXXXXXXXXXXXXXXXXXXXXXXX",
      "productVariantID": "var_XXXXXXXXXXXXXXXXXXXXXXXXX",
      "price": 2200,
      "quantity": 1,
      "addressID": "shp_XXXXXXXXXXXXXXXXXXXXXXXXX",
      "cardID": "crd_XXXXXXXXXXXXXXXXXXXXXXXXX",
      "schedule": {
        "type": "weekly",
        "interval": 3
      },
      "next": "2025-02-01T19:36:19.000Z",
      "created": "2024-06-29T19:36:19.000Z"
    }
  ]
}

Changes

Changed in 12 of the 41 revisions of this API.832

    • added the required property data/items/price to the response with the 200 status

      response-required-property-added

    • added the required property data/items/created to the response with the 200 status

      response-required-property-added

  • 1c6726b12e29318See the full diff
    • the response's body type/format changed from / to object/ for status 401

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 429

      response-body-type-changed

    • the response's body type/format changed from / to object/ for status 500

      response-body-type-changed

    • removed ErrorResponse from the response body allOf list for the response status 401

      response-body-all-of-removed

    • removed ErrorResponse from the response body allOf list for the response status 429

      response-body-all-of-removed

    • removed ErrorResponse from the response body allOf list for the response status 500

      response-body-all-of-removed

    • added the optional property details to the response with the 401 status

      response-optional-property-added

    • added the optional property details to the response with the 429 status

      response-optional-property-added

    • added the optional property details to the response with the 500 status

      response-optional-property-added

    • added the optional property param to the response with the 401 status

      response-optional-property-added

    • added the optional property param to the response with the 429 status

      response-optional-property-added

    • added the optional property param to the response with the 500 status

      response-optional-property-added

    • added the required property code to the response with the 401 status

      response-required-property-added

    • added the required property code to the response with the 429 status

      response-required-property-added

    • added the required property code to the response with the 500 status

      response-required-property-added

    • added the required property message to the response with the 401 status

      response-required-property-added

    • added the required property message to the response with the 429 status

      response-required-property-added

    • added the required property message to the response with the 500 status

      response-required-property-added

    • added the required property type to the response with the 401 status

      response-required-property-added

    • added the required property type to the response with the 429 status

      response-required-property-added

    • added the required property type to the response with the 500 status

      response-required-property-added

    • added the non-success response with the status 401

      response-non-success-status-added

    • added the non-success response with the status 429

      response-non-success-status-added

    • added the non-success response with the status 500

      response-non-success-status-added

    • removed the required property data/items/frequency from the response with the 200 status

      response-required-property-removed

  • a43b29f8663911See the full diff
    • added subschema #1: fixed subschema #2: weekly to the data/items/schedule response property oneOf list for the response status 200

      response-property-one-of-added

    • removed subschema #1 subschema #2 from the data/items/schedule response property oneOf list for the response status 200

      response-property-one-of-removed

    • added the optional property data/items/schedule to the response with the 200 status

      response-optional-property-added

    • added the optional property data/items/next to the response with the 200 status

      response-optional-property-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation