Create or update a Surcount
PUT ~/menu/surcounts/:pos-id
Headers
Field | Type | Description |
---|---|---|
Authorization | String |
Bearer authentication token prefixed with |
Content-Type | String |
Request content type, must be 'application/json' |
vendor | String |
The POS vendor name retrieved from Doshii dashboard |
Parameters
Field | Type | Description |
---|---|---|
:pos-id | String |
The POS id of the Surcount |
name | String |
The display name |
amount | String |
The amount to surcharge/discount (positive/negative integer) |
type | String |
Whether this is a 'absolute' or 'percentage' |
posIdoptional | String |
Change the surcounts' POS id |
Response
Field | Type | Description |
---|---|---|
posId | String |
The POS id of the Surcount |
name | String |
The display name |
amount | String |
The amount to surcharge/discount (positive/negative integer) |
type | String |
Whether this is a 'absolute' or 'percentage' |
Examples
Request
{
"posId": "100_percent_discount",
"name": "Free Item",
"amount": "-100",
"type": "percentage"
}
Response
{ "posId": "100_percent_discount", "name": "Free Item", "amount": "-100", "type": "percentage" }
Comments
0 comments
Please sign in to leave a comment.