POST
/
v1
/
wholesale_orders
curl --location --request POST 'https://api.stateset.com/v1/wholesale_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "wo_123",
    "name": "123",
    "order_number": "123",
    "created_date": "2021-01-01T00:00:00.000Z",
    "updated_date": "2021-01-01T00:00:00.000Z",
    "order_financial_status": "123",
    "order_fulfillment_status": "123",
    "order_imported_status": "123",
    "delivery_date": "2021-01-01T00:00:00.000Z",
    "delivery_address": "123",
    "location": "123",
    "memo": "123",
    "imported_date": "2021-01-01T00:00:00.000Z",
    "customer_number": "123"
}'
{
    "success": 1,
    "message": "Wholesale Order created successfully",
    "data": {
        "id": "wo_123",
        "name": "123",
        "order_number": "123",
        "created_date": "2021-01-01T00:00:00.000Z",
        "updated_date": "2021-01-01T00:00:00.000Z",
        "order_financial_status": "123",
        "order_fulfillment_status": "123",
        "order_imported_status": "123",
        "delivery_date": "2021-01-01T00:00:00.000Z",
        "delivery_address": "123",
        "location": "123",
        "memo": "123",
        "imported_date": "2021-01-01T00:00:00.000Z",
        "customer_number": "123"
    }
}

Body

id
string
The Id of the wholesale order
name
string
The name of the wholesale order
order_number
string
The order number of the wholesale order
created_date
string
The date the wholesale order was created
updated_date
string
The date the wholesale order was last updated
order_financial_status
string
The financial status of the wholesale order
order_fulfillment_status
string
The fulfillment status of the wholesale order
order_imported_status
string
The imported status of the wholesale order
delivery_date
string
The delivery date of the wholesale order
delivery_address
string
The delivery address of the wholesale order
location
string
Location or site where the work order is applicable
memo
string
Memo or additional notes related to the work order
imported_date
string
The date the wholesale order was imported
customer_number
string
The customer number of the wholesale order

Response

success
number
Indicates whether the call was successful. 1 if successful, 0 if not.
message
string
A message indicating the result of the call.
data
object
The wholesale order object that was created.
curl --location --request POST 'https://api.stateset.com/v1/wholesale_order' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
    "id": "wo_123",
    "name": "123",
    "order_number": "123",
    "created_date": "2021-01-01T00:00:00.000Z",
    "updated_date": "2021-01-01T00:00:00.000Z",
    "order_financial_status": "123",
    "order_fulfillment_status": "123",
    "order_imported_status": "123",
    "delivery_date": "2021-01-01T00:00:00.000Z",
    "delivery_address": "123",
    "location": "123",
    "memo": "123",
    "imported_date": "2021-01-01T00:00:00.000Z",
    "customer_number": "123"
}'
{
    "success": 1,
    "message": "Wholesale Order created successfully",
    "data": {
        "id": "wo_123",
        "name": "123",
        "order_number": "123",
        "created_date": "2021-01-01T00:00:00.000Z",
        "updated_date": "2021-01-01T00:00:00.000Z",
        "order_financial_status": "123",
        "order_fulfillment_status": "123",
        "order_imported_status": "123",
        "delivery_date": "2021-01-01T00:00:00.000Z",
        "delivery_address": "123",
        "location": "123",
        "memo": "123",
        "imported_date": "2021-01-01T00:00:00.000Z",
        "customer_number": "123"
    }
}