OrderProvider
Representa a una asignación de una Orden con un Provider.
Modelo OrderProvider
{
"id": 847,
"provider_status": 179336,
"scheduled_at": null,
"assigned_at": "2020-04-30 23:45:57",
"unassigned_at": null,
"started_at": "2020-05-06 19:09:55",
"picked_up_at": null,
"arrived_at": "2020-05-06 19:23:38",
"working_at": null,
"finished_at": "2020-05-06 19:23:52",
"provider_fee_e2": 0,
"created_at": "2020-04-30 23:45:57",
"updated_at": "2020-05-06 19:23:52",
"order_id": 1531,
"provider_id": 36,
"client_id": 39,
"client_rating_id": null,
"provider_rating_id": null,
"company_id": 116,
"in_destination_at": null,
"tracking_statistics": {
"version": 1,
"branch_order_distance": 287603,
"total_run_distance": 0
},
"is_shopping_mode": false,
"snapshots": null,
"status": "DELIVERED",
"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": 1008,
"order_id": 1531,
"provider_id": 36,
"order_provider_id": 847,
"ordered_good_id": 1744,
"is_successful": true,
"completed_at": "2020-05-06 19:23:52",
"provider_fee_e2": 0,
"created_at": "2020-04-30 23:45:57",
"updated_at": "2020-05-06 19:23:52"
}
]
}
Atributo |
Tipo |
Descripción |
id |
int |
- |
provider_status |
int |
- |
assigned_at |
datetime |
- |
started_at |
datetime\|null |
- |
arrived_at |
datetime\|null |
- |
finished_at |
datetime\|null |
- |
provider_fee_e2 |
int\|null |
- |
created_at |
datetime\|null |
- |
updated_at |
datetime\|null |
- |
order_id |
int |
- |
provider_id |
int |
- |
client_id |
int |
- |
company_id |
int |
- |
tracking_statistics |
array\|null |
- |
is_shopping_mode |
bool |
- |
status |
string |
- |
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