v1

latestOpenAPI 3.0.02026-07-264731126.7 KB
Promo Codes

Update promo code by id

Update promo code by id. Can not be updated if archived and ext_id present. <Tip>HTTP Request <br/>PUT https://api.firstpromoter.com/api/v2/company/promo_codes/{id}</Tip>

put/promo_codes/{id}

Path parameters

idinteger required

ID of the promo code

Headers

Account-IDstring required

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

Request body

codestring

Code of the promo code

descriptionstring

Description of the promo code

promoter_campaign_idinteger

ID of the promoter campaign

metadataobject

Metadata of the promo code

detailsobject

Details of the promo code

Response

Updated 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