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
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
}
'{}Requires a connection via the x-connection-id header.
User ID (numeric or username)
1Successful response
The response is of type object.
Was this page helpful?