OrderProvider
Representa a una asignación de una Orden con un Provider.
Modelo OrderProvider
{
"id": 1,
"provider_status": 179848,
"scheduled_at": null,
"assigned_at": "2019-02-13 16:06:02",
"unassigned_at": null,
"started_at": "2019-02-20 18:23:08",
"picked_up_at": null,
"arrived_at": "2019-02-20 18:24:24",
"working_at": null,
"finished_at": "2019-02-20 18:24:48",
"provider_fee_e2": 0,
"created_at": "2019-10-25 15:02:59",
"updated_at": "2019-10-25 15:02:59",
"order_id": 1,
"provider_id": 1,
"client_id": 1,
"client_rating_id": null,
"provider_rating_id": null,
"in_destination_at": null,
"tracking_statistics": {
"version": 1,
"branch_order_distance": 452,
"total_run_distance": 0
},
"status_info": {
"status_assigned": true,
"status_started": true,
"status_destination_reached": false,
"status_picked_up": false,
"status_running": false,
"status_working": false,
"status_arrived": true,
"status_finished": true
},
"assignments": [
{
"id": 1,
"order_id": 1,
"provider_id": 1,
"order_provider_id": 1,
"ordered_good_id": 1,
"is_successful": true,
"completed_at": "2019-02-20 18:24:48",
"provider_fee_e2": 0,
"created_at": "2019-10-25 15:03:05",
"updated_at": "2019-10-25 15:03:05"
},
{
"id": 2,
"order_id": 1,
"provider_id": 1,
"order_provider_id": 1,
"ordered_good_id": 2,
"is_successful": true,
"completed_at": "2019-02-20 18:24:48",
"provider_fee_e2": 0,
"created_at": "2019-10-25 15:03:05",
"updated_at": "2019-10-25 15:03:05"
},
{
"id": 3,
"order_id": 1,
"provider_id": 1,
"order_provider_id": 1,
"ordered_good_id": 3,
"is_successful": true,
"completed_at": "2019-02-20 18:24:48",
"provider_fee_e2": 0,
"created_at": "2019-10-25 15:03:05",
"updated_at": "2019-10-25 15:03:05"
},
{
"id": 4,
"order_id": 1,
"provider_id": 1,
"order_provider_id": 1,
"ordered_good_id": 4,
"is_successful": true,
"completed_at": "2019-02-20 18:24:48",
"provider_fee_e2": 0,
"created_at": "2019-10-25 15:03:05",
"updated_at": "2019-10-25 15:03:05"
}
]
}
Listar OrderProvider
Listar OrderProvider de Order
{info} Soporta:
Paginación
Filters
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/orders/{orderId}/order-providers |
Authorization |
Listar OrderProvider de Provider
{info} Soporta:
Paginación
Filters
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/providers/{providerId}/order-providers |
Authorization |
Listar Provider Active
{info} Soporta:
Paginación
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/providers/{providerId}/order-providers/active |
Authorization |
Listar Provider Today
{info} Soporta:
Paginación
Filters
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/providers/{providerId}/order-providers/today |
Authorization |
Listar OrderedGood
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/order-providers/{orderProviderId}/ordered-goods |
Authorization |
Mostrar OrderProvider
{info} Soporta:
Carga dinámica
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/order-providers/{orderProviderId} |
Authorization |
Acciones de OrderProvider
Begin
Begins an Order (changes status to: running).
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/order-providers/{orderProviderId}/set-running |
Authorization |
Set In Destination
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/order-providers/{orderProviderId}/set-in-destination |
Authorization |
Set Collected
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/order-providers/{orderProviderId}/set-collected |
Authorization |
Attend
Begins an Order (changes status to: running).
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/order-providers/{orderProviderId}/set-working |
Authorization |
Deliver
Marks an Order as arrived
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/order-providers/{orderProviderId}/set-arrived |
Authorization |
Complete
Completes all items attached to a Provider. Used for product deliveries completion.
Método |
URI |
Cabeceras |
POST |
/companies/{companyId}/order-providers/{orderProviderId}/set-completed |
Authorization |
Assign
Método |
URI |
Cabeceras |
PUT |
/companies/{companyId}/orders/{orderId}/providers/{providerId} |
Authorization |
[
"integer"
]
Unassign
Método |
URI |
Cabeceras |
DELETE |
/companies/{companyId}/orders/{orderId}/providers/{providerId} |
Authorization |
Assign
Método |
URI |
Cabeceras |
PUT |
/companies/{companyId}/orders/{orderId}/providers |
Authorization |
[
{
"ordered_good_id": "integer",
"provider_id": "integer"
}
]
Index Alternative
Método |
URI |
Cabeceras |
GET |
/companies/{companyId}/orders/{orderId}/providers/{providerId}/ordered-goods |
Authorization |
Enlaces de OrderProvider