POST
/
subscriptions
/
{subscriptionId}
/
update
/
curl --request POST \
  --url https://api.paritydeals.com/api/v1/subscriptions/{subscriptionId}/update/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "planIdentifier": "new_plan_enterprise",
  "chargePeriod": "YEARLY",
  "offeringId": "e4567-e89b-12d3-a456-426614174000",
  "pricingTableId": "e4567-e89b-12d3-a456-426614174001",
  "ruleId": "e4567-e89b-12d3-a456-426614174002",
  "ipAddress": "103.154.35.20",
  "features": [
    {
      "identifier": "seats",
      "quantity": 10
    }
  ]
}'
{
  "subscriptionId": "dffaf07e-4517-47db-ba3a-59a05aa2d465"
}

Authorizations

Authorization
string
header
required

The Server API Key obtained from the ParityDeals application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'

Path Parameters

subscriptionId
string
required

The unique identifier of the subscription to be updated. Example UUID from docs: 78058918-9746-4280-9b9b-1bd5115eec6e

Body

application/json

Response

200 - application/json

UUID of the updated subscription

The response is of type object.