Merchants

Sale ChannelsLogistic Operators

Pesquisar merchants

Pesquisa de merchants

GET https://{account}.myhubdelivery.io/merchants/api/v1/search

Query Parameters

Name
Type
Description

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
        }
    ]
}

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

Name
Type
Description

merchantId*

String

Identificador do merchant

Request Body

Name
Type
Description

orderAcceptType*

String

MANUAL|AUTOMATIC

CURL

Atualização de Merchant - Upload

Atualizar o merchant via Upload

POST https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/merchantUpdate/upload

Atualização de Merchant

POST https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/merchantUpdate

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

Name
Type
Description

status*

String

AVAILABLE | UNAVAILABLE

Lista de todas as categorias de merchant

GET https://{account}.myhubdelivery.io/merchants/api/v1/categories

Last updated