younifyd
Menu

Create Subscription

Create a subscription

POST/subscriptions

Use it in a workflow

  1. Add a step and choose the Recharge connector.
  2. Pick the Create Subscription action (under Subscriptions).
  3. Fill in the fields below, then reference the result from later steps as {{createSubscription.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

idinteger (int64)
customer_idinteger (int64)
address_idinteger (int64)
statusstring

One ofactivecancelledexpired

product_titlestring
quantityinteger
pricestring
next_charge_scheduled_atstring (date)
order_interval_unitstring

One ofdayweekmonth

order_interval_frequencystring
created_atstring (date-time)
updated_atstring (date-time)
json
{
  "id": 0,
  "customer_id": 0,
  "address_id": 0,
  "status": "active",
  "product_title": "string",
  "quantity": 0,
  "price": "string",
  "next_charge_scheduled_at": "2025-01-01",
  "order_interval_unit": "day",
  "order_interval_frequency": "string",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-01T00:00:00Z"
}

Response

Returns 201 with an object. Read it in later steps with {{createSubscription.response.data.<field>}}.

subscriptionobject
idinteger (int64)
customer_idinteger (int64)
address_idinteger (int64)
statusstring

One ofactivecancelledexpired

product_titlestring
quantityinteger
pricestring
next_charge_scheduled_atstring (date)
order_interval_unitstring

One ofdayweekmonth

order_interval_frequencystring
created_atstring (date-time)
updated_atstring (date-time)
json
{
  "subscription": {
    "id": 0,
    "customer_id": 0,
    "address_id": 0,
    "status": "active",
    "product_title": "string",
    "quantity": 0,
    "price": "string",
    "next_charge_scheduled_at": "2025-01-01",
    "order_interval_unit": "day",
    "order_interval_frequency": "string",
    "created_at": "2025-01-01T00:00:00Z",
    "updated_at": "2025-01-01T00:00:00Z"
  }
}

Need more? See the Recharge guide for connection setup and behaviour shared by every action.