HomeGuidesAPI ReferenceChangelogDiscussions
HomeLog In
Guides

Get Product Subscription

Functions

Get Product Subscription

URL

GET <<api_domain>>/v1/product_subscriptions/${id}

Request Parameter

FieldTypeDescriptionExample
idStringProduct Subscription ID609bddf1985811004b9e542a

Request Sample

curl --location --request GET '<<api_domain>>/v1/product_subscriptions/609bddf1985811004b9e542a' \
--header 'Authorization: Bearer ${token}'

Response Sample

{
    "id": "609bddf1985811004b9e542a",
    "recurring_count": 1,
    "duration": 30,
    "duration_type": "day",
    "next_billing_at": "2021-06-10T16:00:00.000+00:00",
    "status": "active",
    "customer_name": "王小V",
    "customer_email": "[email protected]",
    "product_name": {
        "zh-hant": "<~!@#$%^&*()_+test~~~~~~~>",
        "en": "(product name)",
        "zh-cn": "简体中文",
        "th": "ภาษาจีนตัวย่อ",
        "vi": "Tiếng Trung giản thể"
    },
    "initial_billing_at": "2019-09-26T09:56:16.803+00:00",
    "created_at": "2019-09-26T09:56:16.803+00:00",
    "updated_at": "2019-09-26T09:56:16.803+00:00",
}