Update customer information for an order

Updates customer information of a specific order by order ID.

Request
path Parameters
orderId
required
string
Example: 5349b4ddd2781d08c09890f4
header Parameters
required
object

x-site-context value

Request Body schema: application/json
object

Name for order details

email
string
object

Contact details of customer for the order

userId
string

It is shopper's ID who visits company website to purchase products.

accountId
string

Account ID such as loyalty account ID or memebr account ID. Refers to any external system or fabric's loyalty service that the user has account with.

employeeId
string

ID of the employee (sales person) who creates an order for shopper.

company
string
Responses
200

Order object updated

400

Bad request

404

Order not found

500

Internal server error

patch/order/{orderId}/customer
Request samples
application/json
{
  • "name": {
    },
  • "email": "john@fabric.inc",
  • "phone": {
    },
  • "userId": "62272e917b12209e68751d94",
  • "accountId": "62272e917b12209e68751d94",
  • "employeeId": "62272e917b12209e68751d94",
  • "company": "fabric"
}
Response samples
application/json
{
  • "name": {
    },
  • "email": "john@fabric.inc",
  • "phone": {
    },
  • "userId": "62272e917b12209e68751d94",
  • "accountId": "62272e917b12209e68751d94",
  • "employeeId": "62272e917b12209e68751d94",
  • "company": "fabric"
}