Obter o histórico de custódia de um pedido
curl --request GET \
--url https://api.muveya.com/v1/fulfillments/{orderId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/fulfillments/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/fulfillments/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"orderId": "<string>",
"status": "allocating",
"movements": [
{
"movementId": "<string>",
"type": "receive",
"boxId": "<string>",
"catalogItemId": "<string>",
"quantityDelta": 123,
"actorId": "<string>",
"occurredAt": "2023-11-07T05:31:56Z",
"recordedAt": "2023-11-07T05:31:56Z",
"reservedDelta": 123,
"secondActorId": "<string>",
"fromWarehouseId": "<string>",
"toWarehouseId": "<string>",
"reasonCode": "<string>",
"idempotencyKey": "<string>",
"correlationId": "<string>",
"splitId": "<string>"
}
],
"delivery": {
"actorUserId": "<string>",
"deliveredAt": "2023-11-07T05:31:56Z",
"boxIds": [
"<string>"
],
"exception": {
"reason": "<string>",
"note": "<string>"
}
},
"receipt": {
"actorUserId": "<string>",
"receivedAt": "2023-11-07T05:31:56Z",
"acceptedBoxIds": [
"<string>"
],
"disputed": [
{
"boxId": "<string>",
"reason": "<string>",
"quarantine": true,
"note": "<string>"
}
]
},
"closure": {
"actorUserId": "<string>",
"closedAt": "2023-11-07T05:31:56Z"
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}Entregas
Obter o histórico de custódia de um pedido
Lê o histórico de custódia de um pedido, sem dados sensíveis: o status, as movimentações do registro e os registros de entrega, recebimento e encerramento. Requer fulfillment:read. 404 quando não existe ou pertence a outra clínica odontológica.
GET
/
v1
/
fulfillments
/
{orderId}
Obter o histórico de custódia de um pedido
curl --request GET \
--url https://api.muveya.com/v1/fulfillments/{orderId} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.muveya.com/v1/fulfillments/{orderId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.muveya.com/v1/fulfillments/{orderId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"orderId": "<string>",
"status": "allocating",
"movements": [
{
"movementId": "<string>",
"type": "receive",
"boxId": "<string>",
"catalogItemId": "<string>",
"quantityDelta": 123,
"actorId": "<string>",
"occurredAt": "2023-11-07T05:31:56Z",
"recordedAt": "2023-11-07T05:31:56Z",
"reservedDelta": 123,
"secondActorId": "<string>",
"fromWarehouseId": "<string>",
"toWarehouseId": "<string>",
"reasonCode": "<string>",
"idempotencyKey": "<string>",
"correlationId": "<string>",
"splitId": "<string>"
}
],
"delivery": {
"actorUserId": "<string>",
"deliveredAt": "2023-11-07T05:31:56Z",
"boxIds": [
"<string>"
],
"exception": {
"reason": "<string>",
"note": "<string>"
}
},
"receipt": {
"actorUserId": "<string>",
"receivedAt": "2023-11-07T05:31:56Z",
"acceptedBoxIds": [
"<string>"
],
"disputed": [
{
"boxId": "<string>",
"reason": "<string>",
"quarantine": true,
"note": "<string>"
}
]
},
"closure": {
"actorUserId": "<string>",
"closedAt": "2023-11-07T05:31:56Z"
}
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"detail": "<string>",
"instance": "<string>",
"code": "<string>",
"requestId": "<string>"
}Autorizações
Chave de API opaca mvy_test_ enviada como token Bearer. O servidor deriva dela exatamente uma clínica odontológica; o caminho nunca leva um seletor de clínica odontológica.
Parâmetros de caminho
O id opaco do pedido.
Resposta
O recurso solicitado.
Opções disponíveis:
allocating, allocated, picking, dispatched, delivered, exception, received, partially_fulfilled, closed Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes