Accounts - Update
Overview
This endpoint allows you to update given account.
Request
PUT /v1/accounts/{account_uuid}
Request Values
Key | Type | Description | Example |
---|---|---|---|
webhooks | object Webhooks | details for updating webhook urls | |
default_promised_delivery_minutes | integer | The default promised delivery minutes for this store | 45 |
Webhooks object
Key | Type | Description | Example |
---|---|---|---|
item_status_updated_statuses | array (string) | array of item statuses that you want the webhook to trigger on: being_prepared, suggested or prepared. Statuses that aren't sent will be disabled. | ["being_prepared", "prepared"] |
item_status_updated_url | string | webhook url for item_status_updated. If not specify will rollback to default webhook url | http://webhook.com/item_status_updated |
order_preparation_updated_statuses | array (string) | array of preparation statuses that you want the webhook to trigger on: being_prepared, suggested or prepared. Statuses that aren't sent will be disabled. | ["being_prepared"] |
order_preparation_updated_url | string | webhook url for order_preparation_updated. If not specify will rollback to default webhook url | http://webhook.com/order_preparation_updated |
order_kds_print_request_webhook_url | string | webhook url for order_kds_print_request. If not specify will rollback to default webhook url | http://webhook.com/order_preparation_updated |
webhook_url | string | default webhook url | http://webhook.com/order_kds_print_request |
Example Request
PUT /v1/accounts/3584a197b5a9
{
"default_promised_delivery_minutes": 45,
"webhooks": {
"item_status_updated_statuses": ["being_prepared", "prepared"],
"item_status_updated_url": "http://webhook.com/item_status_updated",
"order_preparation_updated_statuses": ["being_prepared"],
"order_preparation_updated_url": "http://webhook.com/order_preparation_updated",
"order_kds_print_request_webhook_url": "http://webhook.com/order_kds_print_request",
"webhook_url": "http://webhook.com/default_Webhook_url"
}
}
Example Response
{
"default_promised_delivery_minutes": 30,
"webhook_settings": {
"webhook_url": "http://webhook.com/default_Webhook_url",
"order_kds_print_request_webhook_url": "http://webhook.com/order_kds_print_request",
"item_status_updated": {
"being_prepared": true,
"prepared": true,
"suggested": false,
"webhook_url": "http://webhook.com/item_status_updated"
},
"order_preparation_updated": {
"being_prepared": true,
"prepared": false,
"suggested": false,
"webhook_url": "http://webhook.com/order_preparation_updated"
}
}
}