Skip to content

Create referral code

POST
/referral-codes

Create a new referral code

Authorizations

bearerAuth

Generate an API token here

Type
HTTP (bearer)

Parameters

Header Parameters

compatibility-date*

API compatibility date in YYYY-MM-DD format. Must be a date after 2025-11-01.

Type
string
Required
Example"2025-11-01"
Pattern
"^\\d{4}-\\d{2}-\\d{2}$"

Request Body

application/json
object
Min Length1
Max Length64
Min Length1

Responses

success.referral.create

application/json
object
object
Required

Playground

Authorization
Headers
Body

Samples