Deliveries API
Deliveries endpoint အားလုံး၊ ၎င်းတို့ရဲ့ field များနဲ့ ဥပမာ။
FOM ရဲ့ OpenAPI document ကနေ ထုတ်ထားပါတယ်။ Field ရှင်းလင်းချက်တွေက အင်္ဂလိပ်လို ဖြစ်ပါတယ်။ Request တိုင်းမှာ API key လိုပါတယ်၊ Authentication ကို ကြည့်ပါ။
delivery object
| Field | Type | ရှင်းလင်းချက် |
|---|---|---|
id | string | |
status | scheduled, out_for_delivery, delivered | |
scheduled_at | string | Can be null. |
delivered_at | string | Can be null. |
order_id | string | |
order_no | string | e.g. ORD-0319 |
address | string | |
delivery_fee | number | Can be null. |
created_at | string | |
updated_at | string |
List deliveries, newest first, or changes since a time
GET /public/v1/deliveriesScope: deliveries:read
Query parameter များ
| Field | Type | မဖြစ်မနေ | ရှင်းလင်းချက် |
|---|---|---|---|
limit | number | Default 50. 1–100. | |
cursor | string | The next_cursor from the previous page. | |
updated_since | string | Only records changed at or after this time, oldest change first. Keep the last updated_at you saw and ask from there to sync. e.g. 2026-11-25T08:00:00.000Z | |
status | scheduled, out_for_delivery, delivered |
ပြန်ရမယ့်အရာ
delivery object များ တစ်မျက်နှာ (delivery object).
ဥပမာ
curl "https://api.getfom.com/public/v1/deliveries?limit=50&updated_since=2026-11-25T08%3A00%3A00.000Z" \
-H "Authorization: Bearer $FOM_API_KEY"One delivery
GET /public/v1/deliveries/{deliveryId}Scope: deliveries:read
Path parameter များ
| Field | Type | မဖြစ်မနေ | ရှင်းလင်းချက် |
|---|---|---|---|
deliveryId | string | ဟုတ် |
ပြန်ရမယ့်အရာ
delivery (delivery object).
ဥပမာ
curl "https://api.getfom.com/public/v1/deliveries/DELIVERY_ID" \
-H "Authorization: Bearer $FOM_API_KEY"Change a delivery's status or time
PATCH /public/v1/deliveries/{deliveryId}Scope: deliveries:write
Marking it delivered also moves the order, as in FOM.
Path parameter များ
| Field | Type | မဖြစ်မနေ | ရှင်းလင်းချက် |
|---|---|---|---|
deliveryId | string | ဟုတ် |
Body
| Field | Type | မဖြစ်မနေ | ရှင်းလင်းချက် |
|---|---|---|---|
status | scheduled, out_for_delivery, delivered | ||
scheduled_at | string | Can be null. |
ပြန်ရမယ့်အရာ
delivery (delivery object).
ဥပမာ
curl -X PATCH "https://api.getfom.com/public/v1/deliveries/DELIVERY_ID" \
-H "Authorization: Bearer $FOM_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"status": "out_for_delivery"
}'