A record of statuses and results of runsheet broadcasts
Retrieve broadcast record of the specified broadcast pair
plan_id required | string <uuid> ID of the plan of the pair |
pair_id required | string <uuid> ID of the pair to retrieve broadcast records of |
{- "pair_record": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "pair": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_timezone": "Asia/Singapore",
- "start_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_timezone": "Asia/Singapore",
- "start_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z"
}, - "version_seq": 0
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Broadcast Plan"
}, - "statuses": [
- {
- "current_state": "rejected",
- "action": "system_rejected",
- "reason": "string",
- "expired_time": "2019-08-24T14:15:22Z",
- "happened_at_utc": "2019-08-24T14:15:22Z",
- "saved_at_utc": "2019-08-24T14:15:22Z"
}
]
}
}
Retrieve the list of broadcast records of the specified broadcast plan.
plan_id required | string <uuid> ID of the plan of the pair |
{- "pair_records": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "pair": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_timezone": "Asia/Singapore",
- "start_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_timezone": "Asia/Singapore",
- "start_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z"
}, - "version_seq": 0
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Broadcast Plan"
}, - "statuses": [
- {
- "current_state": "rejected",
- "action": "system_rejected",
- "reason": "string",
- "expired_time": "2019-08-24T14:15:22Z",
- "happened_at_utc": "2019-08-24T14:15:22Z",
- "saved_at_utc": "2019-08-24T14:15:22Z"
}
]
}
]
}
Only Runsheet Broadcast Record Worker is authorized.
object (pair) | |
object (plan) | |
happened_at_utc | string <date-time> |
{- "pair": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "runsheet": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "My Runsheet",
- "tasks": [
- {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "total_item_weight": 0,
- "total_weight_unit": "string",
- "total_item_volume": 0,
- "total_volume_unit": "string",
- "total_item_count": 0,
- "client_time_utc": "2019-08-24T14:15:22Z",
- "client_timezone": "Asia/Singapore",
- "from_address": {
- "street_address": "201 Henderson Road",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "from_time_window": {
- "start_timezone": "Asia/Singapore",
- "start_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z"
}, - "to_address": {
- "street_address": "201 Henderson Road",
- "city": "Singapore",
- "state": "string",
- "country": "Singapore",
- "zip_code": 159545,
- "building_name": "Apex @ Henderson"
}, - "to_time_window": {
- "start_timezone": "Asia/Singapore",
- "start_time_utc": "2019-08-24T14:15:22Z",
- "end_timezone": "Asia/Singapore",
- "end_time_utc": "2019-08-24T14:15:22Z"
}
}
]
}, - "driver": {
- "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "name": "John Doe"
}
}, - "plan": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "My Runsheet Broadcast Plan"
}, - "happened_at_utc": "2019-08-24T14:15:22Z"
}
{- "message": "Successfully recorded pair creation."
}
Only Runsheet Broadcast Record Worker is authorized.
plan_id required | string <uuid> ID of the plan of the pair |
pair_id required | string <uuid> ID of the pair which broadcast record needs to be updated |
happened_at_utc | string <date-time> |
{- "happened_at_utc": "2019-08-24T14:15:22Z"
}
{- "message": "Successfully recorded pair deletion."
}
Only Runsheet Broadcast Plan Worker is authorized.
plan_id required | string <uuid> ID of the plan of the pair |
pair_id required | string <uuid> ID of the pair which broadcast record needs to be updated |
happened_at_utc | string <date-time> |
{- "happened_at_utc": "2019-08-24T14:15:22Z"
}
{- "message": "Successfully recorded pair broadcast."
}
Only Runsheet Broadcast Plan Worker is authorized.
plan_id required | string <uuid> ID of the plan of the pair |
pair_id required | string <uuid> ID of the pair which broadcast record needs to be updated |
happened_at_utc | string <date-time> |
{- "happened_at_utc": "2019-08-24T14:15:22Z"
}
{- "message": "Successfully recorded acceptance by driver."
}
Only Runsheet Broadcast Record Worker is authorized.
plan_id required | string <uuid> ID of the plan of the pair |
pair_id required | string <uuid> ID of the pair which broadcast record needs to be updated |
happened_at_utc | string <date-time> |
{- "happened_at_utc": "2019-08-24T14:15:22Z"
}
{- "message": "Successfully recorded rejection by driver."
}
Only Runsheet Broadcast Record Worker is authorized.
plan_id required | string <uuid> ID of the plan of the pair |
pair_id required | string <uuid> ID of the pair which broadcast record needs to be updated |
reason | string or null |
happened_at_utc | string <date-time> |
{- "reason": "string",
- "happened_at_utc": "2019-08-24T14:15:22Z"
}
{- "message": "Successfully recorded rejection by system."
}