QuickBooks: Create a charge — response body — context restaurant
Create a charge: response body, field context / restaurant. Complete fields and constraints for contract 2026-10-20.
API reference · Contract 2026-10-20
SDK schema: Create a charge — response body — context restaurant
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: allowed |
beverageAmount | JSON | Optional | The amount of the current charge attributed to beverages. Decimal string |
beverageAmount (anyOf 1) | JSON | Alternative | |
beverageAmount (anyOf 1) (anyOf 1) | number | Alternative | |
beverageAmount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
beverageAmount (anyOf 2) | string | Alternative | |
foodAmount | JSON | Optional | The amount of the current charge attributed to food. Decimal string |
foodAmount (anyOf 1) | JSON | Alternative | |
foodAmount (anyOf 1) (anyOf 1) | number | Alternative | |
foodAmount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
foodAmount (anyOf 2) | string | Alternative | |
serverID | string | Optional | The 2-digit string that identifies the individual server responsible for the transaction. Restaurant assign their own identifiers to their servers. |
taxAmount | JSON | Optional | The amount of the current charge attributed to tax. Decimal string |
taxAmount (anyOf 1) | JSON | Alternative | |
taxAmount (anyOf 1) (anyOf 1) | number | Alternative | |
taxAmount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
taxAmount (anyOf 2) | string | Alternative | |
tipAmount | JSON | Optional | The amount of the current charge attributed to tips. Decimal string |
tipAmount (anyOf 1) | JSON | Alternative | |
tipAmount (anyOf 1) (anyOf 1) | number | Alternative | |
tipAmount (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
tipAmount (anyOf 2) | string | Alternative |