Skip to main content
PUT
/
v2
/
access
/
subscribers
/
:userId
/
discount
Apply discount to subscriber
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
}
'
{}

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

x-connection-id
string
header
required

Requires a connection via the x-connection-id header.

Path Parameters

userId
string | null

User ID (numeric or username)

Minimum string length: 1

Body

application/json
discount
integer
required

Discount percentage (1-100)

Required range: 5 <= x <= 60
period
integer
required

Number of months to apply discount

Required range: 1 <= x <= 12

Response

Successful response

The response is of type object.