Solved: creating a time-limited comp subscriber over API

Had a look a long time for this so sharing here.

To get the tier ID, retrieve a member already assigned to the tier over API or find it in the URL when editing the tier.

PUT to /admin/members/{member_id}

{
    "members": [
        {
            "labels": [
                {
                    "name": "Gift sub"
                }
            ],
            "status": "comped",
            "tiers": [
                {
                    "id": "123456789",
                    "expiry_at": "2025-03-07T16:48:01.826Z"
                }
            ]
        }
    ]
}
2 Likes

Thank you for this. This small piece of knowledge shared here on the forum is handy – at least one day in the future, it surely will be.
It’s sometimes a pain to send the correct payload to these endpoints.

Agree, API error messages are currently not very helpful. ‘Computer says no’, generally.

2 Likes