API referenceCoupon
Create Coupon
Create a coupon in the current company. App connections need the booking:write or inventory:write scope.
POST
/couponcurl -X POST "https://dash.lockii.app/api/v1/coupon" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "string",
"name": "string"
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Body
application/json
idstringrequiredCoupon ID, usually coupon_<uuid>
namestringrequiredCoupon name/code
usesintegerMaximum uses, or -1 for unlimited uses
Default:-1usedintegerTimes used
Default:0staticDiscountnumberFixed discount in cents
Default:0percentageDiscountnumberPercentage discount points
Default:0companyIDstringCompany ID. Defaults to the authenticated user's company.
archivedbooleanDefault:false
Response
application/json
JSON result for this operation.
object
{}