Logistic Operators
Lista de todos os operadores logísticos
GET
https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/logisticOperators
[
{
"id": "883i8thuT",
"name": "Bdoo"
}
]
Habilita o operador logístico no merchant
POST
https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/logisticOperators/{logisticOperatorId}
Exemplo do conteúdo da requisição
[
{ "key": "BDOO.CLIENT_ID", "value": "SEU CLIENT ID" },
{ "key": "BDOO.CLIENT_SECRET", "value": "SEU CLIENT SECRET" }
]
Atualiza o operador logístico no merchant
PUT
https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/logisticOperators/{logisticOperatorId}
Exemplo do conteúdo da requisição
[
{ "key": "BDOO.CLIENT_ID", "value": "SEU CLIENT ID" },
{ "key": "BDOO.CLIENT_SECRET", "value": "SEU CLIENT SECRET" }
]
Remove o operador logístico do Merchant
DELETE
https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/logisticOperators/{logisticOperatorId}
Consulta o operador logístico no Merchant
GET
https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/logisticOperators/{logisticOperatorId}
[
{ "key": "BDOO.CLIENT_ID", "value": "SEU CLIENT ID" },
{ "key": "BDOO.CLIENT_SECRET", "value": "SEU CLIENT SECRET" }
]
Associa um operador logístico ao canal de venda
POST
https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/logisticOperators/{logisticOperatorId}/{saleChannelId}/associate
{
// Response
}
Desassocia um operador logístico ao canal de venda
DELETE
https://{account}.myhubdelivery.io/merchants/api/v1/{merchantId}/logisticOperators/{logisticOperatorId}/{saleChannelId}/disassociate
{}
Considerações importantes
Por questão de segurança, no ambiente sandbox a comunicação com os canais de venda e operadores logísticos são restritos, para a criação de pedidos utilize a rota de pedidos Fake.
Last updated