- Update an order item
Updates an order item. This is an experimental endpoint and may be changed or removed in the future.
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/orders/{id}/items/{itemId}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/orders/{id}/items/{itemId}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/orders/{id}/items/{itemId}
curl -i -X PATCH \
'https://www.rebilly.com/_mock/catalog/all/orders/{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.
Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.
Number of requests still available for this rate limit. 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": 0, "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": {} } }