v1

latestOpenAPI 3.0.02026-07-14205154.3 KB
Subscriptions

Calculate the current prices for a specific subscription

Simulates an order made by the specific subscription on checkout and retrieves the current price for items and shipping.

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

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.

Response

Simulation result

Example response

{
  "simulateResponse": {
    "items": [
      {
        "quantity": 5
      }
    ],
    "logisticsInfo": [
      {
        "quantity": 5
      }
    ],
    "selectableGiftsResponse": [
      {
        "availableGifts": [
          {
            "quantity": 5
          }
        ]
      }
    ],
    "simulationItems": [
      {
        "quantity": 5
      }
    ]
  },
  "simulationItems": [
    {
      "quantity": 5
    }
  ]
}