cURL
curl --request PUT \ --url https://api-next.ofauth.com/v2/access/subscribers/:userId/discount \ --header 'Content-Type: application/json' \ --header 'apiKey: <api-key>' \ --header 'x-connection-id: <api-key>' \ --data ' { "discount": 32, "period": 6 } '
{}
Apply a discount to a subscriber’s subscription
Permission Required: subscribers:write
subscribers:write
Your OFAuth API key for authenticating requests.
Requires a connection via the x-connection-id header.
User ID (numeric or username)
1
Discount percentage (1-100)
5 <= x <= 60
Number of months to apply discount
1 <= x <= 12
Successful response
The response is of type object.
object
Was this page helpful?