How to Read and Update Orders Using the Zepio Developer API | Zepio Help Centre
Zepio

How can we help?

How to Read and Update Orders Using the Zepio Developer API

Read orders from your Zepio store and move them along from your ERP or courier tool - accept, ship with tracking, complete or cancel - with the same customer messages, refunds and stock updates as the admin.

Written by Saurabh Updated 11 Nov 2026 9 min read


On this page

Creating API Key

The Orders API lets you read orders from your Zepio store, and move them along from your own system, using a secure API key.

Create API Key

  • Login to your Zepio Admin Dashboard.
  • Go to: Settings > Developer API
  • Create a new API key and select the abilities it needs: Read orders to read orders, Update order status to change their status and add tracking

Use this API key when making requests to the Orders API.

Base URL

https://yourwebsite.com/api/developer/v1

Replace yourwebsite.com with your store domain.

Authentication

Send your API key as a Bearer Token in the request header.

Authorization: Bearer YOUR_API_KEY
Accept: application/json

Endpoints

Method Endpoint Description
GET /orders Get a paginated list of orders
GET /orders/{id} Get details of a single order
POST /orders/{id}/status Change the order status and add tracking

Get Orders

Returns a list of orders from your store.

GET /api/developer/v1/orders

Query Parameters

Parameter Type Required Description
per_page integer No Number of orders to return per request. Maximum: 100. Default: 25
cursor string No Cursor value for loading the next or previous page
search string No Search order by order ID
order_status string No Filter orders by order status
customer_id integer No Filter orders by customer ID
branch_id integer No Filter orders by branch ID
created_after datetime No Only orders placed after this time, for example 2026-10-17T09:00:00+05:30
updated_after datetime No Only orders changed after this time (new status, payment, delivery)

Example Request

curl -X GET "https://yourwebsite.com/api/developer/v1/orders?per_page=10" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Filter by Order Status

curl -X GET "https://yourwebsite.com/api/developer/v1/orders?order_status=completed" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Filter by Customer

curl -X GET "https://yourwebsite.com/api/developer/v1/orders?customer_id=12" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Only Orders Changed Since Your Last Sync

Save the time of each sync and send it as updated_after next time. You get only the orders that changed, instead of reading every order again.

curl -X GET "https://yourwebsite.com/api/developer/v1/orders?updated_after=2026-10-17T09:00:00%2B05:30"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Accept: application/json"

Search by Order ID

curl -X GET "https://yourwebsite.com/api/developer/v1/orders?search=1024" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Example Response

{
  "success": true,
  "message": "OK",
  "data": [
    {
      "id": 1024,
      "user_id": 12,
      "branch_id": 3,
      "order_status": "completed",
      "payment_status": "paid",
      "payment_method": "online",
      "grand_total": 850,
      "is_picking_started": true,
      "picking_started_at": "2026-06-08T10:33:00.000000Z",
      "created_at": "2026-06-08T10:30:00.000000Z",
      "updated_at": "2026-06-08T10:45:00.000000Z",
      "items_count": 2,
      "user": {
        "id": 12,
        "name": "Rahul Sharma",
        "email": "[email protected]",
        "phone": "9876543210"
      },
      "branch": {
        "id": 3,
        "name": "Main Branch",
        "slug": "main-branch"
      },
      "items": [
        {
          "id": 501,
          "order_id": 1024,
          "product_id": 88,
          "variant_id": null,
          "product_name": "Fresh Apples",
          "variant_name": null,
          "quantity": 2,
          "unit_price": 120,
          "total_price": 240,
          "product_sku_code": "APL-001"
        }
      ]
    }
  ],
  "meta": {
    "next_cursor": "eyJpZCI6MTAyMywiX3BvaW50c1RvTmV4dEl0ZW1zIjp0cnVlfQ",
    "prev_cursor": null,
    "next_page_url": "https://yourwebsite.com/api/developer/v1/orders?cursor=eyJpZCI6MTAyMywiX3BvaW50c1RvTmV4dEl0ZW1zIjp0cnVlfQ",
    "prev_page_url": null,
    "per_page": 10
  }
}

Pagination

This API uses cursor based pagination.

To load the next page, use the next_cursor value from the response and pass it in the next request.

curl -X GET "https://yourwebsite.com/api/developer/v1/orders?per_page=10&cursor=NEXT_CURSOR_VALUE" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Get Single Order

Returns full details of a single order by order ID.

GET /api/developer/v1/orders/{id}

Example Request

curl -X GET "https://yourwebsite.com/api/developer/v1/orders/1024" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Example Response

{
  "success": true,
  "data": {
    "id": 1024,
    "order_status": "completed",
    "payment_status": "paid",
    "payment_method": "online",
    "grand_total": 850,
    "is_picking_started": true,
    "picking_started_at": "2026-06-08T10:33:00.000000Z",
    "created_at": "2026-06-08T10:30:00.000000Z",
    "user": {
      "id": 12,
      "name": "Rahul Sharma",
      "email": "[email protected]",
      "phone": "9876543210"
    },
    "branch": {
      "id": 3,
      "name": "Main Branch",
      "slug": "main-branch"
    },
    "delivery_user": {
      "id": 7,
      "name": "Amit Kumar",
      "phone": "9876500000"
    },
    "items": [
      {
        "id": 501,
        "product_id": 88,
        "variant_id": null,
        "product_name": "Fresh Apples",
        "variant_name": null,
        "quantity": 2,
        "unit_price": 120,
        "total_price": 240,
        "product_sku_code": "APL-001"
      }
    ],
    "additional_fees": [
      {
        "name": "Delivery Fee",
        "amount": 40
      }
    ]
  }
}

