Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
$kind: http-example
request:
url: "{{base_url}}/{{namespace}}/orders/:id"
method: DELETE
pathVariables:
id: ""
response:
statusCode: 200
statusText: OK
body:
type: json
content: |-
{
"id": "order_7YqM3KpL2n",
"internal_id": "ORD-1001",
"order_config": "order_config_transport",
"payload": { "id": "payload_x9Z2Lm8QpA", "waypoints": [], "entities": [], "meta": {} },
"customer": null,
"facilitator": null,
"driver_assigned": null,
"vehicle_assigned": null,
"tracking_number": { "id": "tracking_3Nf8Qw2YxM", "tracking_number": "FB-1001", "status": "canceled", "status_code": "canceled", "type": "order" },
"tracking_statuses": [],
"files": [],
"purchase_rate": null,
"notes": "Deliver through receiving bay.",
"type": "transport",
"status": "canceled",
"pod_method": null,
"pod_required": false,
"dispatched": false,
"started": false,
"adhoc": false,
"adhoc_distance": 0,
"distance": 0,
"time": 0,
"meta": {},
"dispatched_at": null,
"started_at": null,
"scheduled_at": null,
"updated_at": "2026-05-07T08:40:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}
order: 1000
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
$kind: http-example
request:
url: "{{base_url}}/{{namespace}}/orders/:id/capture-photo/:subjectId"
method: POST
headers:
Content-Type: application/json
Accept: application/json
pathVariables:
id: "order_7YqM3KpL2n"
subjectId: "order_7YqM3KpL2n"
body:
type: json
content: |-
{
"photos": ["iVBORw0KGgoAAAANSUhEUgAA..."],
"remarks": "Verified by Photo",
"data": {
"captured_by": "driver-app"
}
}
response:
statusCode: 200
statusText: OK
headers:
Content-Type: application/json
body:
type: json
content: |-
{
"id": "proof_3Vq8mN2xLa",
"subject_id": "order_7YqM3KpL2n",
"order_id": "order_7YqM3KpL2n",
"url": "https://files.example.com/uploads/company_123/photos/proof_3Vq8mN2xLa.png",
"remarks": "Verified by Photo",
"raw": "iVBORw0KGgoAAAANSUhEUgAA...",
"data": {
"captured_by": "driver-app"
},
"updated_at": "2026-05-07T09:15:00.000000Z",
"created_at": "2026-05-07T09:15:00.000000Z"
}
order: 1000
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ response:
statusCode: 200
statusText: OK
body:
type: text
content: ""
type: json
content: |-
{
"id": "proof_x9L2mN4pQr",
"subject_id": "entity_4Kp9Lm2QxZ",
"order_id": "order_7YqM3KpL2n",
"url": null,
"remarks": "Verified by QR Code Scan",
"raw": "entity-qr-scan-payload",
"data": { "scanner": "driver-app" },
"updated_at": "2026-05-07T09:05:00.000000Z",
"created_at": "2026-05-07T09:05:00.000000Z"
}
order: 1000
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ response:
statusCode: 200
statusText: OK
body:
type: text
content: ""
type: json
content: |-
{
"id": "proof_8pQ3mN7xYa",
"subject_id": "order_7YqM3KpL2n",
"order_id": "order_7YqM3KpL2n",
"url": "https://files.example.com/uploads/company_123/signatures/proof_8pQ3mN7xYa.png",
"remarks": "Verified by Signature",
"raw": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...",
"data": { "recipient_name": "Alex Receiver" },
"updated_at": "2026-05-07T09:10:00.000000Z",
"created_at": "2026-05-07T09:10:00.000000Z"
}
order: 1000
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
$kind: http-example
request:
url: "{{base_url}}/{{namespace}}/orders/:id/complete"
method: POST
headers:
Accept: application/json
pathVariables:
id: "order_7YqM3KpL2n"
response:
statusCode: 200
statusText: OK
headers:
Content-Type: application/json
body:
type: json
content: |-
{
"id": "order_7YqM3KpL2n",
"internal_id": "ORD-1001",
"order_config": "order_config_transport",
"payload": { "id": "payload_x9Z2Lm8QpA", "waypoints": [], "entities": [], "meta": {} },
"customer": null,
"facilitator": null,
"driver_assigned": { "id": "driver_A1b2C3d4E5", "name": "Alex Driver" },
"vehicle_assigned": null,
"tracking_number": { "id": "tracking_3Nf8Qw2YxM", "tracking_number": "FB-1001", "status": "completed", "status_code": "completed", "type": "order" },
"tracking_statuses": [],
"files": [],
"purchase_rate": null,
"notes": "Deliver through receiving bay.",
"type": "transport",
"status": "completed",
"pod_method": "signature",
"pod_required": true,
"dispatched": true,
"started": true,
"adhoc": false,
"adhoc_distance": 0,
"distance": 4830,
"time": 875,
"meta": {},
"dispatched_at": "2026-05-07T08:50:00.000000Z",
"started_at": "2026-05-07T08:52:00.000000Z",
"scheduled_at": null,
"updated_at": "2026-05-07T09:20:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}
order: 1000
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ request:
url: "{{base_url}}/{{namespace}}/orders"
method: POST
headers:
Content-Type: application/json
Accept: application/json
- key: Content-Type
value: application/json
- key: Accept
value: application/json
body:
type: json
content: |-
Expand All @@ -20,7 +22,8 @@ response:
statusCode: 201
statusText: Created
headers:
Content-Type: application/json
- key: Content-Type
value: application/json
body:
type: json
content: |-
Expand Down Expand Up @@ -123,3 +126,4 @@ response:
"created_at": "2026-05-07T08:30:00.000000Z"
}
order: 1000
name: Create an Order using Complete Payload
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,51 @@ response:
statusCode: 200
statusText: OK
body:
type: text
content: ""
type: json
content: |-
{
"id": "order_9LmN2QxZa4",
"internal_id": null,
"order_config": "order_config_transport",
"payload": {
"id": "payload_x9Z2Lm8QpA",
"pickup": { "id": "place_1A2b3C4d5E", "name": "Marina Bay Sands" },
"dropoff": { "id": "place_9Z8y7X6w5V", "name": "321 Orchard Rd" },
"return": null,
"waypoints": [],
"entities": [],
"cod_amount": null,
"cod_currency": null,
"cod_payment_method": null,
"payment_method": null,
"meta": {},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
},
"customer": null,
"facilitator": null,
"driver_assigned": null,
"vehicle_assigned": null,
"tracking_number": { "id": "tracking_7Nf8Qw2YxM", "tracking_number": "FB-1003", "status": "created", "status_code": "created", "type": "order" },
"tracking_statuses": [],
"files": [],
"purchase_rate": null,
"notes": null,
"type": "transport",
"status": "created",
"pod_method": null,
"pod_required": false,
"dispatched": false,
"started": false,
"adhoc": false,
"adhoc_distance": 0,
"distance": 0,
"time": 0,
"meta": {},
"dispatched_at": null,
"started_at": null,
"scheduled_at": null,
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}
order: 4000
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,61 @@ response:
statusCode: 200
statusText: OK
body:
type: text
content: ""
type: json
content: |-
{
"id": "order_8JqM4LpN3x",
"internal_id": null,
"order_config": "order_config_transport",
"payload": {
"id": "payload_2KpLm9QxZa",
"current_waypoint": "place_pickup123",
"pickup": { "id": "place_pickup123", "name": "Pickup" },
"dropoff": { "id": "place_dropoff456", "name": "Dropoff" },
"return": null,
"waypoints": [
{ "id": "waypoint_1", "place": { "id": "place_stop1", "name": "Stop 1" } }
],
"entities": [
{
"id": "entity_4Kp9Lm2QxZ",
"name": "Parcel",
"type": "parcel",
"photos": ["https://files.example.com/entity-photo.png"]
}
],
"cod_amount": null,
"cod_currency": null,
"cod_payment_method": null,
"payment_method": null,
"meta": {},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
},
"customer": null,
"facilitator": null,
"driver_assigned": null,
"vehicle_assigned": null,
"tracking_number": { "id": "tracking_6Nf8Qw2YxM", "tracking_number": "FB-1002", "status": "created", "status_code": "created", "type": "order" },
"tracking_statuses": [],
"files": [],
"purchase_rate": null,
"notes": null,
"type": "transport",
"status": "created",
"pod_method": null,
"pod_required": false,
"dispatched": false,
"started": false,
"adhoc": false,
"adhoc_distance": 0,
"distance": 0,
"time": 0,
"meta": {},
"dispatched_at": null,
"started_at": null,
"scheduled_at": null,
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}
order: 6000
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,60 @@ response:
statusCode: 200
statusText: OK
body:
type: text
content: ""
type: json
content: |-
{
"id": "order_2Qa9LmN4xZ",
"internal_id": null,
"order_config": "order_config_transport",
"payload": {
"id": "payload_4LmN9QxZa2",
"current_waypoint": "place_pickup123",
"pickup": { "id": "place_pickup123", "name": "Pickup" },
"dropoff": { "id": "place_dropoff456", "name": "Dropoff" },
"return": null,
"waypoints": [
{ "id": "waypoint_1", "place": { "id": "place_stop1", "name": "Stop 1" } }
],
"entities": [
{
"id": "entity_6Kp9Lm2QxZ",
"name": "Parcel",
"destination": "place_dropoff456"
}
],
"cod_amount": null,
"cod_currency": null,
"cod_payment_method": null,
"payment_method": null,
"meta": {},
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
},
"customer": null,
"facilitator": null,
"driver_assigned": null,
"vehicle_assigned": null,
"tracking_number": { "id": "tracking_8Nf8Qw2YxM", "tracking_number": "FB-1004", "status": "created", "status_code": "created", "type": "order" },
"tracking_statuses": [],
"files": [],
"purchase_rate": null,
"notes": null,
"type": "transport",
"status": "created",
"pod_method": null,
"pod_required": false,
"dispatched": false,
"started": false,
"adhoc": false,
"adhoc_distance": 0,
"distance": 0,
"time": 0,
"meta": {},
"dispatched_at": null,
"started_at": null,
"scheduled_at": null,
"updated_at": "2026-05-07T08:30:00.000000Z",
"created_at": "2026-05-07T08:30:00.000000Z"
}
order: 5000
Loading
Loading