v1

latestOpenAPI 3.0.02026-07-14205154.3 KB
Subscriptions

Create subscription

Create a new subscription.

post/api/rns/pub/subscriptions

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

catalogAttachmentstring nullable
customerEmailstring nullable required
nextPurchaseDatestring date-time nullable
statusstring nullable
titlestring nullable

Example request

{
  "items": [
    {
      "manualPrice": 40,
      "quantity": 5,
      "skuId": "12"
    }
  ],
  "plan": {
    "frequency": {
      "interval": 3,
      "periodicity": "MONTHLY"
    },
    "id": "store.subscription",
    "purchaseDay": "15",
    "validity": {
      "begin": "2022-06-10T00:00:00",
      "end": "2023-06-10T00:00:00"
    }
  },
  "purchaseSettings": {
    "paymentMethod": {
      "installments": 3,
      "paymentAccountId": "340357032569595",
      "paymentSystem": "4"
    }
  },
  "shippingAddress": {
    "addressId": "8109266555005",
    "addressType": "residential"
  }
}

Response

Subscription created

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