FOMDocs

Deliveries API

Deliveries endpoint အားလုံး၊ ၎င်းတို့ရဲ့ field များနဲ့ ဥပမာ။

FOM ရဲ့ OpenAPI document ကနေ ထုတ်ထားပါတယ်။ Field ရှင်းလင်းချက်တွေက အင်္ဂလိပ်လို ဖြစ်ပါတယ်။ Request တိုင်းမှာ API key လိုပါတယ်၊ Authentication ကို ကြည့်ပါ။

delivery object

FieldTypeရှင်းလင်းချက်
idstring
statusscheduled, out_for_delivery, delivered
scheduled_atstringCan be null.
delivered_atstringCan be null.
order_idstring
order_nostringe.g. ORD-0319
addressstring
delivery_feenumberCan be null.
created_atstring
updated_atstring

List deliveries, newest first, or changes since a time

GET /public/v1/deliveries

Scope: deliveries:read

Query parameter များ

FieldTypeမဖြစ်မနေရှင်းလင်းချက်
limitnumberDefault 50. 1–100.
cursorstringThe next_cursor from the previous page.
updated_sincestringOnly 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
statusscheduled, 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 များ

FieldTypeမဖြစ်မနေရှင်းလင်းချက်
deliveryIdstringဟုတ်

ပြန်ရမယ့်အရာ

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 များ

FieldTypeမဖြစ်မနေရှင်းလင်းချက်
deliveryIdstringဟုတ်

Body

FieldTypeမဖြစ်မနေရှင်းလင်းချက်
statusscheduled, out_for_delivery, delivered
scheduled_atstringCan 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"
  }'

ဤစာမျက်နှာတွင်