# Solved: creating a time-limited comp subscriber over API

**URL:** <https://forum.ghost.org/t/solved-creating-a-time-limited-comp-subscriber-over-api/53106>\
**Category:** Developer help\
**Created:** [December 7, 2024, 7:43pm UTC](https://forum.ghost.org/t/solved-creating-a-time-limited-comp-subscriber-over-api/53106 "2024-12-07T19:43:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mheland](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mheland/32/26236_2.png) [@mheland](https://forum.ghost.org/u/mheland)\
**Post date:** [December 7, 2024, 7:43pm UTC](https://forum.ghost.org/t/solved-creating-a-time-limited-comp-subscriber-over-api/53106/1 "2024-12-07T19:43:37Z")

</div>

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}`

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

```

---

<div class="post-metadata">

**Author:** ![Ravn](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ravn/32/20885_2.png) [@Ravn](https://forum.ghost.org/u/Ravn)\
**Post date:** [December 9, 2024, 1:29pm UTC](https://forum.ghost.org/t/solved-creating-a-time-limited-comp-subscriber-over-api/53106/2 "2024-12-09T13:29:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mheland](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/mheland/32/26236_2.png) [@mheland](https://forum.ghost.org/u/mheland)\
**Post date:** [December 9, 2024, 1:53pm UTC](https://forum.ghost.org/t/solved-creating-a-time-limited-comp-subscriber-over-api/53106/3 "2024-12-09T13:53:45Z")

</div>

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