Obtener el historial de custodia de un 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
Obtener el historial de custodia de un pedido
Lee el historial de custodia de un pedido, sin datos sensibles: el estado, los movimientos del registro y los registros de entrega, recepción y cierre. Requiere fulfillment:read. 404 cuando no existe o pertenece a otra clínica dental.
GET
/
v1
/
fulfillments
/
{orderId}
Obtener el historial de custodia de un 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>"
}Autorizaciones
Clave de API opaca mvy_test_ enviada como token Bearer. El servidor deriva de ella exactamente una clínica dental; la ruta nunca lleva un selector de clínica dental.
Parámetros de ruta
El id opaco del pedido.
Respuesta
El recurso solicitado.
Opciones disponibles:
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