Skip to main content
POST
/
affiliate_coupons
Create an affiliate coupon
curl --request POST \
  --url https://api.referralful.com/v1/affiliate_coupons \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "affiliate_id": "<string>",
  "token": "<string>"
}
'
{
  "id": "<string>",
  "object": "affiliate_coupon",
  "token": "<string>",
  "affiliate_id": "<string>"
}

Authorizations

Authorization
string
header
required

Use your API secret as the username, with an empty password.

Body

application/json
affiliate_id
string
required
token
string
required

The coupon code.

Response

201 - application/json

Created

id
string
object
string
Example:

"affiliate_coupon"

token
string

The coupon code.

affiliate_id
string