Skip to main content

Accounts - Update

Overview

This endpoint allows you to update given account.


Request

PUT /v1/accounts/{account_uuid}

Request Values

KeyTypeDescriptionExample
webhooksobject Webhooksdetails for updating webhook urls
default_promised_delivery_minutesintegerThe default promised delivery minutes for this store45

Webhooks object

KeyTypeDescriptionExample
item_status_updated_statusesarray (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_urlstringwebhook url for item_status_updated. If not specify will rollback to default webhook urlhttp://webhook.com/item_status_updated
order_preparation_updated_statusesarray (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_urlstringwebhook url for order_preparation_updated. If not specify will rollback to default webhook urlhttp://webhook.com/order_preparation_updated
order_kds_print_request_webhook_urlstringwebhook url for order_kds_print_request. If not specify will rollback to default webhook urlhttp://webhook.com/order_preparation_updated
webhook_urlstringdefault webhook urlhttp://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"
}
}
}