Menu
Create Subscription State
Create a subscription state
POST
/v2/subscriptions/subscriptions/{subscription_uuid}/statesUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Create Subscription State action (under Subscriptions).
- Fill in the fields below, then reference the result from later steps as
{{createSubscriptionState.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"type": "subscription_state",
"attributes": {
"action": "cancel",
"cancel_immediately": false
}
}
}
Response
Returns 204 with a any. Read it in later steps with {{createSubscriptionState.response.data.<field>}}.
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?