API referenceCoupon
Archive Coupon
Archive a coupon by setting archived to true. App connections need the booking:write or inventory:write scope.
POST
/coupon/{id}/archivecurl -X POST "https://dash.lockii.app/api/v1/coupon/{id}/archive" \
-H "x-api-key: $LOCKII_API_KEY"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.
Parameters
idstringpathrequiredCoupon ID
Response
application/json
JSON result for this operation.
object
{}