❗️

NOTE

As of March 2021, you are able to apply updates to your order status. Additional data points will be available at a later time.

Update your orders. Rules and validation regarding statuses and quantities apply. See below for details.

This endpoint requires JOOR ids.

👍

Endpoint

Params

  • Accept: application/json
  • Authorization: OAuth2 [Base64 encoded token]

Sample cURL Request

curl -X POST "https://apisandbox.jooraccess.com/v4/orders/bulk_update?account=[account_id]" -H  "accept: application/json" -H  "Content-Type: application/json" -d "[{\"id\":\"string\",\"status\":\"string\",\"integration_status\":\"string\"}]"

Workflow

  1. Get the id for the order using the v2 GET /orders endpoint.
    a. You can also locate the order id on the web, on the order review page. See below for a screenshot.
1840
  1. Use this id to update your order.

Request Param Details

PARAMETERSREQUIREDTYPENOTES
idYstringThe JOOR id of the order being updated
statusYstringThe updated status of the order

Available options are: "IN_PROGRESS", "NOTES", "PENDING", "APPROVED", "CANCELLED

You cannot move an order back to an "IN_PROGRESS" status
integration_status (not yet available)NstringThe updated integration status for this order

Available options are: "SUCCESS"
shipping_id (not available at this time)
billing_id (not available at this time)
sales_rep (not available at this time)
payment_method (not available at this time)
discount_type (not available at this time)
discount_amount (not available at this time)

Statuses and Rules

Available order status options are "NOTES", "PENDING", "APPROVED", or "CANCELLED". The requirements for each status are listed below.

STATUSREQUIREMENTS
IN_PROGRESSOnly the retailer_id, price_type_id, collection_id, and status are required.
NOTESShipping and billing addresses. Payment method.
PENDINGShipping and billing addresses. Payment method. Each item must have at least one unit.
APPROVEDShipping and billing addresses. Payment method. Each item must have at least one unit.
CANCELLEDShipping and billing addresses. Payment method. Each item must have at least one unit.

Request Example

[
  {
    "id": "111111",
    "status": "APPROVED"
    "integration_status": "SUCCESS"
    "shipping_id": "4444444",
    "billing_id": "5555555",
    "sales_rep": "[email protected]",
    "payment_method": "Credit Card",
    "order_discount": [
      {
        "discount_type": "PERCENT",
        "discount_amount": "0.2"
      }
    ]  
  }
]

Response Field Details

PARAMETERSTYPENOTES
idstringThe JOOR id for this order
retailer_idstringThe JOOR id for the retailer (customer)
price_type_idstringThe price type id for this order, which applies currencies to the cost and retail prices
collection_idstringThe collection id for this order. The start and end dates will be applied
statusstringThe status of the order.
integration_status (not available at this time)stringThe integration status for this order
shipping_id (not available at this time)stringThe JOOR connection id for the retailer shipping location. Not required for "IN_PROGRESS" orders
billing_id (not available at this time)stringThe JOOR connection id for the retailer billing location. Not required for "IN_PROGRESS" orders
sales_rep (not available at this time)stringThe sales rep associated with this order
payment_method (not available at this time)stringThe payment method used for this order
discount_type (not available at this time)stringThe type of discount applied to the order
discount_amount (not available at this time)stringThe discount applied to the order. Percents need to be applied as a decimal value (less than 1.0)

Response Example

{
  "data": [
    {
      "id": "111111",
      "retailer_id": "222222",
      "price_type_id": "333",
      "collection_id": "44444444",
      "status": "APPROVED",
			"integration_status": "SUCCESS"
	    "shipping_id": "4444444",
	    "billing_id": "5555555",
  	  "sales_rep": "[email protected]",
   	 	"payment_method": "Credit Card",
   		"order_discount": [
        {
          "discount_type": "PERCENT",
          "discount_amount": "0.2"
        }
    	]
    }
  ],
  "errors": [
    {
      "status": "string",
      "message": "string",
      "details": {}
    }
  ]
}