v1

latestOpenAPI 3.0.02026-07-14205154.3 KB
Subscriptions

Add item to subscription

Add a new item to a given subscription.

post/api/rns/pub/subscriptions/{id}/items

Path parameters

idstring nullable required

ID from the target subscription

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

manualPriceinteger nullable

Manual price.

quantityinteger

Amount of units in the cart.

skuIdstring nullable

SKU ID.

Example request

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

Response

Subscription successfully 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"
    }
  ]
}