Order Status

This API is used to submit Order status from E-Commerce website

PUT
/ecommactivity/purchase_status

Request elements

Parameter Type Required Description
receipt String Yes Order Receipt
openTime Date Time Yes Order date time
status String Yes Order Status(pending,delivered, canceled, refunded)
customer.accountId String Yes Unique ID generated for the customer
customer.phone String Yes Phone number of the customer
customer.email String Yes Email ID of the customer
customer.first String Yes First name of the customer
customer.last String Yes Last name of the customer

Error messages

Error Code Error Message
1004 The following field is not unique
1006 The following fields are invalid
1002 Fields are empty
SAMPLE JSON PAYLOAD
{
  "receipt":"rc1",
  "openTime": "Y-m-d H:i:s",
  "status": "delivered",
  "customer": {
    "first": "First name",
    "last": "Last name",
    "email": "email",
    "phone": "phone"
  },
  "items": [
    {
      "type": "Product",
      "sku": "sku000",
      "qty": "1",
      "name": "Product name",
      "currency": "AED",
      "unitPrice": "10"
    }
  ]