Merchants
Pesquisar merchants
Pesquisa de merchants
GET https://{account}.myhubdelivery.io/merchants/api/v1/search
Query Parameters
name
String
status
String
AVAILABLE|UNAVAILABLE
latitude
double
longitude
double
offset
integer
Min 0
limit
integer
Min 1
{
"total": 1,
"merchants": [
{
"id": "Jj9gZoBbxY",
"name": "Restaurant",
"description": null,
"imageUrl": "",
"status": "AVAILABLE",
"distance": 0
}
]
}{
// Response
}Alterar aceite de pedidos
Alterar o tipo de aceite de pedidos
PATCH https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/orderAcceptType
Os pedidos podem ser aceitos manualmente ou automáticamente pela Hub Delivery. Por padrão o aceite do merchant é o MANUAL.
Path Parameters
merchantId*
String
Identificador do merchant
Request Body
orderAcceptType*
String
MANUAL|AUTOMATIC
Exemplo da requisição (Body)
Atualização de Merchant - Upload
Atualizar o merchant via Upload
POST https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/merchantUpdate/upload
Exemplo do conteúdo da requisição
Atualização de Merchant
POST
https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/merchantUpdate
Exemplo do conteúdo da requisição
Remove um Merchant
DELETE https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}
Consulta do status de um Merchant
GET https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/status
Atualiza o status de um Merchant
PATCH https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/status
Caso o valor enviado seja UNAVAILABLE, os pedidos serão cancelados automaticamente.
Request Body
status*
String
AVAILABLE | UNAVAILABLE
Exemplo do conteúdo da requisição
Lista de todas as categorias de merchant
GET https://{account}.myhubdelivery.io/merchants/api/v1/categories
Last updated