Add Subscription If User Registered

This API adds subscriptions to the Profile if the user is registerd.

Add the subscriptions of the user.

POST {API_URL}/client/add-subscription

Auth required: YES

Please pass your API key as the username and API secret as the password as Basic Auth to access the endpoint

Query Parameters

Name
Type

userId

string

purchaseId

string

subscriptionId

string

tierId

string

subscriptionStartDate

ISODateString

subscriptionEndDate

ISODateString

{
    "userId": "66c71ff633fe796c9e382ad9",
    "purchaseId": "66ceba5a69b56840cd408da5",
    "subscriptionId": "6605323f3d9bc90560386b9f",
    "tierId": "6605323f3d9bc90560386ba1",
    "subscriptionStartDate": "2024-08-28T05:49:14.275Z",
    "subscriptionEndDate": "2024-09-22T04:30:00.000Z"
}

Last updated