PATCH
/
admin
/
v1
/
subscriptions
/
{subscriptionId}
/
items
/
{itemId}
curl --request PATCH \
  --url https://api.juo.io/admin/v1/subscriptions/{subscriptionId}/items/{itemId} \
  --header 'Content-Type: application/json' \
  --header 'X-Juo-Admin-Api-Key: <api-key>' \
  --data '{
  "quantity": 2
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "resource": "subscription-item",
  "title": "<string>",
  "subtitle": null,
  "quantity": 2,
  "totalPrice": 1,
  "variant": "<string>",
  "recurringCycleLimit": null
}

Authorizations

X-Juo-Admin-Api-Key
string
header
required

Path Parameters

subscriptionId
string
required

The subscription identifier

itemId
string
required

The subscription item identifier

Body

application/json
quantity
integer
Required range: x >= 1

Response

200 - application/json
Default Response
id
string
required
resource
enum<string>
required
Available options:
subscription-item
title
string
required
Minimum length: 1
subtitle
string | null
required

Matches the variant title in most cases

Minimum length: 1
quantity
integer
required
Required range: x >= 1
totalPrice
number
required

Final item price including all discounts and taxes

Required range: x >= 0
variant
required

This field is expandable.

Minimum length: 1
recurringCycleLimit
integer | null
required

The number of billing cycles for which this item will be applied. After the recurring cycle limit is met the item will be removed from the subscription.

Required range: x >= 1