Skip to main content

Get subscription state

GET 

https://euwest.api.elasticpath.com/v2/subscriptions/subscriptions/:subscription_uuid/states/:state_uuid

Get subscription state

Request

Path Parameters

    subscription_uuid UUIDrequired

    The unique identifier of the subscription.

    state_uuid UUIDrequired

    The unique identifier of the subscription state.

Responses

Success. A subscription state is returned.

Schema
    data SubscriptionState
    idUUID (string)

    The unique identifier.

    Example: 11111111-2222-3333-4444-555555555555
    typeSubscriptionStateType (string)required

    This represents the type of resource object being returned. Always subscription_state.

    Possible values: [subscription_state]

    Example: subscription_state
    attributes SubscriptionStateAttributesrequired
    actionSubscriptionStateAction (string)required

    The subscription lifecycle is the states that a subscription can go through when a customer subscribes to a service or a product.

    A subscription can have the following states; canceled, paused, or resumed.

    See Managing the subscription lifecycle.

    Possible values: [cancel, pause, resume, pending]

    Example: cancel
    meta StateMetarequired
    created_atstringrequired

    The date and time a resource was created.

    Example: 2017-01-10T11:41:19.244842Z

Authorization: http

name: BearerTokentype: httpscheme: bearer
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://euwest.api.elasticpath.com/v2/subscriptions/subscriptions/:subscription_uuid/states/:state_uuid");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://euwest.api.elasticpath.com/v2
Auth
Parameters
— pathrequired
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.