{ "opencollection": "1.0.0", "info": { "name": "OwnerRez API v2 Bookings Discounts API", "version": "2.0" }, "request": { "auth": { "type": "basic", "username": "{{username}}", "password": "{{password}}" } }, "items": [ { "info": { "name": "Discounts", "type": "folder" }, "items": [ { "info": { "name": "List discounts", "type": "http" }, "http": { "method": "GET", "url": "https://api.ownerrez.com/v2/discounts", "params": [ { "name": "property_ids", "value": "", "type": "query", "description": "One or more property identifiers to filter by." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of items to return per page." }, { "name": "offset", "value": "", "type": "query", "description": "Number of items to skip for pagination." } ] }, "docs": "Returns a paginated list of discount rules." }, { "info": { "name": "Create a discount", "type": "http" }, "http": { "method": "POST", "url": "https://api.ownerrez.com/v2/discounts", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new discount rule." }, { "info": { "name": "Retrieve a discount", "type": "http" }, "http": { "method": "GET", "url": "https://api.ownerrez.com/v2/discounts/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource." } ] }, "docs": "Retrieves a single discount by identifier." }, { "info": { "name": "Update a discount", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.ownerrez.com/v2/discounts/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates a discount rule." }, { "info": { "name": "Delete a discount", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.ownerrez.com/v2/discounts/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The unique identifier of the resource." } ] }, "docs": "Deletes a discount rule." } ] } ], "bundled": true }