{ "opencollection": "1.0.0", "info": { "name": "Tito Admin Account Discount Codes API", "version": "3.0" }, "request": { "auth": { "type": "apikey", "key": "Authorization", "value": "{{Authorization}}", "placement": "header" } }, "items": [ { "info": { "name": "Discount Codes", "type": "folder" }, "items": [ { "info": { "name": "Get all discount codes", "type": "http" }, "http": { "method": "GET", "url": "https://api.tito.io/v3/:account_slug/:event_slug/discount_codes", "params": [ { "name": "account_slug", "value": "", "type": "path", "description": "The slug attribute of an Account." }, { "name": "event_slug", "value": "", "type": "path", "description": "The slug attribute of an Event." } ] }, "docs": "Get all discount codes" }, { "info": { "name": "Create a discount code", "type": "http" }, "http": { "method": "POST", "url": "https://api.tito.io/v3/:account_slug/:event_slug/discount_codes", "params": [ { "name": "account_slug", "value": "", "type": "path", "description": "The slug attribute of an Account." }, { "name": "event_slug", "value": "", "type": "path", "description": "The slug attribute of an Event." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Create a discount code" }, { "info": { "name": "Get a discount code", "type": "http" }, "http": { "method": "GET", "url": "https://api.tito.io/v3/:account_slug/:event_slug/discount_codes/:discount_code_id", "params": [ { "name": "account_slug", "value": "", "type": "path", "description": "The slug attribute of an Account." }, { "name": "event_slug", "value": "", "type": "path", "description": "The slug attribute of an Event." }, { "name": "discount_code_id", "value": "", "type": "path", "description": "The id of a Discount Code." } ] }, "docs": "Get a discount code" }, { "info": { "name": "Update a discount code", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.tito.io/v3/:account_slug/:event_slug/discount_codes/:discount_code_id", "params": [ { "name": "account_slug", "value": "", "type": "path", "description": "The slug attribute of an Account." }, { "name": "event_slug", "value": "", "type": "path", "description": "The slug attribute of an Event." }, { "name": "discount_code_id", "value": "", "type": "path", "description": "The id of a Discount Code." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Update a discount code" }, { "info": { "name": "Delete a discount code", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.tito.io/v3/:account_slug/:event_slug/discount_codes/:discount_code_id", "params": [ { "name": "account_slug", "value": "", "type": "path", "description": "The slug attribute of an Account." }, { "name": "event_slug", "value": "", "type": "path", "description": "The slug attribute of an Event." }, { "name": "discount_code_id", "value": "", "type": "path", "description": "The id of a Discount Code." } ] }, "docs": "Delete a discount code" } ] } ], "bundled": true }