v1

latestOpenAPI 3.0.02026-07-264731126.7 KB
Promo Codes

Create promo code (Stripe Only)

With this endpoint you can create a new promo code. <Tip>HTTP Request <br/>POST https://api.firstpromoter.com/api/v2/company/promo_codes</Tip>

post/promo_codes

Headers

Account-IDstring required

Account id. You can find your Account ID on Your FirstPromoter Dashboard. Navigate to Settings → Integrations

Request body

codestring required

Code of the promo code

descriptionstring

Description of the promo code

reward_idinteger required

ID of the reward

promoter_campaign_idinteger required

ID of the promoter campaign

metadataobject

Metadata of the promo code

detailsobject

Details of the promo code

Response

Created promo code

idinteger

ID of the promo code entry

codestring

Code of the promo code

ext_idstring
descriptionstring

Description of the promo code

company_idinteger
promoter_campaign_idinteger

ID of the promoter campaign

metadataobject

Metadata of the promo code

detailsobject

Details of the promo code

archived_atstring date-time