PATCH
/
pg
/
orders
/
{order_id}
curl --request PATCH \
  --url https://api-staging.eximpe.com/pg/orders/{order_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Client-ID: <api-key>' \
  --header 'X-Client-Secret: <api-key>' \
  --data '{
  "buyer": {
    "pan_number": "BNYPG9212K",
    "dob": "2010-01-23"
  },
  "invoice": {
    "number": "INV_2TIO9F",
    "date": "2025-06-22"
  }
}'
{
  "success": true,
  "message": "Order updated successfully",
  "data": {
    "success": true,
    "message": "Order updated successfully",
    "data": {
      "order_id": "{Order_ID}",
      "buyer": {
        "pan_number": "BNYPG9212K",
        "dob": "2010-01-23"
      },
      "invoice": {
        "number": "INV_2TIO9F",
        "date": "2025-06-22"
      }
    }
  }
}

Overview

The Update Order endpoint enables you to modify specific information of an existing order, such as buyer details (PAN number, date of birth) and invoice information. This is useful for correcting or updating order details after creation.

You can update the following fields:

  • Buyer Information: PAN number, date of birth
  • Invoice Information: Invoice number, invoice date

Authorizations

X-Client-ID
string
header
required

Client app ID. You can find your app id in the merchant dashboard.

X-Client-Secret
string
header
required

Client secret key. You can find your secret in the merchant dashboard.

Path Parameters

order_id
string
required

Unique identifier of the order

Body

application/json

Order update request - only include fields to update

Request body for updating order - only include fields to update

Response

200
application/json

Order updated successfully

The response is of type object.