Apply Creator Code
See Creator Codes in our Creators documentation for an in-depth guide on Creator Codes. These are used to attribute purchases to influencers. These codes can optionally apply a customer discount when used.
Applies a creator code to a basket.
Path parameters
basketIdentstringRequiredExample:
The basket identifier.
c00244-d2ac2e77418a55b25292a6bc7a719ad9c529ba2cBody
creator_codestringOptionalExample:
Academy10Responses
200
Successful response returns a success object
application/json
successbooleanOptionalExample:
truemessagestringOptionalExample:
Creator code applied successfully422
The provided request is invalid. The error response will include detail as to which parameter failed validation.
post/baskets/{basketIdent}/creator-codes
POST /api/accounts/baskets/{basketIdent}/creator-codes HTTP/1.1
Host: headless.tebex.io/
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"creator_code": "Academy10"
}{
"success": true,
"message": "Creator code applied successfully"
}Last updated