Init

Initialize an Order. At this stage the FMD Planner should be able to agree on the quoted price and should be able to create an order to block the service (This may lead to searching for FMD Agents, Driver assignment) should be able to see acceptance / rejection of the order along with a payment prompt

Request:

Context:

See Context

Message:

PropertyType
orderFmdOrder

Example:

{
"context": {
"domain": "FINAL-MILE-DELIVERY",
"action": "string",
"version": "string",
"transaction_id": "string",
"session_id": "string",
"timestamp": "2020-07-08T08:05:37.905Z",
"token": "string",
"status": "string"
},
"message": {
"quotation_id": "string"
}
}

Response:

Context:

See Context

Message:

PropertyType
ackAck

Error:

See Error

Example:

{
"context": {
"domain": "FINAL-MILE-DELIVERY",
"action": "string",
"version": "string",
"transaction_id": "string",
"session_id": "string",
"timestamp": "2020-07-08T07:06:34.257Z",
"token": "string",
"status": "string"
},
"message": {
"status": "ACK"
},
"error": {
"t_error": {
"t_protocol": "string",
"t_version": "string",
"t_code": "string"
},
"r_error": {
"rcode": "string",
"rmessage": "string"
},
"f_error": [
{
"fpath": "string",
"fcode": "string",
"fmessage": "string"
}
],
"d_error": {}
}
}