Create a new referral
POSThttps://api.playmakers.co/referral/assign
Create a new referral
Request
- application/json
Body
referralCode referralCode (string)required
Unique code to share to refer someone
Responses
- 201
- 400
- 401
- 429
Success
- application/json
- Schema
Schema
string
Possible values: [OK
]
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Unauthorized access"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "string"
}
{
"error": "Too Many Requests"
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://api.playmakers.co/referral/assign' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"referralCode": "BETKOP"
}'
ResponseClear