- Update a subscription order item
Updates a subscription order item. This is an experimental endpoint and may be changed or removed in the future.
Update item request.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/subscriptions/{id}/items/{itemId}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/subscriptions/{id}/items/{itemId}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/subscriptions/{id}/items/{itemId}
- SecretApiKey
- JWT
curl -i -X PATCH \
'https://www.rebilly.com/_mock/catalog/all/subscriptions/{id}/items/{itemId}' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"quantityFilled": 5.125,
"excludeFromMrr": true,
"plan": {
"productOptions": {
"color": "red",
"size": "xxl"
}
}
}'Order item updated.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Use an existing plan without changes for the current order.
To create a new plan, see Create a plan.
Specifies the soft and hard usage limit thresholds for an item with a metered billing plan. This value is ignored when the plan is not metered.
Revision number that increments with each overriding change to this specific plan item.
Specifies if the current plan revision number is greater than the plan item revision number.
Specifies if this item should be excluded from monthly recurring revenue calculations.
{ "id": "string", "planId": "plan_0YV7DENSVGDBW9S71XZNNYYQ0X", "quantity": 1000000000, "quantityFilled": 5.125, "plan": { "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21" }, "usageLimits": { "softLimit": { … }, "hardLimit": { … }, "trialLimit": 20.725 }, "usageStatus": { "isSoftLimitReached": false, "isHardLimitReached": false, "isTrialLimitReached": false }, "revision": 0, "isModified": true, "isGrandfathered": true, "excludeFromMrr": true, "_embedded": { "product": {} } }