cURL
curl --request PUT \ --url https://api-next.ofauth.com/v2/access/promotions/bundles/:bundleId \ --header 'Content-Type: application/json' \ --header 'apiKey: <api-key>' \ --header 'x-connection-id: <api-key>' \ --data ' { "discount": 50, "duration": 183 } '
{ "id": 123, "discount": 123, "duration": 123, "price": 123, "canBuy": true }
Update an existing subscription bundle
Permission Required: promotions:write
promotions:write
Your OFAuth API key for authenticating requests.
Requires a connection via the x-connection-id header.
Bundle ID
1
Discount percentage for bundle
1 <= x <= 100
Bundle subscription duration in days
1 <= x <= 365
Successful response
Was this page helpful?