The discounts agreed in this contract
Same as listing gig discounts with filter[gig_contract_id] pinned to this gig contract. 404 if the gig contract does not exist.
Path Parameters
- Type: stringFormat: uuididrequired
Gig contract id.
Query Parameters
- Type: stringexpand
Comma-separated relations to return inline: coupon.
- Type: integerlimitmin:0max:200
Page size, 50 by default, 200 at most.
- Type: integeroffsetmin:0
Records to skip.
- Type: stringsort
Comma-separated fields; prefix with
-for descending. Sortable: label, gig_id, gig_product_id, gig_contract_id, coupon_id, percent_off, amount_off, order, created_time, last_edited_time, id. Default: order,created_time. - Type: stringfields
Comma-separated subset of fields to return.
idis always included. - filter[label]
Shorthand
filter[label]=valuemeans equals. Operators: equals, does_not_equal, contains, does_not_contain, starts_with, ends_with, is_empty, is_not_empty.- Type: string
Shorthand
filter[label]=valuemeans equals. Operators: equals, does_not_equal, contains, does_not_contain, starts_with, ends_with, is_empty, is_not_empty.
- filter[gig
_id] Shorthand
filter[gig_id]=valuemeans equals. Operators: equals, does_not_equal, is_empty, is_not_empty.- Type: stringFormat: uuid
Shorthand
filter[gig_id]=valuemeans equals. Operators: equals, does_not_equal, is_empty, is_not_empty.
- filter[gig
_product _id] Shorthand
filter[gig_product_id]=valuemeans equals. Operators: equals, does_not_equal, is_empty, is_not_empty.- Type: stringFormat: uuid
Shorthand
filter[gig_product_id]=valuemeans equals. Operators: equals, does_not_equal, is_empty, is_not_empty.
- filter[gig
_contract _id] Shorthand
filter[gig_contract_id]=valuemeans equals. Operators: equals, does_not_equal, is_empty, is_not_empty.- Type: stringFormat: uuid
Shorthand
filter[gig_contract_id]=valuemeans equals. Operators: equals, does_not_equal, is_empty, is_not_empty.
- filter[coupon
_id] Shorthand
filter[coupon_id]=valuemeans equals. Operators: equals, does_not_equal, is_empty, is_not_empty.- Type: stringFormat: uuid
Shorthand
filter[coupon_id]=valuemeans equals. Operators: equals, does_not_equal, is_empty, is_not_empty.
- filter[percent
_off] Shorthand
filter[percent_off]=valuemeans equals. Operators: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty.- Type: number
Shorthand
filter[percent_off]=valuemeans equals. Operators: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty.
- filter[amount
_off] Shorthand
filter[amount_off]=valuemeans equals. Operators: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty.- Type: number
Shorthand
filter[amount_off]=valuemeans equals. Operators: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty.
- filter[order]
Shorthand
filter[order]=valuemeans equals. Operators: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty.- Type: number
Shorthand
filter[order]=valuemeans equals. Operators: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty.
- filter[created
_time] Shorthand
filter[created_time]=valuemeans equals. Operators: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty.- Type: stringFormat: date-time
Shorthand
filter[created_time]=valuemeans equals. Operators: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty.
- filter[last
_edited _time] Shorthand
filter[last_edited_time]=valuemeans equals. Operators: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty.- Type: stringFormat: date-time
Shorthand
filter[last_edited_time]=valuemeans equals. Operators: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
curl 'https://api.weddingoperatingsystems.com/api/v1/gig-contracts/123e4567-e89b-12d3-a456-426614174000/discounts?expand=coupon&limit=50&offset=0&sort=order%2Ccreated_time' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"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"
}
}
],
"meta": {
"total": 1,
"limit": 1,
"offset": 1
}
}