Sales Order API Template

Overview

You can use the POST Sales Order Import API to create Sales Orders in CHQ.

Method: POST
URI: CloudHQ URL/chqapi/import/sales-order

Parameters:

  • Accept: application/json
  • Content-Type: application/json
  • Authorization: ApiKey

Request Field Details

SalesOrders

SalesOrderInstruction

WebInstruction
SendSaleInstruction

Customer

BillInfo
SellInfo
ShipInfo
Items
Payments
CardInfo

JSON Request Example

Click to expand

Response Field Details

Lines

JSON Response Example

Click to expand

Sales Order Import API Best Practices

  • Sales Order Import API endpoint can be used to update/change the status of an order. Commonly used to cancel orders
  • Good to have email and phone if email automation is required in the future
  • In the SalesOrderInstruction header use WebOrderInstruction for any ecommerce orders. If the sales order does not stem from ecommerce use SendSaleInstruction node
  • Any location related parameter will need to be setup on CHQ first or the import of the sales order will fail
  • After calling the Sales Order Import API, the http response will be in the InProcess status. To verify if an order has been successfully posted to CHQ you can use the /chqapi/status endpoint to verify.
  • For the qty parameter in the Items header please use 1 as the maximum value, this will ensure that a unique RMA code per line will be generated. Please contact your integrations specialist to discuss.