Response Fields

Field Description
id Order ID
user_id Customer ID
branch_id Branch ID
order_status Current order status
payment_status Current payment status
payment_method Payment method used for the order
grand_total Final payable order amount
is_picking_started true once the picker packer has tapped Start Picking on the order. false until then
picking_started_at Date and time when picking started, or null if it has not started
created_at Date and time when the order was placed
updated_at Date and time when the order was last updated
items_count Number of items in the order
user Customer details
branch Branch details
items Products/items included in the order
delivery_user Assigned delivery user details. Available in single order API when assigned
additional_fees Extra fees applied to the order

Update Order Status

Moves an order to its next status, and can add tracking at the same time. Use it from your ERP, warehouse system or courier tool when an order is accepted, shipped, delivered or cancelled.

It does exactly what the buttons on the order page in your admin do. The customer gets the same message. A cancelled order's stock goes back, and any online payment, wallet or reward amount is refunded to the customer's wallet. Your webhooks fire as well.

POST /api/developer/v1/orders/{id}/status

The API key needs the Update order status ability (orders:update).

Body Parameters

Parameter Type Required Description
order_status string Yes processing, shipped, completed or cancelled
tracking_url string No Link where the customer can follow the parcel. Only with processing or shipped
tracking_message string No Text shown with the tracking, for example the courier name and AWB number. Only with processing or shipped. Up to 1000 characters
cancellation_reason string No Why the order was cancelled. Only with cancelled. Up to 255 characters
force boolean No Only with cancelled. Cancel the order even if the courier partner refuses to cancel its booking

A tracking field you leave out keeps what the order already has. Send null to clear it.

Allowed Changes

order_status Allowed from Same as this admin button
processing placed (a new order) Accept order
shipped processing, for delivery orders Dispatch order (mark as shipped)
completed shipped, or processing for a self-pickup order Complete order
cancelled Any status except completed and cancelled Cancel order

These cannot be changed through the API:

  • Orders with your own delivery riders. The rider updates them from the delivery app.
  • Orders booked with a courier partner connected in Zepio. The courier's tracking updates them. You can still cancel them.
  • An online payment order that is still waiting for payment (pending). Zepio cancels it on its own if the payment does not arrive. A pending UPI transfer order can be cancelled.

Anything else gets 409 with a message and the order's current_status.

Ship an Order With Tracking

curl -X POST "https://yourwebsite.com/api/developer/v1/orders/1024/status" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "order_status": "shipped",
    "tracking_url": "https://www.bluedart.com/tracking/71234567890",
    "tracking_message": "Blue Dart AWB 71234567890"
  }'

The tracking is saved before the order is marked as shipped, so it is already on the order when the customer is told it has shipped.

Cancel an Order

curl -X POST "https://yourwebsite.com/api/developer/v1/orders/1024/status" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "order_status": "cancelled",
    "cancellation_reason": "Out of stock at the warehouse"
  }'

If the order is booked with a courier partner, Zepio cancels that booking first. If the courier refuses (for example, it has already picked up the parcel), you get 409 with shipment_cancel_failed: true and the order is not cancelled. Send the request again with "force": true to cancel the order anyway, then sort out the parcel with the courier.

Example Response

data is the full order, the same as GET /orders/{id}.

{
  "success": true,
  "message": "Order status updated",
  "data": {
    "id": 1024,
    "order_status": "shipped",
    "delivery_via": "manual",
    "tracking_url": "https://www.bluedart.com/tracking/71234567890",
    "tracking_message": "Blue Dart AWB 71234567890",
    "updated_at": "2026-10-17T07:47:25.000000Z"
  },
  "meta": {
    "previous_status": "processing",
    "changed": true
  }
}

Sending the Same Request Again

If your request timed out and you are not sure it went through, send it again. When the order already has the status you send, nothing changes and the customer is not messaged a second time. You get 200 with "changed": false. If you sent tracking with it, only the tracking is updated.

This also means you can add or correct tracking on an order that is already shipped: send "order_status": "shipped" with the new tracking.

Errors

Status When
400 Your Zepio Wallet needs a recharge before the order can be accepted. The reply has requires_zepio_wallet_recharge: true
403 The API key does not have Update order status
404 No order with this ID
409 The change is not allowed from the order's current status, the courier refused to cancel its booking, or another request for the same order is still running
422 A field is missing or invalid, for example tracking sent with completed

All your API keys share one limit of 30 order updates a minute.


Notes

  • Only orders from your store are returned.
  • Reading orders needs the Read orders ability. Changing their status needs Update order status.
  • Maximum per_page value is 100.
  • Use cursor pagination for loading more orders.
  • search currently supports searching by order ID.
  • Use order_status, customer_id, and branch_id filters to get specific orders.
  • Use updated_after when you check for changes on a schedule. It is faster for you and keeps you well inside the request limit.
  • All your API keys share one limit of 60 read requests a minute. See API keys, limits and errors.
  • The single order endpoint returns more detailed order information than the order list endpoint.
  • is_picking_started and picking_started_at are returned by both endpoints. Picking starting does not change order_status. If the order is moved to another picker packer, both reset until the new picker packer starts picking.

Did this answer your question?

Book a call

Tell us about your business and pick a time. We will confirm on WhatsApp, then call you.

Outside India? Change +91 to your country code.

Your business
Pick a day
Pick a time (India time)

Choose a day first.