Add a gig discount to a gig contract
Creates a gig discount with gig_contract_id set to this gig contract.
Path Parameters
- Type: stringFormat: uuididrequired
Gig contract id.
Body·
required
application/json
Fields accepted when creating a gig discount. Unknown or read-only fields are rejected.
- Type: string | nullFormat: uuidgig
_id requiredReferences gigs.id.
- Type: number | nullamount
_off Minor units. Exactly one of percent_off and amount_off.
- Type: string | nullFormat: uuidcoupon
_id The reason, when it is one of the band’s named ones. Empty for a one-off. References coupons.id.
- Type: string | nullFormat: uuidgig
_contract _id The contract or addendum it was agreed in. References gig_contracts.id.
- Type: string | nullFormat: uuidgig
_product _id The line this discount is on. Empty: a gig-level discount. References gig_products.id.
- Type: string | nulllabel
The wording on the contract. Defaults to the coupon’s label.
- Type: number | nullorder
Application order among discounts at the same level.
- Type: number | nullpercent
_off 0 to 100. Exactly one of percent_off and amount_off.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/gig-contracts/{id}/discounts
curl https://api.weddingoperatingsystems.com/api/v1/gig-contracts/123e4567-e89b-12d3-a456-426614174000/discounts \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"label": null,
"gig_id": null,
"gig_product_id": null,
"gig_contract_id": null,
"coupon_id": null,
"percent_off": null,
"amount_off": null,
"order": null
}'
{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"label": null,
"gig_id": null,
"gig_product_id": null,
"gig_contract_id": null,
"coupon_id": null,
"percent_off": null,
"amount_off": null,
"order": null,
"created_time": "2026-10-08T19:05:34.874Z",
"last_edited_time": "2026-10-08T19:05:34.874Z",
"amount": 1,
"coupon": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"label": null,
"status": "active",
"percent_off": null,
"amount_off": null,
"level": "line",
"applies_to": null,
"order": null,
"created_time": "2026-10-08T19:05:34.874Z",
"last_edited_time": "2026-10-08T19:05:34.874Z"
}
}
}