Dashboard
APIClone Coupon API - Duplicate a Discount Code | BotSubscription
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Clone Coupon - Duplicate a Discount Code via API

Create a new coupon from an existing one. Every field on the source coupon is copied over; any field you supply in the request body overrides the corresponding value on the new coupon.

POST/v2/projects/{project_id}/coupons/{coupon_id}/clone

Authorization

Bearer TokenRequired

Requires the coupons:add permission. If the source coupon is archived and the request body does not set status, the new coupon is created archived as well.

Path Parameters

project_idstringrequired

The unique identifier of the project.

coupon_idstringrequired

The unique identifier of the source coupon to clone.

Request Body

display_namestring

Name for the new coupon. Defaults to the source coupon's name.

codestring

Code for the new coupon. Defaults to the source coupon's code—if it collides with an active coupon, the codes share the same usage limit and redemption counter.

descriptionstring

Overrides the source coupon's description.

percentagestring

Overrides the source coupon's percentage discount.

amountstring

Overrides the source coupon's flat discount amount.

currencystring

Overrides the source coupon's currency.

usage_limitinteger

Overrides the source coupon's usage limit.

starts_atstring

Overrides the source coupon's start date.

ends_atstring

Overrides the source coupon's end date.

metadataobject

Overrides the source coupon's metadata.

Last updated: