getGet Subscription

Retrieves one of your tenant's subscriptions, with its plan. Your client's subscription_id (see Get Client) is the subscription Fuse serves it under. Your token must carry subscription:read, which the owner and admin roles grant.

curl --request GET \
  --url https://your-tenant.core.server.test.neobits.ai/v1/subscriptions/0197a1b2-0000-7000-8000-000000000001 \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'

Request

Headers

  • Authorization•string

    Bearer token authentication using OAuth 2.0 client credentials flow.

Params (path)

  • subscription_id•string<uuid>

    The subscription ID

Response

Headers

  • Content-Type•string

    The content type of the response.

Body

  • id•string<uuid>

    Subscription ID. Set it as a client's `subscription_id` to let Fuse serve the client.

  • description•string

    What the subscription is for

  • starts_at•string<date-time>

    When the subscription starts

  • ends_at•string<date-time>

    When the subscription ends. Null when it has no end.

  • plan•object

    • id•string<uuid>

      Plan ID

    • name•string

      The plan's name

    • description•string

      What the plan includes. Present only when the plan has a description.

    • billing•object

      • frequency•string

        How often the plan is invoiced

      • terms•string

        Days to pay an invoice

    • created_at•string<date-time>

      When the plan was created

    • updated_at•string<date-time>

      When the plan was last changed

  • created_at•string<date-time>

    When the subscription was created

  • updated_at•string<date-time>

    When the subscription was last changed