v1

latestOpenAPI 3.0.02026-07-14205154.3 KB
Subscriptions

Edit items on a subscription.

Edit a given item on a specific subscription

patch/api/rns/pub/subscriptions/{id}/items/{itemId}

Path parameters

idstring nullable required

Id from the target subscription

itemIdstring nullable required

Id from the target item

Headers

Content-Typestring required
Example:application/json

Type of the content being sent.

Acceptstring required
Example:application/json

HTTP Client Negotiation Accept Header. Indicates the types of responses the client can understand.

Request body

isSkippedboolean nullable
manualPriceinteger nullable

Manual price.

quantityinteger

Amount of units in the cart.

statusstring nullable

Example request

{
  "manualPrice": 40,
  "quantity": 5
}

Response

Subscription updated

createdAtstring date-time required
customerEmailstring nullable required
customerIdstring nullable required
cycleCountinteger required
idstring nullable required
isSkippedboolean required
lastPurchaseDatestring date-time nullable
lastUpdatestring date-time required
nextPurchaseDatestring date-time required
statusstring nullable required
titlestring nullable

Example response

{
  "items": [
    {
      "manualPrice": 40,
      "quantity": 5,
      "skuId": "12"
    }
  ]
}