Pular para o conteúdo

PATCH /v1/store/zones/{id}

PATCH
/v1/store/zones/{id}
curl --request PATCH \
--url https://seu-endereco-da-api/v1/store/zones/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "feeCents": 1, "active": true }'

Permissão que a Chave de acesso precisa: Gerenciar a Central de apps (integrations:manage).

id
required
string
Media typeapplication/json
object
name
string
<= 80 characters /\S/
feeCents
number
<= 100000000
active
boolean

Example generated

{
"name": "example",
"feeCents": 1,
"active": true
}
Media typeapplication/json
object
activated
required
boolean
enabled
boolean
slug
string
name
string
description
string
nullable
primaryColor
string
logoUrl

Signed url, valid for one hour

string
nullable
coverUrl

Signed url, valid for one hour

string
nullable
kind
required
string
Allowed values: food fashion beauty general
alwaysOpen
required
boolean
channelId
string
nullable
acceptedPayments
Array<string>
minOrderCents
number
averagePrepMinutes
number
nullable
averageDeliveryMinutes
number
nullable
acceptsPickup
boolean
acceptsDelivery
boolean
timezone
string
notificationTemplateId

Approved template used for the order notifications outside the 24h window

string
nullable
codeTemplateId

Approved template with one variable (the code) used to send the tracking code outside the 24h window

string
nullable
notificationTemplateVariables

Texts for the template variables; {cliente}, {pedido}, {status}, {total} and {link} are replaced

Array<string>
notificationHeaderMediaKey

File sent in the header of the notification template when it has an image, video or document header

string
nullable
notificationHeaderMediaMime
string
nullable
hours
Array<object>
object
weekday
required

0 is Sunday

number
opensAt
required
string
closesAt
required

Earlier than opensAt means the next day

string
zones
Array<object>
object
id
required
string
name
required
string
feeCents
required

Delivery fee in centavos

number
active
required
boolean
gaps

What still blocks the store from going live

Array<string>
asaasReady
boolean
publicUrl
string
nullable

Example

{
"kind": "food"
}