Returns an array of ServiceCharge
objects
containing information about the types of fee applied to
restaurant sales. For example, an automatic gratuity applied to
the check for a large dining party might be a type of service
charge for a restaurant. If a lastModified
date is specified,
returns all objects that were created or modified after that
date.
lastModified | string <date> Limits the return data to objects created or modified after
a specific date and time. For example:
|
page | integer The sequence number of the first object to return in the array. Deprecated. For more information, see Paginating response data. |
pageSize | integer The number of objects to return in the array. Deprecated. For more information, see Paginating response data. |
pageToken | string A string that identifies the set of data objects that the
endpoint will return in its response data. You can use this
parameter to retrieve one page of response data. You
get the value that you supply in the |
Returns an array of ServiceCharge
objects.
curl -i -X GET \ 'https://toast-api-server/config/v2/serviceCharges?lastModified=2019-08-24&page=0&pageSize=0&pageToken=string' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Toast-Restaurant-External-ID: string'
[- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "name": "string",
- "amountType": "FIXED",
- "amount": 0,
- "percent": 0,
- "criteria": {
- "minCheckAmount": 0,
- "delivery": true,
- "maxCheckAmount": 0,
- "minDeliveryDistance": 0,
- "takeout": true,
- "dineIn": true
}, - "gratuity": true,
- "taxable": true,
- "applicableTaxes": [
- {
- "guid": "string",
- "entityType": "string",
- "name": "string",
- "isDefault": true,
- "rate": 0,
- "type": "PERCENT",
- "roundingType": "HALF_UP",
- "taxTable": [
- {
- "start": 0,
- "end": 0,
- "tax": 0,
- "pattern": true
}
], - "conditionalTaxRates": [
- {
- "condition": "string",
- "rate": 0
}
]
}
], - "serviceChargeCalculation": "PRE_DISCOUNT",
- "destination": "RESTAURANT"
}
]