CREST

API Endpoint

The CORESense REST API allows users of CORESense products to perform simple interactions with their data.

Changes

See the changelog for a description of the latest changes.

REST

CREST attempts to adhere to REST practices as closely as possible. HTTP methods like GET, POST, PUT, and DELETE are used to issue requests to resource-based URIs. The response will always have a significant HTTP status and (where applicable) a JSON-formatted payload. GET requests will always be read-only. PUT requests change existing records. POST requests add new records. DELETE requests remove existing records.

Authentication

Authentication is provided via JSON Web Tokens. All requests must include a valid, signed, non-expired token. This may be provided via either of the following request headers:

X-Auth-Token: <token>
Authorization: Bearer <token>

The JWT header must include the following keys:

  • “alg”: The algorithm used to sign the token.

The following signature types are supported:

  • HS256

  • HS384

  • HS512

  • RS256

  • RS384

  • RS512

The JWT payload must include the following keys:

  • “sub” : Your CORESense-provided API user id.

  • “exp” : An expiration timestamp not more than one day in the future.

Example PHP code to generate a token with an HMAC/SHA signature:

<?php
$myUserId = '<your CORESense-provided user id>';
$mySignKey = '<your CORESense-provided sign key>';
$header = [
    'alg' => 'HS256',
];
$payload = [
    'sub' => $myUserId,
    'exp' => time() + 3600,
];
$t1 = base64_url_encode(json_encode($header));
$t2 = base64_url_encode(json_encode($payload));
$signature = hash_hmac('sha256', $t1 . '.' . $t2, $mySignKey, true);
$t3 = base64_url_encode($signature);
$token = $t1 . '.' . $t2 . '.' . $t3;

Example PHP code to generate a token with an RSA/SHA signature:

<?php
$myUserId = '<your CORESense-provided user id>';
$mySignKey = '<your PEM-formatted private key>';
$header = [
    'alg' => 'RS256',
];
$payload = [
    'sub' => $myUserId,
    'exp' => time() + 3600,
];
$t1 = base64_url_encode(json_encode($header));
$t2 = base64_url_encode(json_encode($payload));
openssl_sign($t1 . '.' . $t2, $signature, $mySignKey, 'sha256');
$t3 = base64_url_encode($signature);
$token = $t1 . '.' . $t2 . '.' . $t3;

Please note that the BASE64 encoding used for JWT is not the commonly used RFC-4648 style, but the URL-friendly RFC-7515 style.

Pagination

Unless otherwise specified, GET endpoints which return sets of records will be paginated. That is, they will not necessarily include the entire result set, rather a subset of it. To obtain the full set, you may have to iterate through multiple pages of results.

Query Parameters

page_size

The query parameter page_size may be used to set the number of records per page. If not specified, a default value of 10 will be used. The maximum value supported is 100.

page

The query parameter page may be used to request a specific page. The value is 1-based. If not specified, the first page will be returned.

Headers

Result sets that are paginated may contain pagination metadata headers. Because including these headers may significantly increase the amount of time required to generate the result, they are excluded by default. They may be included by specifying the X-Pagination-Hints: 1 header in the request. In this case, the following headers will be included in the result.

X-Record-Count: <integer>

Indicates the total number of records in the result set.

X-Page-Count: <integer>

Indicates the total number of pages in the result set. This is based on current page size.

X-Page-Size: <integer>

The current page size being used.

X-Page-Number: <integer>

The page number that this result set represents.

Up to four links will be included in the link header as per RFC5988. These will provide URLs for the first, previous, next, and last pages, where appropriate.

Field Limiting

By default, GET endpoints will return all the fields available for a record. You may limit the result set to an arbitrary subset of these fields. This is done via the fields parameter:

GET /v1/product?fields=part_num

You may request more than one field by separating them with commas:

GET /v1/product?fields=id,part_num,base_price

Each field may include regular expressions. For example:

GET /v1/product?fields=id,part_num,base_price,custom_.*

Note that you may have to hex encode the string if it contains special characters.

Filtering

Unless otherwise specified, GET endpoints which return sets of records support filtering by an arbitrary list of field values. Query filters are specified via the q parameter and have the following format:

<field><operator><value>

The following operators are supported:

  • =

  • !=

  • <

  • <=

  • >

  • >=

For example, to get all products:

GET /v1/product

To get all products of a certain product type:

GET /v1/product?q=type=3

You may specify more than one filter by using multiple q parameters with array syntax. All such specified filters are grouped via the AND operator. For example, to get all products with a base price between $5.00 and $10.00:

GET /v1/product?q[]=base_price>=5&q[]=base_price<=10

Filtering on Date / Time Fields

Database fields that include time in their native storage (such as models.last_modified_timestamp or inventory.stamp) can be queried for date alone or date + time. If queried for date alone, time is presumed to be midnight. Database fields that do not include time in their native storage (such as order_items.delivery_date) can only be queried by date. Date and time parameters can be formatted in virtually any reasonable manner but note that formats like mm/dd/yy should not be used because they are ambiguous in cases like 01/02/03.

Filtering by Date Only

In this case, the time will default to the midnight at the start of the day indicated, and the timezone will default to the existing timezone setting for your installation.

/v1/product?q=last_modified_stamp>=2018-01-01

Filtering by Date + Time

In this case, the timezone will default to the existing timezone setting for your installation.

/v1/product?q=last_modified_stamp>=2018-01-01T14:30:00

Filtering by Date + Time + Timezone (ISO 8601)

This is the format that the API presents timestamps in.

/v1/product?q=last_modified_stamp>=2018-01-01T14:30:00-05:00

Filtering by Relative Time

To reference a time relative to when the API call is made, you may supply a string that describes the difference, in the format <sign><integer><time period>. For example, -1day or +2months.

/v1/product?q=last_modified_stamp>=-4hours

/v1/skuInventory?q=movement_date>=-2days

Sorting

Unless otherwise specified, GET endpoints which return sets of records support ordering by certain user-specified fields. This is performed via the order parameter. For example:

GET /v1/product?order=part_num

The order may be reversed by preceeding the field name with -:

GET /v1/product?order=-part_num

Note that not every field available in a record may be sorted on. See the individual endpoint docs for details about which fields may be used for that endpoint.

Example Requests

GET

GET requests have no payload and may include optional query parameters.

<?php
$token = '...'; // see above
$curl = curl_init(
    'https://api-foo.coresense.com/v1/category?' .
    http_build_query([
        'page_size' => 5,
        'fields' => 'id,category',
    ])
);
curl_setopt_array($curl, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-Auth-Token: ' . $token]
]);
$result = curl_exec($curl);
curl_close($curl);
if ($result !== false) {
    $data = json_decode($result, true);
    print_r($data);
}

PUT

PUT requests have a JSON-encoded payload and typically return a 204 status with no body.

$token = '...';
$data = json_encode([
    'status' => 'new',
    'ship_date' => '2018-01-02',
]);
$curl = curl_init('https://api-foo.coresense.com/v1/shipment/12345');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'PUT',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'X-Auth-Token: ' . $token,
        'Content-Type: application/json',
        'Content-Length: ' . strlen($data),
    ],
    CURLOPT_POSTFIELDS => $data,
]);
$result = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($status === 204) {
    // success
}

POST

POST requests have a JSON-encoded payload and typically return a 201 status with a body including the id of the record that was just created.

$token = '...';
$data = json_encode([
    'category' => 'foo',
    'label' => 'bar',
    'active' => false,
]);
$curl = curl_init('http://localhost:8080/v1/category');
curl_setopt_array($curl, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'X-Auth-Token: ' . $token,
        'Content-Type: application/json',
        'Content-Length: ' . strlen($data),
    ],
    CURLOPT_POSTFIELDS => $data,
]);
$result = curl_exec($curl);
$status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($status === 201) {
    print_r(json_decode($result, true));
}

More detailed examples may be found on our GitHub repository.

Rate Limiting

If rate limiting is enabled, requests may fail due to excessive use. In this case, the response will have a status of 429 Too Many Requests. If the request was denied because the number of requests exceeded the allowed limit, the response will include the following headers:

X-RateLimit-Hits: <maximum number of hits allowed per time period>
Retry-After: <timestamp for the earliest possible retry>

If the request was denied because the number of bytes exceeded the allowed limit, the response will include the following headers:

X-RateLimit-Bytes: <maximum number of bytes allowed per time period>
Retry-After: <timestamp for the earliest possible retry>

Caching

If the request was served from a cache, the response will include the X-Cached: 1 header.

Resources

The following resource endpoints are available.

Affiliate

Affiliate

A affiliate.

GET /v1/affiliate/123
Responses200
Headers
Content-Type: application/json
Body
{
  "active": true,
  "address1": "",
  "address2": "",
  "city": "",
  "commission_rate_id": 0,
  "company_name": "",
  "contact_first_name": "",
  "contact_last_name": "",
  "country_id": 0,
  "email": "",
  "fax": "1234567890",
  "id": 2,
  "password": "",
  "payment_notification_template_id": 0,
  "phone": "",
  "sale_notification": 0,
  "sale_notification_template_id": 0,
  "state_id": 0,
  "url": "",
  "username": "",
  "zip": ""
}

Retrieve a affiliate
GET/v1/affiliate/{affiliate_id}

Returns a specific affiliate.

URI Parameters
HideShow
affiliate_id
integer (required) Example: 123

The id of the affiliate.


Affiliate Collection

A collection of affiliates.

GET /v1/affiliate?order=username
Responses200
Body
[
    {
        "active": true,
        "address1": "",
        "address2": "",
        ...
    },
    {
        "active": true,
        "address1": "",
        "address2": "",
        ...
    },
    ...
]

Retrieve all affiliates
GET/v1/affiliate{?order}

Retrieves all affiliates.

URI Parameters
HideShow
order
string (optional) Default: id Example: username

The field to sort the result set by. Prefix with - to invert.

Choices: commission_rate_id id username


Barcode

Barcode

A barcode.

GET /v1/barcode/123
Responses200
Headers
Content-Type: application/json
Body
{
  "barcode": "ABCDE12345",
  "id": 2345,
  "product_id": 123,
  "stamp": "2009-12-11T08:27:57-05:00"
}

Retrieve a barcode
GET/v1/barcode/{barcode_id}

Returns a specific barcode.

URI Parameters
HideShow
barcode_id
integer (required) Example: 123

The id of the barcode.


Barcode Collection

A collection of barcodes.

GET /v1/barcode?order=product_id
Responses200
Body
[
    {
        "barcode": "ABCDE12345",
        "id": 2345,
        "product_id": 123,
        ...
    },
    {
        "barcode": "ABCDE12346",
        "id": 2346,
        "product_id": 124,
        ...
    },
    ...
]

Retrieve all barcodes
GET/v1/barcode{?order}

Retrieves all barcodes.

URI Parameters
HideShow
order
string (optional) Default: id Example: product_id

The field to sort the result set by. Prefix with - to invert.

Choices: barcode id product_id


BarcodeSKU

Barcode SKU

A barcode SKU.

GET /v1/barcodeSku/123
Responses200
Headers
Content-Type: application/json
Body
{
  "barcode_id": 123,
  "id": 1,
  "quantity": 10,
  "sku_id": 12345
}

Retrieve a barcode SKU
GET/v1/barcodeSku/{barcode_sku_id}

Returns a specific barcode SKU.

URI Parameters
HideShow
barcode_sku_id
integer (required) Example: 123

The id of the barcode SKU.


Barcode SKU Collection

A collection of barcode SKUs.

GET /v1/barcodeSku?order=sku_id
Responses200
Body
[
    {
        "barcode_id": 123,
        "id": 1,
        "quantity": 10,
        ...
    },
    {
        "barcode_id": 123,
        "id": 1,
        "quantity": 10,
        ...
    },
    ...
]

Retrieve all barcode SKUs
GET/v1/barcodeSku{?order}

Retrieves all barcode SKUs.

URI Parameters
HideShow
order
string (optional) Default: id Example: sku_id

The field to sort the result set by. Prefix with - to invert.

Choices: barcode_id id sku_id


Brand

Brand

A brand.

GET /v1/brand/123
Responses200
Headers
Content-Type: application/json
Body
{
  "custom_address": "Foo to the Bar",
  "custom_company_name": "FooBar",
  "custom_logo_url": "",
  "custom_main_email_address": "",
  "custom_main_fax": "",
  "custom_main_phone": "",
  "custom_payment_processor_statement_description": "",
  "custom_web_site_url": "",
  "fully_shipped_email_template": 0,
  "id": 3,
  "label": "foo",
  "partially_shipped_email_template": 0,
  "status": "active",
  "website_gift_certificate_template": 0
}

Retrieve a brand
GET/v1/brand/{brand_id}

Returns a specific brand.

URI Parameters
HideShow
brand_id
integer (required) Example: 123

The id of the brand.


Brand Collection

A collection of brands.

GET /v1/brand?order=status
Responses200
Body
[
    {
        "custom_address": "Foo to the Bar",
        "custom_company_name": "FooBar",
        "custom_logo_url": "",
        ...
    },
    {
        "custom_address": "Foo to the Bar",
        "custom_company_name": "FooBar",
        "custom_logo_url": "",
        ...
    },
    ...
]

Retrieve all brands
GET/v1/brand{?order}

Retrieves all brands.

URI Parameters
HideShow
order
string (optional) Default: id Example: status

The field to sort the result set by. Prefix with - to invert.

Choices: id status


Category

Category

A product category.

POST /v1/category/
Requestsexample 1
Body
{
    "active": true,
    "category": "root",
    "custom_breadcrumb_parent": 0,
    ...
}
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a Category
POST/v1/category/

Create a new category.


GET /v1/category/123
Responses200
Headers
Content-Type: application/json
Body
{
  "active": true,
  "category": "root",
  "custom_breadcrumb_parent": 0,
  "custom_header_html": "",
  "custom_header_title": "",
  "custom_position": 0,
  "custom_thumbnail_image": "",
  "default_product_type": 0,
  "description": "",
  "homepage_active": false,
  "id": 1,
  "label": "",
  "meta_abstract": "",
  "meta_description": "",
  "meta_keywords": "",
  "meta_title": "",
  "page_title": "",
  "powerreviews_active": true,
  "root": false,
  "website_display_name": ""
}

Retrieve a Category
GET/v1/category/{category_id}

Retrieve a specific category.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.


PUT /v1/category/123
Responses204
This response has no content.

Update a Category
PUT/v1/category/{category_id}

Update a specific category.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.


DELETE /v1/category/123
Responses204
This response has no content.

Delete a Category
DELETE/v1/category/{category_id}

Delete a specific category.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.


Category Collection

A collection of categories.

GET /v1/category?order=category
Responses200
Body
[
    {
        "active": true,
        "category": "root",
        "custom_breadcrumb_parent": 0,
        ...
    },
    {
        "active": true,
        "category": "root",
        "custom_breadcrumb_parent": 0,
        ...
    },
    ...
]

Retrieve all Categories
GET/v1/category{?order}

Retrieve all categories.

URI Parameters
HideShow
order
string (optional) Default: id Example: category

The field to sort the result set by. Prefix with - to invert.

Choices: category id label


Category Product Collection

A collection of products.

GET /v1/category/123/product?order=part_num
Responses200
Body
[
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    ...
]

Retrieve all Category Products
GET/v1/category/{category_id}/product{?order}

Retrieve all products in a category.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.

order
string (optional) Default: id Example: part_num

The field to sort the result set by. Prefix with - to invert.

Choices: id last_modified_stamp manufacturer_id part_num type


GET /v1/category/123/channel/456/featuredProduct?order=part_num
Responses200
Body
[
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    ...
]

Category Product Collection Per Channel

A collection of products.

GET /v1/category/123/channel/456/?order=part_num
Responses200
Body
[
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    ...
]

Retrieve all Category Products Per Channel
GET/v1/category/{category_id}/channel/{channel_id}/{?order}

Retrieve all products in a category for a particular channel.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.

channel_id
integer (required) Example: 456

The id of the channel.

order
string (optional) Default: id Example: part_num

The field to sort the result set by. Prefix with - to invert.

Choices: id last_modified_stamp manufacturer_id part_num type


Category Subcategory Collection

A collection of subcategories.

GET /v1/category/123/subcategory?order=category
Responses200
Body
[
    {
        "active": true,
        "category": "root",
        "custom_breadcrumb_parent": 0,
        ...
    },
    {
        "active": true,
        "category": "root",
        "custom_breadcrumb_parent": 0,
        ...
    },
    ...
]

Retrieve all Category Subcategories
GET/v1/category/{category_id}/subcategory{?order}

Retrieve all subcategories of a category.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.

order
string (optional) Default: id Example: category

The field to sort the result set by. Prefix with - to invert.

Choices: category id label


POST /v1/category/subcategory
Requestsexample 1
Body
{
  "subcategory_id": 456
}
Responses201
This response has no content.

Create a Sucbategory relationship from a Category
POST/v1/category/subcategory

Add a category as a subcategory of a specific a category.


DELETE /v1/category/123/subcategory
Responses204
This response has no content.

Delete a Subcategory relationship from a Category
DELETE/v1/category/{category_id}/subcategory

Remove a category as a subcategory for a specific category.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.

subcategory_id
integer (required) Example: 456

The id of the subcategory.


Category WebUrlOverride

A WebUrlOverride for a category.

GET /v1/category/123/weburloverride/1
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 11112,
  "interface_id": "1",
  "assoc_entity": "Category",
  "assoc_entity_id": "123",
  "url": "mens-shoes",
  "active": 1
}

Retrieve the WebUrlOverride for a Category
GET/v1/category/{category_id}/weburloverride/{channel_id}

Retrieve the WebUrlOverride for a Category on a specific channel.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.

channel_id
integer (required) Example: 1

The id of the channel.


PUT /v1/category/123/weburloverride/1
Responses204
This response has no content.

Update a WebUrlOverride for a Category
PUT/v1/category/{category_id}/weburloverride/{channel_id}

Update the WebUrlOverride for a Category on a specific channel.

URI Parameters
HideShow
category_id
integer (required) Example: 123

The id of the category.

channel_id
integer (required) Example: 1

The id of the channel.

url
string (required) Example: mens-shoes

The url of the override.


Channel

Channel

A channel.

GET /v1/channel/123
Responses200
Headers
Content-Type: application/json
Body
{
  "access_level": 0,
  "brand_id": 1,
  "channel_type": "",
  "data_table": "web_data",
  "default_payment_processor_id": 0,
  "icon_location": "images/www_icon.gif",
  "id": 1,
  "label": "Website",
  "module_location": "channels/web_site/web_site_manager.php3",
  "module_type": "internal",
  "record_table": "",
  "tax_exempt_allowed": false
}

Retrieve a Channel
GET/v1/channel/{channel_id}

Returns a specific channel.

URI Parameters
HideShow
channel_id
integer (required) Example: 123

The id of the channel.


Channel Collection

A collection of channels.

GET /v1/channel?order=label
Responses200
Body
[
    {
        "access_level": 0,
        "brand_id": 1,
        "channel_type": "",
        ...
    },
    {
        "access_level": 0,
        "brand_id": 1,
        "channel_type": "",
        ...
    },
    ...
]

Retrieve all Channels
GET/v1/channel{?order}

Retrieves all channels.

URI Parameters
HideShow
order
string (optional) Default: id Example: label

The field to sort the result set by. Prefix with - to invert.

Choices: brand_id id label


Channel Product Collection

A collection of products.

GET /v1/channel/123/product?order=part_num
Responses200
Body
[
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    ...
]

Retrieve all Channel Products
GET/v1/channel/{channel_id}/product{?order}

Retrieve all products in a channel.

URI Parameters
HideShow
channel_id
integer (required) Example: 123

The id of the channel.

order
string (optional) Default: id Example: part_num

The field to sort the result set by. Prefix with - to invert.

Choices: id last_modified_stamp manufacturer_id part_num type


Channel Shipment Collection

A collection of shipments.

GET /v1/channel/123/shipment?order=status
Responses200
Body
[
    {
        "arrival_date": "",
        "assoc_entity": "order",
        "assoc_entity_id": 3,
        ...
    },
    {
        "arrival_date": "",
        "assoc_entity": "order",
        "assoc_entity_id": 3,
        ...
    },
    ...
]

Retrieve all Channel Shipments
GET/v1/channel/{channel_id}/shipment{?order}

Retrieve all shipments of orders in a channel.

URI Parameters
HideShow
channel_id
integer (required) Example: 123

The id of the channel.

order
string (optional) Default: id Example: status

The field to sort the result set by. Prefix with - to invert.

Choices: id status exported assoc_entity


Comment

Comment

A comment.

POST /v1/comment/
Requestsexample 1
Body
{
  "message": "Order has been cancelled.",
  "rep": "coresense",
  "stamp": "2019-09-23 15:34:05",
  "type": "Other",
  "assoc_entity": "order",
  "assoc_entity_id": 19283,
  "privacy": "private",
  "code": 12
}
Schema
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    },
    "rep": {
      "type": "string",
      "description": "Refers to existing username in system."
    },
    "stamp": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "assoc_entity": {
      "type": "string"
    },
    "assoc_entity_id": {
      "type": "number"
    },
    "privacy": {
      "type": "string"
    },
    "code": {
      "type": "number",
      "description": "Empty or existing comment code."
    }
  },
  "$schema": "http://json-schema.org/draft-04/schema#"
}
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a Comment
POST/v1/comment/

Create a new comment.


GET /v1/comment/123
Responses200
Headers
Content-Type: application/json
Body
{
    "assoc_entity": 'return',
    "assoc_entity_id": 9,
    "code": 0,
    "id": 10,
    "message": "Returned twice",
    "privacy": "private",
    "rep": "coresense",
    "stamp": "2019-05-22T12:56:34-04:00",
    "type": "Other",
}

Retrieve a Comment
GET/v1/comment/{comment_id}

Returns a specific comment.

URI Parameters
HideShow
comment_id
integer (required) Example: 123

The id of the comment.


Comment Collection

A collection of comment.

GET /v1/comment?order=id
Responses200
Body
[
    {
        "assoc_entity": "customer",
        "assoc_entity_id": 29382,
        "code": 0,
        ...
    },
    {
        "assoc_entity": "quote",
        "assoc_entity_id": 52,
        "code": 2,
        ...
    },
    ...
]

Retrieve all Comments
GET/v1/comment{?order}

Retrieves all comments.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: assoc_entity assoc_entity_id id


CommentCode

Contact

A comment code.

POST /v1/commentCode/
Requestsexample 1
Body
{
  "code": "CE",
  "description": "Description of the code"
}
Schema
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "description": {
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-04/schema#"
}
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a CommentCode
POST/v1/commentCode/

Create a new comment code.


GET /v1/commentCode/123
Responses200
Headers
Content-Type: application/json
Body
{
    "id": 10,
    "code": "OM",
    "description": "Order Modification",
}

Retrieve a CommentCode
GET/v1/commentCode/{comment_code_id}

Returns a specific comment code.

URI Parameters
HideShow
comment_code_id
integer (required) Example: 123

The id of the comment code.


Contact Collection

A collection of comment codes.

GET /v1/commentCode
Responses200
Body
[
    {
        "id": 11,
        "code": "OC",
        "description": "Order Cancellation",
    },
    {
        "id": 12,
        "code": "BI",
        "description": "Billing Issue",
    },
    ...
]

Retrieve all CommentCodes
GET/v1/commentCode

Retrieves all comment codes.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.


Contact

Contact

A contact.

POST /v1/contact/
Requestsexample 1
Body
{
  "active": true,
  "address_line_1": "123 Main St.",
  "address_line_2": "Apt. 1A",
  "business_phone": "123-456-7890",
  "city": "Gotham",
  "company": "Wayne Enterprises",
  "country": "US",
  "country_id": 1,
  "customer_id": 1234,
  "date_of_birth": "2017-12-12",
  "email": "definitely_not_batman@waynecorp.com",
  "fax": "123-456-7890",
  "first_name": "Bruce",
  "label": "work",
  "last_name": "Wayne",
  "phone": "123-456-7890",
  "postal_code": "12345",
  "requires_liftgate": true,
  "residential_address": true,
  "state": "NY",
  "state_id": 12,
  "verified": true
}
Schema
{
  "type": "object",
  "properties": {
    "active": {
      "type": "boolean"
    },
    "address_line_1": {
      "type": "string"
    },
    "address_line_2": {
      "type": "string"
    },
    "business_phone": {
      "type": "string"
    },
    "city": {
      "type": "string"
    },
    "company": {
      "type": "string"
    },
    "country": {
      "type": "string",
      "description": "If specified, omit `country_id` and we'll look up the appropriate value."
    },
    "country_id": {
      "type": "number"
    },
    "customer_id": {
      "type": "number",
      "description": "Must refer to an existing customer."
    },
    "date_of_birth": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "fax": {
      "type": "string"
    },
    "first_name": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "last_name": {
      "type": "string"
    },
    "phone": {
      "type": "string"
    },
    "postal_code": {
      "type": "string"
    },
    "requires_liftgate": {
      "type": "boolean"
    },
    "residential_address": {
      "type": "boolean"
    },
    "state": {
      "type": "string",
      "description": "If specified, omit `state_id` and we'll look up the appropriate value."
    },
    "state_id": {
      "type": "number"
    },
    "verified": {
      "type": "boolean"
    }
  },
  "$schema": "http://json-schema.org/draft-04/schema#"
}
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a Contact
POST/v1/contact/

Create a new contact.


GET /v1/contact/123
Responses200
Headers
Content-Type: application/json
Body
{
  "active": true,
  "address_line_1": "",
  "address_line_2": "",
  "business_phone": "",
  "city": "",
  "company": "",
  "country_id": 1,
  "customer_id": 13,
  "date_of_birth": "2017-12-12T11:35:02-05:00",
  "email": "foo@bar.com",
  "fax": "",
  "first_name": "Foo",
  "id": 10,
  "label": null,
  "last_name": "Bar",
  "phone": "",
  "postal_code": "",
  "requires_liftgate": true,
  "residential_address": false,
  "state_id": 0,
  "verified": false
}

Retrieve a Contact
GET/v1/contact/{contact_id}

Returns a specific contact.

URI Parameters
HideShow
contact_id
integer (required) Example: 123

The id of the contact.


Contact Collection

A collection of contacts.

GET /v1/contact?order=id
Responses200
Body
[
    {
        "active": true,
        "address_line_1": "",
        "address_line_2": "",
        ...
    },
    {
        "active": true,
        "address_line_1": "",
        "address_line_2": "",
        ...
    },
    ...
]

Retrieve all Contacts
GET/v1/contact{?order}

Retrieves all contacts.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: active customer_id email first_name id last_name phone postal_code state_id


Country

Country

A country.

GET /v1/country/123
Responses200
Headers
Content-Type: application/json
Body
{
  "code_iso_alpha_2": "US",
  "code_iso_alpha_3": "USA",
  "code_un_numeric": "840",
  "country": "United States",
  "id": 1
}

Retrieve a Country
GET/v1/country/{country_id}

Returns a specific country.

URI Parameters
HideShow
country_id
integer (required) Example: 123

The id of the country.


Country Collection

A collection of countries.

GET /v1/country?order=id
Responses200
Body
[
    {
        "code_iso_alpha_2": "US",
        "code_iso_alpha_3": "USA",
        "code_un_numeric": "840",
        ...
    },
    {
        "code_iso_alpha_2": "CA",
        "code_iso_alpha_3": "CAN",
        "code_un_numeric": "124",
        ...
    },
    ...
]

Retrieve all Countries
GET/v1/country{?order}

Retrieves all countries.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: code_iso_alpha_2 id


Customer

Customer

A customer. Note that the primary key field in the JSON response packet for this resource is named client_id and not id as for most other resources.

POST /v1/customer/
Requestsexample 1
Body
{
  "affiliate_id": 1,
  "customer_tier_id": 1,
  "default_billing_contact_id": 1,
  "default_shipping_contact_id": 1,
  "last_key_code": "Hello, world!",
  "originating_brand_id": 1,
  "source_code": "Hello, world!"
}
Schema
{
  "type": "object",
  "properties": {
    "affiliate_id": {
      "type": "number"
    },
    "customer_tier_id": {
      "type": "number"
    },
    "default_billing_contact_id": {
      "type": "number"
    },
    "default_shipping_contact_id": {
      "type": "number"
    },
    "last_key_code": {
      "type": "string"
    },
    "originating_brand_id": {
      "type": "number"
    },
    "source_code": {
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-04/schema#"
}
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a Customer
POST/v1/customer/

Create a new customer.

Rather than specifying existing values for default_billing_contact_id and default_shipping_contact_id, you may omit them and instead provide default_billing_contact and default_shipping_contact as a Contact key/value set, as follows:

{
    "originating_brand_id": 2,
    "affiliate_id": 3,
    "default_billing_contact": {
        "address_line_1": "1 Main St",
        "city": "London",
        "email": "foo@bar.com",
        "first_name": "Joe",
        "label": "home",
        "last_name": "Smith",
        "state": "NY"
    },
    "default_shipping_contact": {
        "address_line_1": "37 Elm St",
        "city": "Paris",
        "email": "foo@bar.com",
        "first_name": "Joe",
        "label": "work",
        "last_name": "Smith",
        "state": "NY"
    }
}

GET /v1/customer/123
Responses200
Headers
Content-Type: application/json
Body
{
  "affiliate_id": 0,
  "client_id": 10,
  "currency_rate": "USD",
  "custom_account_manager": 0,
  "custom_attend_a_pop_trunk_show": "no",
  "custom_box_number": "",
  "custom_customer_type": ",2,1,",
  "custom_default_payment_type": 0,
  "custom_guest_shopper": false,
  "custom_host_a_pop_trunk_show": "no",
  "custom_school_address2": null,
  "custom_send_news_and_promotions": "no",
  "custom_wishlist_temp_order_num": 0,
  "customer_billing_exported": false,
  "customer_shipping_exported": false,
  "customer_tier_id": 0,
  "default_billing_contact_id": 7,
  "default_preorder_contact_id": 0,
  "default_shipping_contact_id": 7,
  "employee_number": "",
  "last_key_code": "",
  "last_modified": "",
  "originating_brand_id": 0,
  "product_upsell_last_sent": "",
  "source_code": "",
  "stamp": "2009-03-03T06:55:33-05:00"
}

Retrieve a Customer
GET/v1/customer/{customer_id}

Returns a specific customer.

URI Parameters
HideShow
customer_id
integer (required) Example: 123

The id of the customer.


Customer Collection

A collection of customers.

GET /v1/customer?order=client_id
Responses200
Body
[
    {
        "affiliate_id": 0,
        "client_id": 10,
        "currency_rate": "USD",
        ...
    },
    {
        "affiliate_id": 0,
        "client_id": 10,
        "currency_rate": "USD",
        ...
    },
    ...
]

Retrieve all Customers
GET/v1/customer{?order}

Retrieves all customers.

URI Parameters
HideShow
order
string (optional) Default: client_id Example: client_id

The field to sort the result set by. Prefix with - to invert.

Choices: client_id originating_brand_id default_billing_contact_id default_shipping_contact_id


Customer Contact Collection

A collection of customer contacts.

GET /v1/customer/123/contact?order=state_id
Responses200
Body
[
    {
        "active": true,
        "address_line_1": "",
        "address_line_2": "",
        ...
    },
    {
        "active": true,
        "address_line_1": "",
        "address_line_2": "",
        ...
    },
    ...
]

Retrieve all contacts for a customer
GET/v1/customer/{customer_id}/contact{?order}

Retrieves all active contacts for a customer.

URI Parameters
HideShow
customer_id
integer (required) Example: 123

The id of the customer.

order
string (optional) Default: id Example: state_id

The field to sort the result set by. Prefix with - to invert.

Choices: active customer_id email first_name id last_name phone postal_code state_id


CreditCard

CreditCard

A credit card.

POST /v1/creditCard/
Requestsexample 1
Body
{
  "client_id": "38271",
  "cardholder_first_name": "CORESense",
  "cardholder_last_name": "Company",
  "card_num": "4111111111111111",
  "expiration_month": "02",
  "expiration_year": "2020",
  "payment_type_id": "1",
  "receivable_type_id": "3",
  "payment_processor_id": "3",
  "token": "4321evn8ewnD"
}
Responses201
Body
{
    "id: "123"
}

Create a CreditCard
POST/v1/creditCard/

Create a new credit card.


GET /v1/creditCard/
Responses200
Headers
Content-Type: application/json
Body
{
    "id": "123",
    "client_id": "47382",
    "cardholder_first_name": "CORESense",
    "cardholder_last_name": "Company",
    "card_num": "4111111111111111",
    "exp_date": "2020-02-29",
    "payment_type_id": 1,
    "receivable_type_id": 3,
    "stamp": "2019-06-27 19:03:01",
    "active": "y",
}

Retrieve a CreditCard
GET/v1/creditCard/

Returns a specific credit card.

URI Parameters
HideShow
id
integer (required) Example: 123

The id of the credit card.


CreditCardToken

Affiliate

A credit card token.

GET /v1/creditCardToken/123
Responses200
Headers
Content-Type: application/json
Body
{
    "credit_card_id": 5,
    "id": 2,
    "payment_processor_id": "1",
    "stamp": 2019-08-08T13:57:30-04:00,
    "token": "4839c4wmfsdms",
    "token_type": "",
    "token_provider": 0
}

Retrieve a credit card token
GET/v1/creditCardToken/{credit_card_token_id}

Returns a specific credit card token.

URI Parameters
HideShow
credit_card_token_id
integer (required) Example: 123

The id of the credit card token.


CreditCardToken Collection

A collection of credit card tokens.

GET /v1/creditCardToken?order=credit_card_token_id
Responses200
Body
[
    {
        "credit_card_id": "48372",
        "id": "4",
        "payment_processor_id": "20",
        ...
    },
    {
        "credit_card_id": "48372",
        "id": "483",
        "payment_processor_id": "3",
        ...
    },
    ...
]

Retrieve all credit card tokens
GET/v1/creditCardToken{?order}

Retrieves all credit_card_tokens.

URI Parameters
HideShow
order
string (optional) Default: credit_card_token_id Example: credit_card_token_id

The field to sort the result set by. Prefix with - to invert.

Choices: credit_card_id payment_processor_id


Deal

Deal

A deal.

GET /v1/deal/123
Responses200
Headers
Content-Type: application/json
Body
{
    "active": 1,
    "coupon_activated": 1,
    "end": 2019-12-03T16:44:47-05:00,
    "exclusive": "",
    "id": 10,
    "label": "Temp Test Deal",
    "message": "",
    "recurring_order": "",
    "round": "Down",
    "single_use": "",
    "start": 2019-12-03T16:44:47-05:00,
    "timestamp": 2011-06-02T11:38:33-04:00,
    "type": "Promotional Discount",
}

Retrieve a Deal
GET/v1/deal/{deal_id}

Returns a specific deal.

URI Parameters
HideShow
deal_id
integer (required) Example: 123

The id of the deal.


Deal Collection

A collection of deals.

GET /v1/deal?order=id
Responses200
Body
[
    {
        "active": "",
        "coupon_activated": "",
        ...
    },
    {
        "active": 1,
        "coupon_activated": 1,
        ...
    },
    ...
]

Retrieve all Deals
GET/v1/deal{?order}

Retrieves all deals.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: active type coupon_activated id


DealCouponCode

DealCouponCode

A deal’s coupon code.

GET /v1/dealCouponCode/
Responses200
Headers
Content-Type: application/json
Body
{
    "coupon_code": "test",
    "deal_id": 32,
    "id": 123,
}

Retrieve a DealCouponCode
GET/v1/dealCouponCode/

Returns a specific deal coupon code.

URI Parameters
HideShow
deal_id
integer (required) Example: 123

The id of the deal coupon code.


DealCouponCode Collection

A collection of deal coupon codes.

GET /v1/dealCouponCode?order=id
Responses200
Body
[
    {
        "coupon_code": "CBSALE",
        "deal_id": 392,
        ...
    },
    {
        "coupon_code": "NovemberSale",
        "deal_id": 493,
        ...
    },
    ...
]

Retrieve all DealCouponCodes
GET/v1/dealCouponCode{?order}

Retrieves all deal coupon codes.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: deal_id coupon_code id


Help

Error Code Collection

A collection of error codes.

GET /v1/help/errorCode
Responses200
Body
[
    {
        "code": "100",
        "name": "ERROR_INVALID_SHORTNAME",
        "source": "\\Coresense\\Rest\\Middleware::ShortName"
    },
    {
        "code": "200",
        "name": "ERROR_TEMP_DIR_DOES_NOT_EXIST",
        "source": "\\Coresense\\Rest\\Middleware::TempDir"
    },
]

Retrieve all Error Codes
GET/v1/help/errorCode

Retrieves all error codes.


Ping

A status end point.

GET /v1/help/ping
Responses200
Body
{
  "timestamp": "2017-11-17T16:53:13-05:00"
}

Ping the API
GET/v1/help/ping

Pings the API to verify status. Can be used to check authentication credentials.


Route Collection

A collection of API routes.

GET /v1/help/route
Responses200
Body
[
    "GET \/v1\/category",
    "GET \/v1\/category\/{category_id}",
    "GET \/v1\/category\/{category_id}\/channel\/{channel_id}\/featuredProduct",
    "GET \/v1\/category\/{category_id}\/product",
    ...
]

Retrieve all Routes
GET/v1/help/route

Retrieves all currently available API routes.


Inventory

Inventory

A unit of inventory.

GET /v1/inventory/123
Responses200
Headers
Content-Type: application/json
Body
{
  "assoc_entity": "ordered item",
  "assoc_entity_id": 1234,
  "build_type": "INV",
  "cogs": 1.23,
  "description": "a super thing",
  "id": 1,
  "inventory_id": 1,
  "inventory_location_id": 0,
  "manufacturer_id": 1,
  "pos_order_num": 0,
  "shipping_depth": 0,
  "shipping_height": 0,
  "shipping_weight": 0.5,
  "shipping_width": 0,
  "stamp": "2009-02-26T06:21:43-05:00",
  "status": "assigned",
  "vendor_id": 1,
  "warehouse_id": 1
}

Retrieve a Unit of Inventory
GET/v1/inventory/{inventory_id}

Returns a specific unit of inventory.

URI Parameters
HideShow
inventory_id
integer (required) Example: 123

The id of the unit of inventory.


Inventory Collection

A collection of units of inventory.

GET /v1/inventory?order=warehouse_id
Responses200
Body
[
    {
        "assoc_entity": "ordered item",
        "assoc_entity_id": 1234,
        "build_type": "INV",
        ...
    },
    {
        "assoc_entity": "ordered item",
        "assoc_entity_id": 1234,
        "build_type": "INV",
        ...
    },
    ...
]

Retrieve all Inventory Units
GET/v1/inventory{?order}

Retrieves all units of inventory.

URI Parameters
HideShow
order
string (optional) Default: id Example: warehouse_id

The field to sort the result set by. Prefix with - to invert.

Choices: id inventory_id inventory_location_id status warehouse_id


Location

Location

A location.

GET /v1/location/123
Responses200
Headers
Content-Type: application/json
Body
{
  "active": true,
  "available_for_fulfillment": true,
  "description": "",
  "height": 0,
  "id": 1,
  "inventory_location_type_id": 1,
  "is_distribution_staging": false,
  "label": "01",
  "length": 0,
  "parent_id": 0,
  "stamp": "",
  "warehouse_id": 1,
  "width": 0
}

Retrieve a Location
GET/v1/location/{location_id}

Returns a specific location.

URI Parameters
HideShow
location_id
integer (required) Example: 123

The id of the location.


Location Collection

A collection of locations.

GET /v1/location?order=warehouse_id
Responses200
Body
[
    {
        "active": true,
        "available_for_fulfillment": true,
        "description": "",
        ...
    },
    {
        "active": true,
        "available_for_fulfillment": true,
        "description": "",
        ...
    },
    ...
]

Retrieve all Locations
GET/v1/location{?order}

Retrieves all locations.

URI Parameters
HideShow
order
string (optional) Default: id Example: warehouse_id

The field to sort the result set by. Prefix with - to invert.

Choices: id parent_id warehouse_id


LocationType

LocationType

A location type.

GET /v1/locationType/123
Responses200
Headers
Content-Type: application/json
Body
{
  "depth": 0,
  "description": "",
  "height": 0,
  "id": 3,
  "label": "Shelf",
  "warehouse_id": 1,
  "width": 0
}

Retrieve a Location Type
GET/v1/locationType/{location_type_id}

Returns a specific location type.

URI Parameters
HideShow
location_type_id
integer (required) Example: 123

The id of the location type.


LocationType Collection

A collection of location types.

GET /v1/locationType?order=warehouse_id
Responses200
Body
[
    {
        "depth": 0,
        "description": "",
        "height": 0,
        ...
    },
    {
        "depth": 0,
        "description": "",
        "height": 0,
        ...
    },
    ...
]

Retrieve all Location Types
GET/v1/locationType{?order}

Retrieves all location types.

URI Parameters
HideShow
order
string (optional) Default: id Example: warehouse_id

The field to sort the result set by. Prefix with - to invert.

Choices: id warehouse_id


Location Hierarchy

Location Hierarchies

Location Hierarchies.

GET /v1/location_hierarchies
Responses200
Headers
Content-Type: application/json
Body
[
{
    id: 1,
    location_type_hierarchy_type_id: 1,
    label: “CORESense”,
    parent_id: 0
}
…
{
    id: 2,
    location_type_hierarchy_type_id: 2,
    label: “Northeast”,
    parent_id: 9
}
]

Retrieve Location Hierarchies
GET/v1/location_hierarchies

Returns all location Hierarchies.


Location Hierarchy Types

Location Hierarchy Types

Location Hierarchy Types.

GET /v1/location_hierarchy_types
Responses200
Headers
Content-Type: application/json
Body
[
{
    id: 1,
    level: 1
    label: “Chain”,
}
…
{
    id: 1,
    level: 1
    label: “Chain”,
}
]

Retrieve Location Hierarchy type
GET/v1/location_hierarchy_types

Returns all location Hierarchy types.


Manufacturer

Manufacturer

A manufacturer.

GET /v1/manufacturer/123
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "name": "Joe's Deli",
  "stamp": "2017-01-09T15:59:47-05:00"
}

Retrieve a manufacturer
GET/v1/manufacturer/{manufacturer_id}

Returns a specific manufacturer.

URI Parameters
HideShow
manufacturer_id
integer (required) Example: 123

The id of the manufacturer.


Manufacturer Collection

A collection of manufacturers.

GET /v1/manufacturer?order=name
Responses200
Body
[
    {
        "id": 1,
        "name": "Joe's Deli",
        "stamp": "2017-01-09T15:59:47-05:00"
    },
    {
        "id": 2,
        "name": "Pizza Palace",
        "stamp": "2017-02-13T01:05:17-05:00"
    },
    ...
]

Retrieve all manufacturers
GET/v1/manufacturer{?order}

Retrieves all manufacturers.

URI Parameters
HideShow
order
string (optional) Default: id Example: name

The field to sort the result set by. Prefix with - to invert.

Choices: id name


Master Purchase Order

Master Purchase Orders

POST /v1/masterPurchaseOrder
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "saved_purchase_order_id": 500044
}
Responses204
This response has no content.

Create a Master Purchase Order
POST/v1/masterPurchaseOrder

Create a Master Purchase Order from specific Saved Purchase Order.

URI Parameters
HideShow
saved_purchase_order_id
integer (required) Example: 123

Saved Purchase Order ID


Get merchandiseHierarchies Data

GET /v1/merchandiseHierarchies
Responses200
Headers
Content-Type: application/json
Body
[
  {
    "google_product_category": "187",
    "id": "1",
    "label": "001 Mens Work Boots",
    "merchandise_hierarchy_type_id": "1",
    "parent_id": "0",
    "tax_code": null
  },
  {
    "google_product_category": null,
    "id": "2",
    "label": "100 Safety Toe Athletic",
    "merchandise_hierarchy_type_id": "2",
    "parent_id": "1",
    "tax_code": null
  },
  {
    "google_product_category": null,
    "id": "3",
    "label": "101 Safety Toe Trail - Hiker",
    "merchandise_hierarchy_type_id": "2",
    "parent_id": "1",
    "tax_code": null
  },
  {
    "google_product_category": null,
    "id": "4",
    "label": "102 Safety Toe Oxford",
    "merchandise_hierarchy_type_id": "2",
    "parent_id": "1",
    "tax_code": null
  },
  {
    "google_product_category": null,
    "id": "5",
    "label": "103 Safety Toe Chukka",
    "merchandise_hierarchy_type_id": "2",
    "parent_id": "1",
    "tax_code": null
  },
  {
    "google_product_category": null,
    "id": "6",
    "label": "104 Safety Toe 5-6\" Boot",
    "merchandise_hierarchy_type_id": "2",
    "parent_id": "1",
    "tax_code": null
  },
  {
    "google_product_category": null,
    "id": "7",
    "label": "105 Safety Toe 7-8\" Boot",
    "merchandise_hierarchy_type_id": "2",
    "parent_id": "1",
    "tax_code": null
  }
]

Retrieve all merchandiseHierarchies
GET/v1/merchandiseHierarchies

Retrieve all merchendies entries.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id


Model Stock

Model Stocks

A collection of model stocks.

GET /v1/modelStock
Responses200
Headers
Content-Type: application/json
Body
[
  {
    "active": true,
    "default_vendor_id": 1,
    "grid_id": 0,
    "id": 1,
    "label": null,
    "medium": "document",
    "medium_id": 1,
    "model_id": 1,
    "type": "up-to",
    "use_distribution_center": false
  },
  ...
]

Retrieve all Model Stocks
GET/v1/modelStock

Retrieves all model stocks.


POST /v1/modelStock
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "active": true,
  "default_vendor_id": 1,
  "grid_id": 1,
  "label": "model stock",
  "medium": "document",
  "medium_id": 1,
  "model_id": 1,
  "type": "fixed",
  "use_distribution_center": true
}
Responses201
Headers
Content-Type: application/json
Body
{
  "id": "123"
}

Create Model Stock
POST/v1/modelStock

Creates a model stock.

URI Parameters
HideShow
active
boolean (required) Example: true

Is active?

default_vendor_id
integer (required) Example: 123

Default vendor ID

grid_id
integer (required) Example: 123

Grid ID

label
string (required) Example: model stock

Label

medium
"document","email" (required) Example: Document
medium_id
integer (required) Example: 123
model_id
integer (required) Example: 123

Model ID (SKU)

type
"up-to","fixed" (required) Example: Fixed

Type

use_distribution_center
boolean (required) Example: true

Does use istribution center?


Model Stock

A model stock.

GET /v1/modelStock/123
Responses200
Headers
Content-Type: application/json
Body
{
  "active": true,
  "default_vendor_id": 1,
  "grid_id": 0,
  "id": 1,
  "label": null,
  "medium": "document",
  "medium_id": 1,
  "model_id": 1,
  "type": "up-to",
  "use_distribution_center": false
}

Retrieve a Model Stock
GET/v1/modelStock/{model_stock_id}

Returns a specific model stock.

URI Parameters
HideShow
model_stock_id
integer (required) Example: 123

The id of the model stock.


PUT /v1/modelStock/123
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "active": true,
  "default_vendor_id": 1,
  "grid_id": 1,
  "label": "model stock",
  "medium": "document",
  "medium_id": 1,
  "model_id": 1,
  "type": "fixed",
  "use_distribution_center": true
}
Responses204
This response has no content.

Update Model Stock
PUT/v1/modelStock/{model_stock_id}

Update a model stock.

URI Parameters
HideShow
model_stock_id
integer (required) Example: 123

The id of the model stock.


DELETE /v1/modelStock/123
Responses204
This response has no content.

Delete a Model Stock
DELETE/v1/modelStock/{model_stock_id}

Delete a specific model stock. Deleting a model stock will result in deletion of associated Model Stock Levels and Model Stock Locations.

URI Parameters
HideShow
model_stock_id
integer (required) Example: 123

The id of the model stock.


Model Stock Levels

Model Stock Levels

A collection of model stock levels.

GET /v1/modelStockLevel
Responses200
Headers
Content-Type: application/json
Body
[
  {
    "id": 5,
    "inventory_type_id": 16,
    "model_stock_id": 5,
    "quantity": 2,
    "reorder_point": 1
  },
  ...
]

Retrieve all Model Stock Levels
GET/v1/modelStockLevel

Retrieves all model stock levels.


POST /v1/modelStockLevel
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "inventory_type_id": 16,
  "model_stock_id": 5,
  "quantity": 2,
  "reorder_point": 1
}
Responses201
Headers
Content-Type: application/json
Body
{
  "id": "123"
}

Create Model Stock Level
POST/v1/modelStockLevel

Creates a model stock level.

URI Parameters
HideShow
inventory_type_id
integer (required) Example: 123

Inventory type ID (SKU)

model_stock_id
integer (required) Example: 123

Model stock ID

quantity
integer (required) Example: 50

Quantity

reorder_point
integer (required) Example: 10

Reorder points


Model Stock Level

A model stock level.

GET /v1/modelStockLevel/123
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 123,
  "inventory_type_id": 16,
  "model_stock_id": 5,
  "quantity": 2,
  "reorder_point": 1
}

Retrieve a Model Stock Level
GET/v1/modelStockLevel/{model_stock_level_id}

Returns a specific model stock level.

URI Parameters
HideShow
model_stock_level_id
integer (required) Example: 123

The id of the model stock level.


PUT /v1/modelStockLevel/123
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "inventory_type_id": 16,
  "model_stock_id": 5,
  "quantity": 2,
  "reorder_point": 1
}
Responses204
This response has no content.

Update Model Stock Level
PUT/v1/modelStockLevel/{model_stock_level_id}

Update a model stock level.

URI Parameters
HideShow
model_stock_level_id
integer (required) Example: 123

The id of the model stock level.


DELETE /v1/modelStockLevel/123
Responses204
This response has no content.

Delete a Model Stock Level
DELETE/v1/modelStockLevel/{model_stock_level_id}

Delete a specific model stock level.

URI Parameters
HideShow
model_stock_level_id
integer (required) Example: 123

The id of the model stock level.


Model Stock Location

Model Stock Locations

A collection of model stock location.

GET /v1/modelStockLocation
Responses200
Headers
Content-Type: application/json
Body
[
  {
    "id": 1200,
    "location_hierarchy_id": 8,
    "model_stock_id": 1200
  },
  ...
]

Retrieve all Model Stock Locations
GET/v1/modelStockLocation

Retrieves all model stock locations.


POST /v1/modelStockLocation
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "location_hierarchy_id": 8,
  "model_stock_id": 1200
}
Responses201
Headers
Content-Type: application/json
Body
{
  "id": "123"
}

Create Model Stock Location
POST/v1/modelStockLocation

Creates a model stock location.

URI Parameters
HideShow
location_hierarchy_id
integer (required) Example: 123

Location hierarchy ID

model_stock_id
integer (required) Example: 123

Model stock ID


Model Stock Location

A model stock location.

GET /v1/modelStockLocation/123
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 1200,
  "location_hierarchy_id": 8,
  "model_stock_id": 1200
}

Retrieve a Model Stock Location
GET/v1/modelStockLocation/{model_stock_location_id}

Returns a specific model stock location.

URI Parameters
HideShow
model_stock_location_id
integer (required) Example: 123

The id of the model stock location.


PUT /v1/modelStockLocation/123
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "location_hierarchy_id": 8,
  "model_stock_id": 1200
}
Responses204
This response has no content.

Update Model Stock Location
PUT/v1/modelStockLocation/{model_stock_location_id}

Update a model stock location.

URI Parameters
HideShow
model_stock_location_id
integer (required) Example: 123

The id of the model stock location.


DELETE /v1/modelStockLocation/123
Responses204
This response has no content.

Delete a Model Stock Location
DELETE/v1/modelStockLocation/{model_stock_location_id}

Delete a specific model stock location.

URI Parameters
HideShow
model_stock_location_id
integer (required) Example: 123

The id of the model stock location.


NeededItem

NeededItem

An Needed item.

POST /v1/neededItem/
Requestsexample 1
Body
{
    "order_num": 132231,
    "config_id": 213231,
    "inventory_id": 132123123,
    "warehouse_id": 15,
    "stamp": '2012-11-17 10:03:37',
    "custom_processed": 1,
}
Responses201
Body
{
    "id": "123",
}

Create an Needed Item
POST/v1/neededItem/

Create a new Needed Item.


GET /v1/neededItem/123
Responses200
Headers
Content-Type: application/json
Body
{
    "order_num": 132231,
    "config_id": 213231,
    "inventory_id": 132123123,
    "warehouse_id": 15,
    "stamp": '2012-11-17 10:03:37',
    "custom_processed": 1,
}

Retrieve an Needed Item
GET/v1/neededItem/{needed_item_id}

Retrieve a specific needed Item.

URI Parameters
HideShow
needed_item_id
integer (required) Example: 123

The id of the needed item.


PUT /v1/neededItem/123
Responses204
This response has no content.

Update an Needed Item
PUT/v1/neededItem/{needed_item_id}

Update a specific needed item.

URI Parameters
HideShow
needed_item_id
integer (required) Example: 123

The id of the needed item.


DELETE /v1/neededItem/123
Responses204
This response has no content.

Delete an Needed Item
DELETE/v1/neededItem/{needed_item_id}

Delete a specific needed item.

URI Parameters
HideShow
needed_item_id
integer (required) Example: 123

The id of the needed item.


GET /v1/neededItem/
Responses200
Body
[
    {
        "order_num": 132231,
        "config_id": 213231,
        "inventory_id": 132123123,
        "warehouse_id": 15,
        "stamp": '2012-11-17 10:03:37',
        "custom_processed": 1,
    },
    {
        "order_num": 132231,
        "config_id": 213231,
        "inventory_id": 132123123,
        "warehouse_id": 15,
        "stamp": '2012-11-17 10:03:37',
        "custom_processed": 1,
    },
    {
        "order_num": 132231,
        "config_id": 213231,
        "inventory_id": 132123123,
        "warehouse_id": 15,
        "stamp": '2012-11-17 10:03:37',
        "custom_processed": 1,
    },
    ...
]

Retrieve all Needed Items
GET/v1/neededItem/

Retrieve all needed items.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id


OrderAdjustment

OrderAdjustment

An order adjustment.

POST /v1/orderAdjustment/
Requestsexample 1
Body
{
  "order_num": 966929,
  "amount": 2.31,
  "type": 2
}
Responses201
Body
{
  "id": "12345"
}

Create an OrderAdjustment
POST/v1/orderAdjustment/

Create a new order adjustment.

Top Level Parameters

  • order_num is required. This indicates the order that the adjustment will be attributed to. Orders may be enumerated via the GET /v1/order endpoint.

  • type is required. This indicates the adjustment type that the adjustment will be attributed to. Price Adjustment Type may be enumerated via the GET /v1/priceAdjustmentType endpoint.

  • amount is required. This indicates the amount, in dollars, of the adjustment.

  • user is optional.


GET /v1/orderAdjustment/123
Responses200
Headers
Content-Type: application/json
Body
{
    "amount": -200,
    "description": "Credit"
    "id": 123,
    "loyalty_points": 0,
    "order_num": 38293,
    "reward_id": 0,
    "stamp": "2019-05-17T16:17:29-04:00",
    "type": 1
    "user": "coresense"
}

Retrieve an order adjustment
GET/v1/orderAdjustment/{order_adjustment_id}

Returns a specific order adjustment.

URI Parameters
HideShow
order_adjustment_id
integer (required) Example: 123

The id of the order adjustment.


OrderAdjustment Collection

A collection of order’s adjustment(s).

GET /v1/orderAdjustment
Responses200
Body
[
    {
        ...
        "description": "Credit"
        "id": 123,
        "loyalty_points": 0,
        ...
    },
    {
        ...
        "description": "Credit"
        "id": 124,
        "loyalty_points": 0,
        ...
    },
    ...
]

Retrieve all order adjustments
GET/v1/orderAdjustment

Retrieves all order adjustments.


OrderDeal

OrderDeal

An order deal.

POST /v1/orderDeal/
Requestsexample 1
Body
{
    "deal_id": 3,
    "order_num": 12345,
    "discount_amount": 5.99,
    "order_shipping_detail_id": 5678,
}
Responses201
Body
{
    "id": "123",
}

Create an Order Deal
POST/v1/orderDeal/

Create a new order deal.


GET /v1/orderDeal/123
Responses200
Headers
Content-Type: application/json
Body
{
    "deal_id": 3,
    "order_num": 12345,
    "discount_amount": 5.99,
    "order_shipping_detail_id": 5678,
}

Retrieve an Order Deal
GET/v1/orderDeal/{order_deal_id}

Retrieve a specific order deal.

URI Parameters
HideShow
order_deal_id
integer (required) Example: 123

The id of the order deal.


PUT /v1/orderDeal/123
Responses204
This response has no content.

Update an Order Deal
PUT/v1/orderDeal/{order_deal_id}

Update a specific order deal.

URI Parameters
HideShow
order_deal_id
integer (required) Example: 123

The id of the order deal.


DELETE /v1/orderDeal/123
Responses204
This response has no content.

Delete an Order Deal
DELETE/v1/orderDeal/{order_deal_id}

Delete a specific order deal.

URI Parameters
HideShow
order_deal_id
integer (required) Example: 123

The id of the order deal.


OrderDeal Collection

A collection of order deals.

GET /v1/orderDeal?order=id
Responses200
Body
[
    {
        "deal_id": 3,
        "order_num": 12345,
        "discount_amount": 5.99,
        "order_shipping_detail_id": 5678,
    },
    {
        "deal_id": 3,
        "order_num": 12345,
        "discount_amount": 5.99,
        "order_shipping_detail_id": 5678,
    },
    {
        "deal_id": 3,
        "order_num": 12345,
        "discount_amount": 5.99,
        "order_shipping_detail_id": 5678,
    },
    ...
]

Retrieve all Order Deals
GET/v1/orderDeal{?order}

Retrieve all order deals.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id


OrderFulfillment

OrderFulfillment

Fulfillment of an order.

POST /v1/orderFulfillment/
Requestsexample 1
Body
{
    [
        "order_item_id": 525793,
        "sku_id": 9932198
    ]
}
Responses201
Body
{
    "purchase_orders": "No purchase orders created.",
    "purchase_order_queue": "Nothing sent to Purchase Order Queue.",
    "inventory_assigned": [
        {
            "qty": 1,
            "sku": 9932198,
            "warehouse": "CORESense",
            "status": "Success"
        },
        ...
    ],
    "inventory_backordered": "No inventory placed on back order.",
    "club_memberships_purchased": "No club memberships purchased."
}

Process Order Fulfillment
POST/v1/orderFulfillment/

Fulfill an order.

Item Level Parameters

Item Level Parameters are optional. The endpoint may be called with just the order number, which will fulfill all order items - if possible - on the order.

For those Item Leval Parameters that are optional, if not passed, they will default the same as if you were fulfilling the order manually and were using the default options given.

If Item Level Parameters are passed:

  • order_item_id is required. Order Items may be enumerated via the GET /v1/orderItem endpoint.

  • sku_id is required. Skus may be enumerated via the GET /v1/sku/ endpoint.

  • quantity is optional. The total amount of skus to fulfill for that order item. If not provided, it will default to fulfilling as much as possible for the order item.

  • build_type is optional. Either ‘INV’ (Stock Inventory), ‘JIT’ (Just-In-Time) or ‘DS’ (Drop-Ship).

  • action is optional. Either ‘send_now’ (Send Now), ‘queue’ (Queue in PO Manager) or ‘batch’ (Send to PO Queue).

  • vendor_id is optional. Vendors may be enumerated via the GET /v1/skuVendor endpoint.

  • warehouse_id is optional. Warehouses may be enumerated via the GET /v1/warehouse endpoint.

  • shipping_method_id is optional. Shipping methods may be enumerated via the GET /v1/shippingMethod endpoint.

  • medium is optional. Either ‘email’ (Email), ‘fax’ (eFax), ‘document’ (Print) or ‘edi850’ (edi850).

  • template_id is optional.

  • force is optional. If the order item / sku combination has already been fulfilled, you can pass this parameter to force it to re-fulfill.


GET /v1/orderFulfillment/123
Responses200
Body
[
    {
        "order_item_id": 525793,
        "sku_id": 9932198,
        "quantity": 1,
        "build_type": "INV",
        "vendor_id": 1079,
        "template_id": 0,
        "medium": "document",
        "warehouse_id": 2,
        "shipping_method_id": 7,
        "action": "send_now"
    },
    ...
]

Retrieve Order Fulfillment
GET/v1/orderFulfillment/{order_id}

Returns the default fulfillment methods for each order item on the order. If the order item has already been fully fulfilled, it will return ‘Product #X, SKU #Y has already been fulfilled.’.

URI Parameters
HideShow
order_id
integer (required) Example: 123

The id of the order.


OrderItemAdjustment

OrderItemAdjustment

An order item adjustment.

POST /v1/orderItemAdjustment/
Requestsexample 1
Body
{
    "order_item_id": "12345",
    "amount": 2.31,
    "increase_decrease": 'increase',
    "price_adjustment_type_id": 2
}
Responses201
Body
{
  "id": "12345"
}

Create an OrderItemAdjustment
POST/v1/orderItemAdjustment/

Create a new order item adjustment.

Top Level Parameters

  • order_item_id is required. This indicates the order item that the adjustment will be attributed to. Order Items may be enumerated via the GET /v1/orderItem endpoint.

  • price_adjustment_type_id is required. This indicates the adjustment type that the adjustment will be attributed to. Price Adjustment Type may be enumerated via the GET /v1/priceAdjustmentType endpoint.

  • amount is required. This indicates the amount, in dollars, of the adjustment.

  • increase_decrease is required. This indicates whether the adjustment is an increase or decrease to the order item.

  • channel_id is optional. If not specified, the order’s originating channel will be used.

  • user_id is optional.


GET /v1/orderItemAdjustment/123
Responses200
Headers
Content-Type: application/json
Body
{
  "amount": 2.31,
  "channel_id": 4,
  "id": 123,
  "increase_decrease": "increase",
  "order_item_id": 525793,
  "price_adjustment_type_id": 2,
  "stamp": "2019-05-17T16:17:29-04:00",
  "user_id": 39
}

Retrieve an order item adjustment
GET/v1/orderItemAdjustment/{order_item_adjustment_id}

Returns a specific order item adjustment.

URI Parameters
HideShow
order_item_adjustment_id
integer (required) Example: 123

The id of the order item adjustment.


OrderItemAdjustment Collection

A collection of order item’s adjustment.

GET /v1/orderItemAdjustment
Responses200
Body
[
    {
        ...
        "channel_id": 4,
        "id": 123,
        "increase_decrease": "increase",
        ...
    },
    {
        ...
        "channel_id": 4,
        "id": 124,
        "increase_decrease": "decrease",
        ...
    },
    ...
]

Retrieve all order item adjustments
GET/v1/orderItemAdjustment

Retrieves all order item adjustments.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id order_item_id


OrderItemDeal

OrderItemDeal

An order item deal.

POST /v1/orderItemDeal/
Requestsexample 1
Body
{
    "deal_id": 3,
    "order_item_id": 12345,
    "discount_amount": 5.99,
    "type": 'deal',
}
Responses201
Body
{
    "id": "123",
}

Create an Order Item Deal
POST/v1/orderItemDeal/

Create a new order item deal.


GET /v1/orderItemDeal/123
Responses200
Headers
Content-Type: application/json
Body
{
    "deal_id": 3,
    "order_item_id": 12345,
    "discount_amount": 5.99,
    "type": 'deal',
}

Retrieve an Order Item Deal
GET/v1/orderItemDeal/{order_item_deal_id}

Retrieve a specific order item deal.

URI Parameters
HideShow
order_item_deal_id
integer (required) Example: 123

The id of the order item deal.


PUT /v1/orderItemDeal/123
Responses204
This response has no content.

Update an Order Item Deal
PUT/v1/orderItemDeal/{order_item_deal_id}

Update a specific order item deal.

URI Parameters
HideShow
order_item_deal_id
integer (required) Example: 123

The id of the order item deal.


DELETE /v1/orderItemDeal/123
Responses204
This response has no content.

Delete an Order Item Deal
DELETE/v1/orderItemDeal/{order_item_deal_id}

Delete a specific order item deal.

URI Parameters
HideShow
order_item_deal_id
integer (required) Example: 123

The id of the order item deal.


OrderItemDeal Collection

A collection of order item deals.

GET /v1/orderItemDeal?order=id
Responses200
Body
[
    {
        "deal_id": 3,
        "order_item_id": 12345,
        "discount_amount": 5.99,
        "type": 'deal',
    },
    {
        "deal_id": 3,
        "order_item_id": 12345,
        "discount_amount": 5.99,
        "type": 'deal',
    },
    {
        "deal_id": 3,
        "order_item_id": 12345,
        "discount_amount": 5.99,
        "type": 'deal',
    },
    ...
]

Retrieve all Order Item Deals
GET/v1/orderItemDeal{?order}

Retrieve all order item deals.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id


OrderItem

OrderItem

An order item.

GET /v1/orderItem/123
Responses200
Headers
Content-Type: application/json
Body
{
  "amazon_order_item_id": "",
  "base_price": 19.95,
  "channel_id": 1,
  "closed": "",
  "cogs": 15.5,
  "delivery_date": "2019-05-21T09:39:55-04:00",
  "delivery_timing": "immediate pickup",
  "id": 123,
  "iha_product_overridden": "",
  "model_id": 1234,
  "order_num": 32432,
  "quantity": 2,
  "return_price": 19.95,
  "returned": "",
  "sales_tax": 6,
  "sales_tax_total": 2.394,
  "salesman": 55,
  "stamp": "2009-12-11T08:27:57-05:00",
  "total": 39.9
}

Retrieve an order item
GET/v1/orderItem/{order_item_id}

Returns a specific order item.

URI Parameters
HideShow
order_item_id
integer (required) Example: 123

The id of the order item.


DELETE /v1/orderItem/123
Responses204
This response has no content.

Delete an Order Item
DELETE/v1/orderItem/{order_item_id}

Delete a specific Order Item.

URI Parameters
HideShow
order_item_id
integer (required) Example: 123

The id of the Order Item.


OrderItem Collection

A collection of order items.

GET /v1/orderItem?order=id
Responses200
Body
[
    {
        ...
        "delivery_timing": "immediate pickup",
        "id": 123,
        "iha_product_overridden": "",
        ...
    },
    {
        ...
        "delivery_timing": "immediate pickup",
        "id": 124,
        "iha_product_overridden": "",
        ...
    },
    ...
]

Retrieve all order items
GET/v1/orderItem{?order}

Retrieves all order items.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: order_num id model_id delivery_timing closed


OrderItemSalesTaxModifierType

OrderItemSalesTaxModifierType

An order item sales tax modifier type.

GET /v1/orderItemSalesTaxModifierType/
Responses200
Headers
Content-Type: application/json
Body
{
  "amount": 10.2,
  "id": 123,
  "modifier_label": "Sales Tax #24",
  "order_item_id": 43324,
  "type": "real"
}

Retrieve an order item sales tax modifier type
GET/v1/orderItemSalesTaxModifierType/

Returns a specific order item sales tax modifier type.

URI Parameters
HideShow
order_item_sales_tax_modifier_tye_id
integer (required) Example: 123

The id of the order item sales tax modifier type.


OrderItemSalesTaxModifierType Collection

A collection of order item’s sales tax modifier type.

GET /v1/orderItemSalesTaxModifierType
Responses200
Body
[
    {
        "amount": 10.20,
        "id": 123,
        "modifier_label": "Sales Tax #24",
        ...
    },
    {
        "amount": 2.10,
        "id": 124,
        "modifier_label": "Temp.",
        ...
    },
    ...
]

Retrieve all order item sales tax modifier types
GET/v1/orderItemSalesTaxModifierType

Retrieves all order item sales tax modifier types.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id


OrderItemShippingDetail

OrderItemShippingDetail

An order item shipping detail.

GET /v1/orderItemShippingDetail/
Responses200
Headers
Content-Type: application/json
Body
{
    "id": 123,
    "order_shipping_detail_id": 391584,
    "order_item_id": 525794,
}

Retrieve an order item shipping detail
GET/v1/orderItemShippingDetail/

Returns a specific order item shipping detail.

URI Parameters
HideShow
order_item_shipping_detail
integer (required) Example: 123

The id of the order item shipping detail.


OrderItemShippingDetail Collection

A collection of order item’s shipping detail.

GET /v1/orderItemShippingDetail
Responses200
Body
[
    {
        "id": 123,
        "order_shipping_detail_id": 391584,
        "order_item_id": 525794,
    },
    {
        "id": 124,
        "order_shipping_detail_id": 391585,
        "order_item_id": 525795,
    },
    ...
]

Retrieve all order item shipping details
GET/v1/orderItemShippingDetail

Retrieves all order item shipping details.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id order_shipping_detail_id order_item_id


Order

Order

An order.

POST /v1/order/
Requestsexample 1
Body
{
  "customer_id": "12345",
  "channel_id": "1",
  "items": [
    {
      "product_id": "456",
      "quantity": "2",
      "shipping_method_id": "7",
      "productconfigurationoptions": [
        {
          "id": "123"
        },
        {
          "id": "456"
        }
      ]
    },
    {
      "product_id": "789",
      "shipping_method_id": "7",
      "warehouse_id": "3",
      "productconfigurationoptions": [
        {
          "id": "789"
        },
        {
          "id": "890"
        }
      ]
    }
  ]
}
Responses201
Body
{
  "id": "12345"
}

Create an Order
POST/v1/order/

Create a new order.

Top Level Parameters

  • customer_id is required. If creating an order for a new customer, you must first create a new customer record via the POST /v1/customer endpoint, which will return the ID.

  • channel_id is required. This indicates the sales channel that the order will be attributed to. Channels may be enumerated via the GET /v1/channel endpoint.

  • billing_contact_id is optional. If not specified, the customer’s default billing contact will be used.

  • shipping_price is optional. Sets the shipping cost on the order shipping detail.

  • payment_receivable_type_id is optional. If provided, a payment with the order balance will be created.

  • shipping_tax / shipping_tax_rate are optional. Providing one overrides shipping tax. Otherwise normal shipping tax calculation is done.

Item Level Parameters

Items to be ordered must be specified in an array named items. This parameter must exist and must be an array even if only one item is being ordered.

  • product_id is required. Products may be enumerated via the GET /v1/product endpoint.

  • shipping_method_id is required. Shipping methods may be enumerated via the GET /v1/shippingMethod endpoint.

  • quantity is optional and defaults to 1 if not specified.

  • warehouse_id is optional. Warehouses may be enumerated via the GET /v1/warehouse endpoint. If specifed, the item will be sourced from the indicated warehouse. If warehouse_id is provided and no inventory is available there for reservation, the product will be back-ordered. If warehouse_id is not provided, the product will be sourced as specified by your existing sourcing rules.

  • shipping_contact_id is optional. If not specified, the customer’s default shipping contact will be used.

  • unit_price is optional. If not specified, the product’s price for the indicated channel will be used.

  • amazon_order_item_id is optional.

  • sales_tax_rate / sales_tax are optional. Providing one overrides sales tax. Otherwise normal sales tax calculation is done.

  • due_date is optional. Used to set the Payment Due Date on an order. Format is YYYY-MM-DD HH:mm:ss.

  • order_status is optional. This is the order status id. Order statuses may be enumerated via the GET /v1/orderStatus endpoint.

  • productconfigurationoptions is optional. This is an array of IDs of configuration options. Configuration options may be enumerated via the GET /v1/productConfigurationOption/ endpoint.


GET /v1/order/123
Responses200
Headers
Content-Type: application/json
Body
{
  "affiliate_id": 0,
  "amazon_customer_id": 0,
  "amazon_order_id": "12345",
  "amt_paid": 32.95,
  "billing_contact_id": 298998,
  "cancelled": false,
  "checked_out": false,
  "client_id": 124238,
  "closed": true,
  "club_cc_reauthorization_sent": false,
  "cogs": 7.98715,
  "comments": "",
  "compliant": false,
  "custom_fraudulent": false,
  "due_date": "",
  "google_financial_status": "REVIEWING",
  "google_fulfillment_status": "NEW",
  "google_order_num": null,
  "grand_total": 32.95,
  "ip_address": "",
  "key_code": "",
  "layaway_expiration_date": null,
  "layaway_policy_id": 0,
  "layaway_status": null,
  "locked": true,
  "mail_code": "",
  "order_exported": false,
  "order_num": 209265,
  "order_status": 7,
  "originating_brand_id": 1,
  "originating_channel_id": 5,
  "originating_club_delivery_id": 0,
  "originating_club_membership_id": 0,
  "paid_stamp": "2017-03-18T10:59:10-04:00",
  "payment_invoice_number": null,
  "payment_type": 0,
  "personalization": false,
  "refund_total": 0,
  "salesman": "",
  "shipping_cost": 0,
  "shipping_tax_total": 0,
  "stamp": "2017-03-13T22:19:59-04:00",
  "total": 24,
  "viewed": "foo"
}

Retrieve an Order
GET/v1/order/{order_id}

Returns a specific order.

URI Parameters
HideShow
order_id
integer (required) Example: 123

The id of the order.


Order Collection

A collection of orders.

GET /v1/order?order=salesman
Responses200
Body
[
    {
        "affiliate_id": 0,
        "amazon_customer_id": 0,
        "amazon_order_id": "12345",
        ...
    },
    {
        "affiliate_id": 0,
        "amazon_customer_id": 0,
        "amazon_order_id": "12345",
        ...
    },
    ...
]

Retrieve all Orders
GET/v1/order{?order}

Retrieves all orders.

URI Parameters
HideShow
order
string (optional) Default: id Example: salesman

The field to sort the result set by. Prefix with - to invert.

Choices: cancelled client_id google_order_num google_financial_status google_fulfillment_status id locked order_status originating_channel_id originating_brand_id payment_invoice_number salesman stamp


PUT /v1/order
Requestsexample 1
Headers
Content-Type: application/json
Body
{
    "locked": 1,
    "order_status": 7,           
}
Responses204
Headers
Content-Type: application/json

Update an Order
PUT/v1/order

Updates an Order entity.

URI Parameters
HideShow
order_num
integer (required) Example: 123

The id of the order.


Order Shipment Collection

A collection of shipments.

GET /v1/order/123/shipment?order=status
Responses200
Body
[
    {
        "arrival_date": "",
        "assoc_entity": "order",
        "assoc_entity_id": 3,
        ...
    },
    {
        "arrival_date": "",
        "assoc_entity": "order",
        "assoc_entity_id": 3,
        ...
    },
    ...
]

Retrieve all Order Shipments
GET/v1/order/{order_id}/shipment{?order}

Retrieve all shipments for an order.

URI Parameters
HideShow
order_id
integer (required) Example: 123

The id of the order.

order
string (optional) Default: id Example: status

The field to sort the result set by. Prefix with - to invert.

Choices: id status exported assoc_entity


OrderShippingDetail

OrderShippingDetail

An order shipping detail.

GET /v1/orderShippingDetail/
Responses200
Headers
Content-Type: application/json
Body
{
  "delayed_delivery_date": "",
  "estimated_delivery_date": "",
  "estimated_shipping_date": "2019-05-09",
  "id": 123,
  "order_num": 966928,
  "pickup_warehouse_id": 0,
  "saved_shipping_tax_rate": 0,
  "shipping_contact_id": 785518,
  "shipping_cost": 5.99,
  "shipping_method_id": 21
}

Retrieve an order shipping detail
GET/v1/orderShippingDetail/

Returns a specific order shipping detail.

URI Parameters
HideShow
order_shipping_detail
integer (required) Example: 123

The id of the order shipping detail.


OrderShippingDetail Collection

A collection of order’s shipping detail(s).

GET /v1/orderShippingDetail?order=id
Responses200
Body
[
    {
        ...
        "estimated_shipping_date": "",
        "id": 123,
        "order_num": 966928,
        ...
    },
    {
        ...
        "estimated_shipping_date": "",
        "id": 124,
        "order_num": 966929,
        ...
    },
    ...
]

Retrieve all order shipping details
GET/v1/orderShippingDetail{?order}

Retrieves all order shipping details.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id order_num shipping_contact_id


OrderShippingDetail Update

Update order shipping detail

PUT /v1/orderShippingDetail/123
Requestsexample 1
Headers
Content-Type: application/json
Body
{
    "shipping_method_id": 456,
}
Responses200
Headers
Content-Type: application/json

Update an order shipping detail
PUT/v1/orderShippingDetail/{order_shipping_detail_id}

Updates the order shipping detail shipping method only.

URI Parameters
HideShow
order_shipping_detail_id
integer (required) Example: 123

The id of the order shipping detail.


OrderStatus

OrderStatus

An order status.

GET /v1/orderStatus/123
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "status": "Ready to Process"
}

Retrieve an Order Status
GET/v1/orderStatus/{order_status_id}

Returns a specific order status.

URI Parameters
HideShow
order_status_id
integer (required) Example: 123

The id of the order_status.


GET /v1/orderStatus/
Responses200
Body
[
    {
        "id": 1,
        "status": "Ready to Process",
    },
    {
        "id": 2,
        "status": "Awaiting Payment",
    },
    ...
]

Retrieve all Order Statuses
GET/v1/orderStatus/

Retrieves all order_statuses.

URI Parameters
HideShow
order
string (optional) Example: id

The field to sort the result set by. Prefix with - to invert.


OrderVoid

OrderVoid

Voiding an order.

PUT /v1/orderVoid/123
Responses201
Body
{
    "message": "Order has been voided successfully.",
}

Order Void
PUT/v1/orderVoid/{order_id}

Voiding an order

URI Parameters
HideShow
order_id
integer (required) Example: 123

The id of the order.


Payment

Payment

A payment.

POST /v1/payment/
Requestsexample 1
Body
{
    "assoc_entity": "order",
    "assoc_entity_id": 967280,
    "payment": 0.01,
    "receivable_type_id": 7,
    "user": 'coresense',
    "client_id": 282219
}
Responses201
Body
{
  "id": "12345"
}

Create a Payment
POST/v1/payment/

Create a new payment

Top Level Parameters

  • assoc_entity_id is required. This indicates the order number that the payment will be attributed to.

  • assoc_entity is required. This indicates the type (order) that the payment will be attributed to.

  • payment is required. This is the payment’s payment amount.

  • receivable_type_id is required. This indicates the type of the payment. Receivable Type may be enumerated via the GET /v1/receivableType endpoint.

  • client_id is optional. If not specifier, it will use the order’s customer or the return’s customer.

  • If a credit card payment, additional parameters are required: ** payment_process_status, which must be ‘authorized’, ‘captured’ or ‘voided’. ** payment_processor_id, which must be the payment processor id for the credit card payment. ** credit_card_id, which must be the credit card id for the credit card payment.


GET /v1/payment/123
Responses200
Headers
Content-Type: application/json
Body
{
    "assoc_entity": "order",
    "assoc_entity_id": 966930,
    "category": "",
    "check_num": 0,
    "client_id": 246376
    "id": 123,
    "memo": "",
    "payee": "",
    "payment": 13.73,
    "payment_gateway_response": "",
    "payment_process_auth_code": "",
    "payment_process_message": "",
    "payment_process_message_type": "message",
    "payment_process_status": "n/a",
    "payment_process_transaction_id": "",
    "payment_processor_id": 0,
    "pos_id": 0,
    "receivable_type_id": 7,
    "stamp": "2019-05-16T14:55:28-04:00",
    "user": "coresense",
    "void": ""
}

Retrieve payment
GET/v1/payment/{payment_id}

Returns a specific payment.

URI Parameters
HideShow
payment_id
integer (required) Example: 123

The id of the payment.


Payment Collection

A collection of order’s payment(s).

GET /v1/payment?order=id
Responses200
Body
[
    {
        ...
        "client_id": 246376
        "id": 123,
        "memo": "",
        ...
    },
    {
        ...
        "client_id": 43214
        "id": 124,
        "memo": "",
        ...
    },
    ...
]

Retrieve all payments
GET/v1/payment{?order}

Retrieves all payments.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: assoc_entity assoc_entity_id id pos_id receivable_type_id stamp void


PriceAdjustmentType

PriceAdjustmentType

A price adjustment type.

GET /v1/priceAdjustmentType/123
Responses200
Headers
Content-Type: application/json
Body
{
  "bgcolor": "",
  "id": 123,
  "label": "Discount",
  "taxable": 1
}

Retrieve a price adjustment type
GET/v1/priceAdjustmentType/{price_adjustment_type_id}

Returns a specific price adjustment type.

URI Parameters
HideShow
price_adjustment_type_id
integer (required) Example: 123

The id of the price adjustment type.


GET /v1/priceAdjustmentType/
Responses200
Body
[
    {
        "bgcolor": "",
        "id": 123,
        "label": "Discount",
        "taxable": 1
    },
    {
        "bgcolor": "",
        "id": 124,
        "label": "Increase",
        "taxable": ""
    },
    ...
]

Retrieve all price adjustment types
GET/v1/priceAdjustmentType/

Retrieves all price adjustment types.


Product

Product

A product.

GET /v1/product/123
Responses200
Headers
Content-Type: application/json
Body
{
  "base_price": 35,
  "default_base_cogs": 0,
  "default_fulfillment": "DROP",
  "default_needs_own_box": false,
  "default_shipping_depth": 0,
  "default_shipping_height": 0,
  "default_shipping_method_id": 0,
  "default_shipping_weight": 0,
  "default_shipping_width": 0,
  "default_vendor_id": 0,
  "description": "This is a nice product.",
  "digital_expiration_days": 0,
  "digital_maximum_downloads": 0,
  "globalshopex_country_of_origin": "US",
  "globalshopex_restricted": 0,
  "grid_id": 0,
  "id": 3,
  "image_location": "common/images/products/thumb/03_11697001.jpg",
  "last_modified_stamp": "2017-01-09T15:59:47-05:00",
  "last_onthefly_id": 1,
  "manufacturer_id": 1,
  "media_enabled": "0",
  "minimum_advertised_price": 0,
  "minimum_advertised_price_display": "map_type_1",
  "name": "A Nice Thing",
  "needs_own_box": false,
  "non_inventory": false,
  "part_num": "12345",
  "personalization_image_uri": "",
  "personalization_template_id": 0,
  "powerreviews_qa": null,
  "powerreviews_rating": 0,
  "powerreviews_reviews": "",
  "pre_order": false,
  "pre_order_available_date": null,
  "pre_order_deadline": null,
  "pre_order_sale_date": null,
  "pricing_group_id": 0,
  "product_class": null,
  "production_time": 0,
  "replaces": 0,
  "sku_generation": "manual",
  "style_locator": "000-001",
  "supports_recurring_orders": true,
  "tax_code": null,
  "type": 1,
  "void": true
}

Retrieve a Product
GET/v1/product/{product_id}

Returns a specific product.

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.


POST /v1/product/
Requestsexample 1
Headers
Content-Type: application/json
Body
{
    "base_price": 35,
    "image_location": "common\/images\/products\/thumb\/03_11697001.jpg",
    "void": true,
    "default_shipping_height": 60
    ...
}
Responses204
Headers
Content-Type: application/json

Create a Product
POST/v1/product/

Create a product entity.

URI Parameters
HideShow
base_price
float (required) Example: 123.12

Base price of the product

default_base_cogs
integer (required) Example: 1

Default cost over goods

default_fulfillment
string (required) Example: DROP

Default fullfilment method

default_needs_own_box
boolean (required) Example: false

Weather need own box for the product?

default_shipping_depth
float (required) Example: 1.00

Default shipping depth of the product

default_shipping_height
float (required) Example: 1.00

Default shipping height of the product

default_shipping_method_id
integer (required) Example: 123

Default shipping method for the product

default_shipping_weight
float (required) Example: 1.00

Default shipping weight of the product

default_shipping_width
float (required) Example: 1.00

Default shipping width of the product

default_vendor_id
integer (required) Example: 123

Default vendor ID

description
string (required) Example: "This is a nice product."

Description of the product

digital_expiration_days
integer (required) Example: 30

Digital Expiration days for the prodcut

digital_maximum_downloads
integer (required) Example: 10

Maximum download limit for the prodcut

globalshopex_country_of_origin
string (required) Example: "US"

Country of origin of the product

globalshopex_restricted: `1` (integer) - globalshopex_restricted for product
string (required) 
grid_id
integer (required) Example: 123

Grid ID

image_location: `"common\/images\/products\/thumb\/03_11697001.jpg"`
string (required) 

Product image location path

last_modified_stamp
datetime (required) Example: "2017-01-09T15:59:47-05:00"

Last modified date of the product

last_onthefly_id
integer (required) Example: 1

Last on-the-fly ID

manufacturer_id
integer (required) Example: 1

Manufacturer ID

media_enabled
boolean (required) Example: 1

Is media enabled?

minimum_advertised_price
float (required) Example: 123.12

Minimum advertised price of the product

minimum_advertised_price_display
float (required) Example: 123.12

Minimum advertised price to display for the product

name
string (required) Example: "A Nice Thing"

Name of the product

needs_own_box
boolean (required) Example: false

Need own box for the product?

non_inventory
boolean (required) Example: false

Non inventory product

part_num
string (required) Example: "12345"

Product part number

personalization_image_uri
string (required) Example: "path/from/to/image.ext"

Personalization image URI

personalization_template_id
integer (required) Example: 1

Personalization template ID

powerreviews_rating
float (required) Example: 0.0

Power-Review rating

pre_order
boolean (required) Example: false

Pre order the product?

pricing_group_id
integer (required) Example: 1

Pricing group of the product

replaces
integer (required) Example: 1

Replace value for the product

production_time
integer (required) Example: 123123

Production time of the product

style_locator
string (required) Example: "000-001"

Style locator for the product

supports_recurring_orders
boolean (required) Example: true

Does the product support recurring orders?

type
integer (required) Example: 1

Type ID for the product

void
boolean (required) Example: false

Is product void or not?


PUT /v1/product/123
Requestsexample 1
Headers
Content-Type: application/json
Body
{
    "base_price": 35,
    "image_location": "common\/images\/products\/thumb\/03_11697001.jpg",
    "void": true,
    "default_shipping_height": 60,
    "update_sku": true,
    ...
}
Responses204
Headers
Content-Type: application/json

Update a Product
PUT/v1/product/{product_id}

Updates a product entity.

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.

update_sku
boolean (required) Example: false

Update all SKU of product on basis of void or not?


Product Collection

A collection of products.

GET /v1/product?order=part_num
Responses200
Body
[
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    ...
]

Retrieve all Products
GET/v1/product{?order}

Retrieves all products.

URI Parameters
HideShow
order
string (optional) Default: id Example: part_num

The field to sort the result set by. Prefix with - to invert.

Choices: id last_modified_stamp manufacturer_id part_num type


Product Category Collection

A collection of categories.

GET /v1/product/123/category?order=category
Responses200
Body
[
    {
        "active": true,
        "category": "root",
        "custom_breadcrumb_parent": 0,
        ...
    },
    {
        "active": true,
        "category": "root",
        "custom_breadcrumb_parent": 0,
        ...
    },
    ...
]

Retrieve all Product Categories
GET/v1/product/{product_id}/category{?order}

Retrieve all categories for a product.

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.

order
string (optional) Default: id Example: category

The field to sort the result set by. Prefix with - to invert.

Choices: id category label


Product Category Assignment

Assign a category to a product

PUT /v1/product/123/category/123
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "position": 2,
  "label": "label 123"
}
Responses204
This response has no content.

Assign a category to a product
PUT/v1/product/{product_id}/category/{category_id}

Assign a category to a product.

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.

category_id
integer (required) Example: 123

The category ID to assign to the product.


Product Location Collection

A collection of product locations.

GET /v1/product/123/location?order=warehouse_id&warehouse_id=123
Responses200
Body
[
    {
        "active": true,
        "available_for_fulfillment": true,
        "description": "",
        ...
    },
    {
        "active": true,
        "available_for_fulfillment": true,
        "description": "",
        ...
    },
    ...
]

Retrieve all Product Locations
GET/v1/product/{product_id}/location{?order,warehouse_id}

Retrieves all product locations.

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.

warehouse_id
integer (optional) Example: 123

Limit the request to locations in this warehouse.

order
string (optional) Default: id Example: warehouse_id

The field to sort the result set by. Prefix with - to invert.

Choices: id parent_id warehouse_id


Product Channel

Product Channel assignment

PUT /v1/product/123/channels/123
Requestsexample 1
Body
{
    'active' => true,
    'limit_type' => 'unlimited',
    'sale_limit' => 10,
    'base_price' => 449.99,
    'add_to_cart' => true
    ...
}
Responses204
This response has no content.

Assign a channel to product
PUT/v1/product/{product_id}/channels/{channel_id}

Assign a channel to a product

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.

channel_id
integer (required) Example: 123

The channel to assign the product to


Product Channel

Get product channel specific info

GET /v1/product/123/channels/123
Responses200204
Body
{
    "active": "n",
    "add_to_cart": "yes",
    "base_price": "0.00",
    "description_text": "SHIRT FULL-ZIP HOODED SWEATSHIRT BLACK - LG",
    "image_location": "",
    "limit_type": "unlimited",
    "model_id": "16414",
    "sale_limit": "0",
    "stamp": "0000-00-00 00:00:00"
    ...
}
This response has no content.

Get product channel specific info
GET/v1/product/{product_id}/channels/{channel_id}

Get product channel specific info

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.

channel_id
integer (required) Example: 123

The channel to assign the product to


Product Type

Get Product Type Custom Fields

GET /v1/product/123/productType
Responses200200
Body
{
        'custom_2nd_color' => 123,
        'custom_accolades' => 'abc',
        'custom_acidity' => 'abc',
        'custom_additional_description' => 'abc',
        'custom_alcohol_content' => 'abc'
        ...
    }
This response has no content.

Retrieve Product Type custom fields values to a product
GET/v1/product/{product_id}/productType

Product Type Custom Fields

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.


Product Type

Product Type Custom Fields

PUT /v1/product/123/productType
Requestsexample 1
Body
{
        'custom_2nd_color' => 123,
        'custom_accolades' => 'abc',
        'custom_acidity' => 'abc',
        'custom_additional_description' => 'abc',
        'custom_alcohol_content' => 'abc'
        ...
    }
Responses204
This response has no content.

Assign Product Type custom fields values to a product
PUT/v1/product/{product_id}/productType

Product Type Custom Fields

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.


ProductConfigurationOption

ProductConfigurationOption

A product configuration option.

GET /v1/productConfigurationOption/123
Responses200
Headers
Content-Type: application/json
Body
{
  "active": 1,
  "cost": 0,
  "id": 123,
  "is_default": "",
  "label": "Tire SR-R",
  "large_image": "",
  "legacy_option_id": 42,
  "legacy_option_type_id": 2,
  "main_image": "",
  "position": 1,
  "price": 0,
  "product_configuration_option_type_id": 5,
  "product_id": 532,
  "stamp": "2018-03-27T22:09:26-04:00",
  "swatch_image": "",
  "thumbnail_image": "",
  "weight": 0
}

Retrieve a product configuration option
GET/v1/productConfigurationOption/{product_configuration_option_id}

Returns a specific product configuration option.

URI Parameters
HideShow
product_configuration_option_id
integer (required) Example: 123

The id of the product configuration option.


ProductConfigurationOption Collection

A collection of product’s configuration option(s).

GET /v1/productConfigurationOption
Responses200
Body
[
    {
        ...
        "cost": 0.00,
        "id": 123,
        "is_default": "",
        ...
    },
    {
        ...
        "cost": 3.00,
        "id": 124,
        "is_default": 1,
        ...
    },
    ...
]

Retrieve all product configuration options
GET/v1/productConfigurationOption

Retrieves all product configuration options.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: active id legacy_option_id position product_configuration_option_type_id product_id


ProductConfigurationOptionType

ProductConfigurationOptionType

A product configuration option type.

GET /v1/productConfigurationOptionType/123
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 123,
  "label": "Size",
  "order_data_field": "",
  "web_display_text": ""
}

Retrieve a product configuration option type
GET/v1/productConfigurationOptionType/{product_configuration_option_type_id}

Returns a specific product configuration option type.

URI Parameters
HideShow
product_configuration_option_type_id
integer (required) Example: 123

The id of the product configuration option type.


GET /v1/productConfigurationOptionType/
Responses200
Body
[
    {
        "id": 123,
        "label": "Size",
        "order_data_field": "",
        "web_display_text": ""
    },
    {
        "id": 124,
        "label": "Color",
        "order_data_field": "",
        "web_display_text": ""
    },
    ...
]

Retrieve all product configuration option types
GET/v1/productConfigurationOptionType/

Retrieves all product configuration option types.


ProductInventory

ProductInventory

Product inventory.

GET /v1/productInventory/123
Responses200
Headers
Content-Type: application/json
Body
{
  "active": 1,
  "id": 123,
  "inventory_type_id": 39212,
  "model_id": 938291,
  "quantity": 1,
  "stamp": "2019-05-07T23:04:58-04:00",
  "type": "general"
}

Retrieve product inventory
GET/v1/productInventory/{product_inventory_id}

Returns a specific product inventory.

URI Parameters
HideShow
product_inventory_id
integer (required) Example: 123

The id of the product inventory.


ProductInventory Collection

A collection of product’s or sku’s product inventory.

GET /v1/productInventory
Responses200
Body
[
    {
        "active": 1,
        "id": 123,
        "inventory_type_id": 39212,
        ...
    },
    {
        "active": 1,
        "id": 124,
        "inventory_type_id": 39212,
        ...
    },
    ...
]

Retrieve all product inventory
GET/v1/productInventory

Retrieves all product inventory.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id inventory_type_id model_id


POST /v1/productInventory
Requestsexample 1
Body
{
  "model_id": 456,
  "quantity": 2,
  "inventory_type_id": 1234,
  "active": true
}
Responses201
Body
{
  "id": "12345"
}

Create Product Inventory
POST/v1/productInventory

Create a new product inventory.

Parameters

  • model_id: 123 (integer) - Product ID

  • inventory_type_id: 456 (integer) - SKU ID

  • quantity: 10 (integer) - Quantity of the sku.

  • active: true (boolean) - Is active?


ProductInventoryStandard

ProductInventoryStandard

A product inventory standard.

GET /v1/productInventoryStandard/123
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 123,
  "option_id": 39212,
  "product_inventory_id": 938291,
  "active": 1
}

Retrieve a product inventory standard
GET/v1/productInventoryStandard/{product_inventory_standard_id}

Returns a specific product inventory standard.

URI Parameters
HideShow
product_inventory_standard_id
integer (required) Example: 123

The id of the product inventory standard.


ProductInventoryStandard Collection

A collection of product inventory standard.

GET /v1/productInventoryStandard
Responses200
Body
[
    {
        "id": 123,
        "option_id": 39212,
        "product_inventory_id": 938291,
        "active": 1
    },
    {
        "id": 124,
        "option_id": 39432,
        "product_inventory_id": 923291,
        "active": 1
    },
    ...
]

Retrieve all product inventory standards
GET/v1/productInventoryStandard

Retrieves all product inventory standards.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id option_id product_inventory_id


ProductInventoryUpgrade

ProductInventoryUpgrade

A product inventory upgrade.

GET /v1/productInventoryUpgrade/123
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 123,
  "option_id": 39212,
  "product_inventory_id": 938291,
  "active": 1
}

Retrieve a product inventory upgrade
GET/v1/productInventoryUpgrade/{product_inventory_upgrade_id}

Returns a specific product inventory upgrade.

URI Parameters
HideShow
product_inventory_upgrade_id
integer (required) Example: 123

The id of the product inventory upgrade.


ProductInventoryUpgrade Collection

A collection of product inventory upgrade.

GET /v1/productInventoryUpgrade
Responses200
Body
[
    {
        "id": 123,
        "option_id": 39212,
        "product_inventory_id": 938291,
        "active": 1
    },
    {
        "id": 124,
        "option_id": 39432,
        "product_inventory_id": 923291,
        "active": 1
    },
    ...
]

Retrieve all product inventory upgrades
GET/v1/productInventoryUpgrade

Retrieves all product inventory upgrades.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id option_id product_inventory_id


ProductMarkdown

ProductMarkdown [POST]

[/v1/productMarkdown]

Create a new ProductMarkdown.

  • Request

    {
          "markdown_price" => 86.99,
          "markdown_type" => 'Promotional',
          "product_id"  => 66002
      }
  • Response 201

    {
          "id": "123",
      }

ProductMarkdown

A product markdown.

GET /v1/productMarkdown/123
Responses200
Headers
Content-Type: application/json
Body
{
    "deal_id": null,
    "id": 3,
    "markdown_price": 34.99,
    "markdown_type": 'Permanent',
    "product_id": 1823,
    "stamp": 2014-10-16T12:48:34-04:00
}

Retrieve a Product Markdown
GET/v1/productMarkdown/{product_markdown_id}

Returns a specific product markdown.

URI Parameters
HideShow
product_markdown_id
integer (required) Example: 123

The id of the product markdown.


ProductMarkdown Collection

A collection of product markdowns.

GET /v1/productMarkdown?order=product_id
Responses200
Body
[
    {
        "deal_id": 1,
        "id": 381,
        "markdown_price": 17.49,
        ...
    },
    {
        "deal_id": null,
        "id": 382,
        "markdown_price": 102.32,
        ...
    },
    ...
]

Retrieve all Product Markdowns
GET/v1/productMarkdown{?order}

Retrieves all product markdows.

URI Parameters
HideShow
order
string (optional) Default: id Example: product_id

The field to sort the result set by. Prefix with - to invert.

Choices: id deal_id product_id


PUT /v1/productMarkdown

Update an Product Markdown
PUT/v1/productMarkdown

Update a specific Product Markdown.

URI Parameters
HideShow
markdown_price
integer (required) Example: 123

The price


DELETE /v1/productMarkdown
Responses204
This response has no content.

Delete an Product Markdown
DELETE/v1/productMarkdown

Delete a specific Product Markdown.

URI Parameters
HideShow
product_markdown_id
integer (required) Example: 123

The id of the product Markdown.


ProductPrice

ProductPrice

Product pricing.

GET /v1/productPrice/123/channel/5
Responses200
Headers
Content-Type: application/json
Body
{
  "base_price": 2.99,
  "base_price_after_rebate": 2.79,
  "minimum_advertised_price": 1.99,
  "rebate_amount": 0.2
}

Retrieve a Product Price
GET/v1/productPrice/{product_id}/channel/{channel_id}

Returns pricing for a specific product.

URI Parameters
HideShow
product_id
integer (required) Example: 123

The id of the product.

channel_id
integer (required) Example: 5

The id of the channel.


PurchaseOrder

PurchaseOrder

Purchase Orders.

GET /v1/purchaseOrder
Responses200
Headers
Content-Type: application/json
Body
[
    {
        "buyer_id": 0,
        "cancel_date": null,
        "centralized": false,
        "cost": 139.9,
        "do_not_ship_before_date": "2024-05-15",
        "est_receiving_date": "2024-05-15",
        "id": "1",
        "label": null,
        "master_po_number": null,
        "medium": "document",
        "medium_id": 10,
        "notes": null,
        "sales_tax": 0,
        "shipping_cost": 0,
        "shipping_method_id": 1,
        "shipping_method_id_2": null,
        "stamp": "2008-03-18 09:51:28",
        "stamp_closed": "2008-03-18 09:52:05",
        "status": "closed",
        "terms": null,
        "vendor_id": 41,
        "warehouse_id": 1
    },
    ...
]

Retrieve Purchase Order
GET/v1/purchaseOrder

Retrieve all purchase orders.


PurchaseOrder

GET /v1/purchaseOrder/123
Responses200
Headers
Content-Type: application/json
Body
{
  "buyer_id": 0,
  "cancel_date": null,
  "centralized": false,
  "cost": 139.9,
  "do_not_ship_before_date": "2024-05-15",
  "est_receiving_date": "2024-05-15",
  "id": "1",
  "label": null,
  "master_po_number": null,
  "medium": "document",
  "medium_id": 10,
  "notes": null,
  "sales_tax": 0,
  "shipping_cost": 0,
  "shipping_method_id": 1,
  "shipping_method_id_2": null,
  "stamp": "2008-03-18 09:51:28",
  "stamp_closed": "2008-03-18 09:52:05",
  "status": "closed",
  "terms": null,
  "vendor_id": 41,
  "warehouse_id": 1
}

Retrieve Purchase Order
GET/v1/purchaseOrder/{purchase_order_id}

Retrieve a single purchase order.

URI Parameters
HideShow
purchase_order_id
integer (required) Example: 123

The id of the purchase order.


PUT /v1/purchaseOrder/123
Requestsexample 1
Body
{
    ...,
    "shipping_cost": 235.0,
    "shipping_method_id": 1,
    "shipping_method_id_2": 3,
    "vendor_id": 42,
    "warehouse_id": 1,
    ...
}
Responses204
This response has no content.

Update A Purchase Order
PUT/v1/purchaseOrder/{purchase_order_id}

Update a single purchase order.

  • buyer_id: 0 (integer) - User ID of buyer,

  • centralized: false (boolean) - Centralized,

  • cost: 139.9 (float) - Cost of purchase order,

  • do_not_ship_before_date: 2024-05-15 (datetime)

  • est_receiving_date: 2024-05-15 (datetime),

  • master_po_number: 123 (integer) - Master PO number,

  • medium: document (enum) - Document or Email,

  • medium_id: 10 (integer) - Medium ID (Template ID),

  • notes: lorem ipsum... (string),

  • sales_tax: 0 (float),

  • shipping_cost: 0 (float),

  • shipping_method_id: 1 (integer),

  • shipping_method_id_2: 1 (integer),

  • status: closed (string) - Status of PO,

  • terms: lorem ipsum...,

  • vendor_id: 41 (integer),

  • warehouse_id: 1 (integer)

URI Parameters
HideShow
purchase_order_id
integer (required) Example: 123

The id of the purchase order.


PurchaseOrderSku

PurchaseOrderSku

GET /v1/purchaseOrderSku/123/purchaseOrderSku
Responses200
Headers
Content-Type: application/json
Body
[ 
    {
        "config_id": 0,
        "cost": 11.03,
        "fulfillment_type": "INV",
        "inventory_type_id": 173,
        "promise_date": '2024-05-30',
        "order_num": 0,
        "quantity": 1,
        "status": "voided"
    },
    {
        "config_id": 0,
        "cost": 11.03,
        "fulfillment_type": "INV",
        "inventory_type_id": 173,
        "promise_date": '2024-05-30',
        "order_num": 0,
        "quantity": 19,
        "status": "unfulfilled"
    },
    ...
]

Retrieve Purchase Order SKUs
GET/v1/purchaseOrderSku/{purchase_order_id}/purchaseOrderSku

Retrieve all SKU combinations for a single SKU for a purchase order grouped by cost, fulfillment type, order and order item.

URI Parameters
HideShow
purchase_order_id
integer (required) Example: 123

The id of the purchase order.


POST /v1/purchaseOrderSku/123/purchaseOrderSku
Requestsexample 1
Body
{
    inventory_type_id: 123,
    cost: 63.8,
    quantity: 12
}
Responses200
Headers
Content-Type: application/json

Create Purchase Order SKU
POST/v1/purchaseOrderSku/{purchase_order_id}/purchaseOrderSku

Create a new Purchase Order SKU. If the SKU exists for the purchase order SKU cost combination, it will result in error. In this case, an update using PUT method must be used

  • inventory_type_id: 123 (integer) - sku ID (required)

  • cost: 236.8 (float) - cost mentioned in the po requirements (required)

  • quantity: 12 (integer) - quantity to add to new PurchaseOrderSKU (required)

URI Parameters
HideShow
purchase_order_id
integer (required) Example: 123

The id of the purchase order.


PurchaseOrderSKU

PUT /v1/purchaseOrder/123/purchaseOrderSku/123
Requestsexample 1
Body
{
    'order_num': 0,
    'config_id': 0,
    'fulfillment_type': 'INV',
    'quantity': 63,
    'promise_date': '2024-05-30',
    'cost': 2.83
}
Responses200
Headers
Content-Type: application/json

Update a Purchase Order SKU
PUT/v1/purchaseOrder/{purchase_order_id}/purchaseOrderSku/{inventory_type_id}

Update a single purchase order SKU. Only quantity can be incremented. Reductions in quantity will have to be done through DELETE operation

  • order_num: 123 (integer) - Order ID (if assigned). If not assigned specify as 0 (zero) (required).

  • config_id: 123 (integer) - Order item ID (if assigned). If not assigned specify as 0 (zero) (required).

  • fulfillment_type: INV (integer) - Fulfillment type (required).

  • promise_date: 236.8 (date) - promise date (optional).

  • cost: 236.8 (float) - cost mentioned in the po requirements (required).

  • quantity: 12 (integer) - quantity to add to new PurchaseOrderSKU (optional).

URI Parameters
HideShow
purchase_order_id
integer (required) Example: 123

The id of the purchase order.

inventory_type_id
integer (required) Example: 123

sku ID.


GET /v1/purchaseOrder/123/purchaseOrderSku/123
Responses200
Body
{
    "config_id": 0,
    "cost": 11.03,
    "fulfillment_type": "INV",
    "inventory_type_id": 173,
    "promise_date": '2024-05-30',
    "order_num": 0,
    "quantity": 1,
    "status": "voided"
}

Retrieve A Purchase Order SKU
GET/v1/purchaseOrder/{purchase_order_id}/purchaseOrderSku/{inventory_type_id}

Retrieve SKU combinations for a single SKU for a purchase order grouped by cost, fulfillment type, order and order item.

URI Parameters
HideShow
purchase_order_id
integer (required) Example: 123

The id of the purchase order.

inventory_type_id
integer (required) Example: 123

sku ID.


DELETE /v1/purchaseOrder/123/purchaseOrderSku/123
Requestsexample 1
Body
{
    "quantity": 12,
}
Responses200
Body
{
  "message": "success"
}

Delete A Purchase Order SKU
DELETE/v1/purchaseOrder/{purchase_order_id}/purchaseOrderSku/{inventory_type_id}

This creates a receiver to void the PurchaseOrderSku.

  • quantity: 12 (integer) - quantity to delete (required).
URI Parameters
HideShow
purchase_order_id
integer (required) Example: 123

The id of the purchase order.

inventory_type_id
integer (required) Example: 123

sku ID.


ReceivableType

Receivable Type

A receivable type.

GET /v1/receivableType/123
Responses200
Headers
Content-Type: application/json
Body
{
  "abbrev": "AMEX",
  "class": "credit card",
  "default_payment_processor_id": 0,
  "id": 1,
  "label": "American Express",
  "payment_type_id": 1
}

Retrieve a receivable type
GET/v1/receivableType/{receivable_type_id}

Returns a specific receivable type.

URI Parameters
HideShow
receivable_type_id
integer (required) Example: 123

The id of the receivable type.


Receivable Type Collection

A collection of receivable types.

GET /v1/receivableType?order=id
Responses200
Body
[
    {
        "abbrev": "AMEX",
        "class": "credit card",
        "default_payment_processor_id": 0,
        ...
    },
    {
        "abbrev": "DISC",
        "class": "credit card",
        "default_payment_processor_id": 0,
        ...
    },
    ...
]

Retrieve all receivable types
GET/v1/receivableType{?order}

Retrieves all receivable type.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id


Receiver

Receiver

A receiver.

POST /v1/receiver/
Requestsexample 1
Body
{
    "id": 3,
    "master_receiving_document_id": 2,
    "stamp": "2010-07-06T14:10:03-04:00",
    ...
}
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a Receiver
POST/v1/receiver/

Create a new receiver.


GET /v1/receiver/123
Responses200
Headers
Content-Type: application/json
Body
{
  "comment": "This receiver was created without ASN",
  "exported": false,
  "id": 3,
  "master_receiving_document_id": 2,
  "stamp": "2010-07-06T14:10:03-04:00",
  "status": "Received"
}

Retrieve a Receiver
GET/v1/receiver/{receiver_id}

Returns a specific receiver.

URI Parameters
HideShow
receiver_id
integer (required) Example: 123

The id of the receiver.


PUT /v1/receiver/123
Responses204
This response has no content.

Update a Receiver
PUT/v1/receiver/{receiver_id}

Update a specific receiver.

URI Parameters
HideShow
receiver_id
integer (required) Example: 123

The id of the receiver.


Receiver Collection

A collection of receivers.

GET /v1/receiver?order=stamp
Responses200
Body
[
    {
        "comment": "This receiver was created without ASN",
        "exported": false,
        "id": 3,
        ...
    },
    {
        "comment": "This receiver was created without ASN",
        "exported": false,
        "id": 3,
        ...
    },
    ...
]

Retrieve all Receivers
GET/v1/receiver{?order}

Retrieves all receivers.

URI Parameters
HideShow
order
string (optional) Default: id Example: stamp

The field to sort the result set by. Prefix with - to invert.

Choices: id master_receiving_document_id stamp


Reorder Points

Reorder Points

Reorder Points.

POST /v1/reorder_point/
Requestsexample 1
Body
{
  "sku_id": 1,
  "location_hierachy_id": 1,
  "label": "model stock",
  "grid_id": 1,
  "model_id": 1,
  "default_vendor_id": 1,
  "medium": "document",
  "medium_id": 1,
  "type": "fixed",
  "active": true,
  "use_distribution_center": true,
  "reorder_point": 10,
  "quantity": 50
}
Responses201
Headers
Content-Type: application/json
Body
{
  "id": "12345"
}

Create Reorder Point
POST/v1/reorder_point/

Creates a reorder point.

Parameters

  • sku_id: 123 (integer) - SKU ID

  • location_hierarchy_id: 123 (integer) - location Hierarchy ID

  • label: model stock (string) - Label

  • grid_id: 123 (integer) - Grid ID

  • model_id: 123 (integer) - Model ID

  • default_vendor_id: 123 (integer) - Default vendor ID

  • medium: Document (enum[“document”,“email”]) -

  • medium_id: 123 (integer) - integer

  • type: Fixed (enum[“up-to”,“fixed”]) - Type

  • active: true (boolean) - Is active?

  • use_distribution_center: true (boolean) - Does use istribution center?

  • reorder_point: 10 (integer) - Reorder points

  • quantity: 50 (integer) - Quantity


PUT /v1/reorder_point/
Requestsexample 1
Body
{
"sku_id": 1,
"location_hierarchy_id": 1,
"label": "model stock",
"grid_id": 1,
"model_id": 1,
"default_vendor_id": 1,
"medium": "document",
"medium_id": 1,
"type": "fixed",
"active": true,
"use_distribution_center": true,
"reorder_point":  10,
"quantity": 50,
}
Responses201
Headers
Content-Type: application/json

Update Reorder Point
PUT/v1/reorder_point/

Update a Reorder Point.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The id of a SKU

location_hierarchy_id
integer (required) Example: 123

The id of the location_hierarchy


DELETE /v1/reorder_point/123
Responses204
This response has no content.

Delete a Reorder Point
DELETE/v1/reorder_point/{model_stock_id}

Delete a specific Reorder Point.

URI Parameters
HideShow
model_stock_id
integer (required) Example: 123

The Model Stock ID.


GET /v1/reorder_point/
Responses200
Headers
Content-Type: application/json
Body
{
  "id": "123",
  "label": "model stock2",
  "grid_id": "1",
  "model_id": "1",
  "default_vendor_id": "1",
  "medium": "",
  "medium_id": "1",
  "type": "",
  "active": "1",
  "use_distribution_center": "1",
  "model_stock_locations": [
    {
      "id": "841",
      "model_stock_id": "123",
      "location_hierarchy_id": "1"
    }
  ],
  "model_stock_levels": [
    {
      "id": "213",
      "model_stock_id": "123",
      "inventory_type_id": "213",
      "reorder_point": "2",
      "quantity": "53"
    }
  ]
}

Retrieve Reorder Point for specific SKU and location
GET/v1/reorder_point/

Return reorder point information for a specific sku and location.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The SKU ID.

location_hierarchy_id
string (required) Example: 123

The location_hierarchy ID


Retrieve Reorder Point for specific SKU and all locations

GET /v1/reordering/123/location_hierarchy?order=
Responses200
Headers
Content-Type: application/json
Body
{
  "id": "123",
  "label": "model stock label",
  "grid_id": "1",
  "model_id": "1",
  "default_vendor_id": "1",
  "medium": "",
  "medium_id": "1",
  "type": "",
  "active": "1",
  "use_distribution_center": "1",
  "model_stock_locations": [
    {
      "id": "123",
      "model_stock_id": "123",
      "location_hierarchy_id": "1"
    }
  ],
  "model_stock_levels": [
    {
      "id": "123",
      "model_stock_id": "123",
      "inventory_type_id": "123",
      "reorder_point": "2",
      "quantity": "53"
    }
  ]
}

Retrieve Reorder Point for specific SKU
GET/v1/reordering/{sku_id}/location_hierarchy{?order}

Return reordering information for all locations for a sku.

URI Parameters
HideShow
order
string (required) 
  • location_hierarchy_id: 123 (integer, optional) - The location_hierarchy ID
sku_id
integer (required) Example: 123

The SKU ID.

location_hierarchy_id
string (required) Example: 123

The location_hierarchy ID


Retrieve Reorder Point for specific SKU and all locations

GET /v1/reordering/123/location_hierarchy?order=
Responses200
Headers
Content-Type: application/json
Body
{
  "id": "123",
  "label": "model stock label",
  "grid_id": "1",
  "model_id": "1",
  "default_vendor_id": "1",
  "medium": "",
  "medium_id": "1",
  "type": "",
  "active": "1",
  "use_distribution_center": "1",
  "model_stock_locations": [
    {
      "id": "123",
      "model_stock_id": "123",
      "location_hierarchy_id": "1"
    }
  ],
  "model_stock_levels": [
    {
      "id": "123",
      "model_stock_id": "123",
      "inventory_type_id": "123",
      "reorder_point": "2",
      "quantity": "53"
    }
  ]
}

Retrieve Reorder Point for specific SKU
GET/v1/reordering/{sku_id}/location_hierarchy{?order}

Return reordering information for all locations for a sku.

URI Parameters
HideShow
order
string (required) 
  • location_hierarchy_id: 123 (integer, optional) - The location_hierarchy ID
sku_id
integer (required) Example: 123

The SKU ID.

location_hierarchy_id
string (required) Example: 123

The location_hierarchy ID


Retrieve Reorder Point for specific SKU and all locations

GET /v1/reordering/sku/123?order=
Responses200
Headers
Content-Type: application/json
Body
{
  "1": {
    "id": "1",
    "label": null,
    "grid_id": "0",
    "model_id": "0",
    "default_vendor_id": "3057",
    "medium": "document",
    "medium_id": "44",
    "type": "up-to",
    "active": "1",
    "use_distribution_center": "0",
    "model_stock_locations": [
      {
        "id": "841",
        "model_stock_id": "850",
        "location_hierarchy_id": "1"
      }
    ],
    "model_stock_levels": [
      {
        "id": "1",
        "model_stock_id": "1",
        "inventory_type_id": "824",
        "reorder_point": "24",
        "quantity": "24"
      }
    ]
  },
  "3": {
    "id": "3",
    "label": null,
    "grid_id": "0",
    "model_id": "0",
    "default_vendor_id": "297",
    "medium": "document",
    "medium_id": "41",
    "type": "up-to",
    "active": "1",
    "use_distribution_center": "0",
    "model_stock_locations": [
      {
        "id": "841",
        "model_stock_id": "850",
        "location_hierarchy_id": "1"
      }
    ],
    "model_stock_levels": [
      {
        "id": "3",
        "model_stock_id": "3",
        "inventory_type_id": "919",
        "reorder_point": "72",
        "quantity": "6"
      }
    ]
  }
}

Retrieve Reorder Point for specific SKU
GET/v1/reordering/sku/{location_hierarchy_id}{?order}

Return reordering information for all skus for a given location.

URI Parameters
HideShow
order
string (required) 
  • sku_id: 123 (integer, optional) - The SKU ID
sku_id
integer (required) Example: 123

The SKU ID.

location_hierarchy_id
string (required) Example: 123

The location_hierarchy ID


Return

Returns

Returns.

POST /v1/return
Requestsexample 1example 2
Body
{
  "order_num": "7702723",
  "receivable_type": "standard",
  "receivable_type_id": 123,
  "return_status": "open",
  "receiving_warehouse_id": 19,
  "web_rma": "web_rma 1",
  "receiving_inventory_location_id": 456789,
  "items": [
    {
      "order_item_id": 25848307,
      "quantity": 1,
      "reason_code_id": 6,
      "inv_to_be_returned": true,
      "cust_to_ship": true,
      "damage_quantity": 0
    },
    {
      "order_item_id": 25848309,
      "quantity": 1,
      "reason_code_id": 7,
      "inv_to_be_returned": true,
      "cust_to_ship": true,
      "damage_quantity": 0
    }
  ],
  "adjustments": [
    {
      "type": 7,
      "amount": 1,
      "description": "Test adjustment"
    }
  ]
}
Responses201
Headers
Content-Type: application/json
Body
{
  "id": "12345"
}
Body
{
  "order_num": "7702723",
  "receivable_type": "cc",
  "return_status": "open",
  "receiving_warehouse_id": 19,
  "web_rma": "web_rma 1",
  "receiving_inventory_location_id": 456789,
  "items": [
    {
      "order_item_id": 25848307,
      "quantity": 1,
      "reason_code_id": 6,
      "inv_to_be_returned": true,
      "cust_to_ship": true,
      "damage_quantity": 0
    },
    {
      "order_item_id": 25848309,
      "quantity": 1,
      "reason_code_id": 7,
      "inv_to_be_returned": true,
      "cust_to_ship": true,
      "damage_quantity": 0
    }
  ]
}
Responses201
Headers
Content-Type: application/json
Body
{
  "id": "12345"
}

Create Return
POST/v1/return

Creates a return.

Parameters

  • order_num: 123 (integer) - Order number.

  • receivable_type: standard (string) - Receivable type. Allowed values: standard, gc, vc, cc (Gift Certificate, Value Card, or Customer Credit).

  • receivable_type_id: 20 (integer) - Receivable type ID.

  • status: open (string) - Return status.

  • receiving_warehouse_id: 12 (integer) - Receiving warehouse ID.

  • web_rma: abcdefg (string) - Web RMA identifier.

  • receiving_location_id: 188345 (integer) - Receiving location ID.

  • items (array)

    • order_item_id: 123 (integer) - Order item ID.
    • quantity: 1 (integer) - Quantity to be returned.
    • reason_code_id: 123 (integer) - Return reason code ID.
    • inv_to_be_returned: true (boolean) - Indicates whether inventory will be returned.
    • damage_quantity: 1 (integer) - Quantity marked as damaged.
  • adjustments (array, optional)

    • type: 123 (integer) - Return adjustment type ID.
    • amount: 1.00 (float) - Return adjustment amount.
    • description: Adjustment description (string, optional) - Description of the return adjustment.
    • original_id: 123 (integer, optional) - ID of the existing return adjustment to update. Provide this field only when editing an adjustment.
    • remove: true (boolean, optional) - Provide this field only when removing the adjustment from the return.

Get Return

Get a single return.

GET /v1/return/123
Responses200404
Body
{
  "status": "success",
  "code": 200,
  "data": {
    "web_rma": "RMA-100001",
    "id": "100001",
    "stamp": "2025-03-28 14:19:34",
    "status": "closed",
    "user": "sample_user",
    "order_num": "1000001",
    "exchange_order_num": null,
    "warehouse_id": "Sample Warehouse",
    "originating_channel_id": "Sample Channel",
    "process_channel_id": "Sample Channel",
    "no_of_returned_items": 2,
    "subtotal": {
      "amount": 214.48,
      "currency": "$"
    },
    "sales_tax_total": {
      "amount": 17.16,
      "currency": "$"
    },
    "adjustments": {
      "amount": 0,
      "currency": "$"
    },
    "return_promotions_amount_from_order": {
      "amount": 0,
      "currency": "$"
    },
    "return_adjustments_amount": {
      "amount": 21.45,
      "currency": "$"
    },
    "total": {
      "amount": 210.19,
      "currency": "$"
    },
    "shipping_total": {
      "amount": 0,
      "currency": "$"
    },
    "shipping_tax_total": {
      "amount": 0,
      "currency": "$"
    },
    "refund_payment_method_info": {
      "0": {
        "amount": {
          "amount": 210.19,
          "currency": "$"
        },
        "sublabel": "",
        "label": "Credit Card"
      },
      "total": {
        "amount": 210.19,
        "currency": "$"
      }
    },
    "closed_date": "2025-03-28",
    "expiration_date": null,
    "purchasing_customer": {
      "first_name": "John",
      "last_name": "Doe",
      "company": "Sample Company",
      "address_line_1": "123 Example Street",
      "address_line_2": "Suite 100",
      "city": "Sample City",
      "state": "CA",
      "postal_code": "12345",
      "phone": "(555) 555-1234",
      "email": "john.doe@example.com"
    },
    "refunded_customer": {
      "first_name": "John",
      "last_name": "Doe",
      "company": "Sample Company",
      "address_line_1": "123 Example Street",
      "address_line_2": "Suite 100",
      "city": "Sample City",
      "state": "CA",
      "postal_code": "12345",
      "phone": "(555) 555-1234",
      "email": "john.doe@example.com"
    },
    "adjustments_info": [
      {
        "amount": {
          "amount": 21.45,
          "currency": "$"
        },
        "label": "Customer Service Adjustment",
        "description": ""
      }
    ],
    "adjustment_total": {
      "amount": 21.45,
      "currency": "$"
    },
    "return_items": [
      {
        "unit_refund": {
          "amount": 190.99,
          "currency": "$"
        },
        "ext_unit_price": {
          "amount": 190.99,
          "currency": "$"
        },
        "expected": {
          "damaged": "n",
          "return": "y",
          "shipping": "y"
        },
        "id": "200001",
        "quantity": "1",
        "ordered_item_id": "300001",
        "model_id": "400001",
        "ordered_item_total": {
          "amount": 190.99,
          "currency": "$"
        },
        "return_item_model_id": "400001",
        "ordered_item_quantity": "1",
        "model_name": "Sample Product A",
        "total": {
          "amount": 190.99,
          "currency": "$"
        },
        "reason_code": "NEW",
        "ordered_item_promos": null
      },
      {
        "unit_refund": {
          "amount": 23.49,
          "currency": "$"
        },
        "ext_unit_price": {
          "amount": 23.49,
          "currency": "$"
        },
        "expected": {
          "damaged": "n",
          "return": "y",
          "shipping": "y"
        },
        "id": "200002",
        "quantity": "1",
        "ordered_item_id": "300002",
        "model_id": "400002",
        "ordered_item_total": {
          "amount": 23.49,
          "currency": "$"
        },
        "return_item_model_id": "400002",
        "ordered_item_quantity": "1",
        "model_name": "Sample Product B",
        "total": {
          "amount": 23.49,
          "currency": "$"
        },
        "reason_code": "NEW",
        "ordered_item_promos": null
      }
    ],
    "total_ext_refund": {
      "amount": 214.48,
      "currency": "$"
    },
    "inventory_info": [
      {
        "id": "200001",
        "ordered_item_id": "300001",
        "model_id": "400001",
        "model_name": "Sample Product A",
        "return_item_model_id": "400001",
        "status": "assigned",
        "quantity": "1",
        "cost": {
          "amount": 114.29,
          "currency": "$"
        },
        "internal_sku": "SKU-100001",
        "label": "LOC-A01",
        "expected_damaged": "n",
        "expected_return": "y",
        "expected_shipping": "y",
        "unit_cogs": {
          "amount": 114.29,
          "currency": "$"
        },
        "ext_cogs": {
          "amount": 114.29,
          "currency": "$"
        }
      },
      {
        "id": "200002",
        "ordered_item_id": "300002",
        "model_id": "400002",
        "model_name": "Sample Product B",
        "return_item_model_id": "400002",
        "status": "assigned",
        "quantity": "1",
        "cost": {
          "amount": 15.83,
          "currency": "$"
        },
        "internal_sku": "SKU-100002",
        "label": "LOC-A02",
        "expected_damaged": "n",
        "expected_return": "y",
        "expected_shipping": "y",
        "unit_cogs": {
          "amount": 15.83,
          "currency": "$"
        },
        "ext_cogs": {
          "amount": 15.83,
          "currency": "$"
        }
      }
    ],
    "total_ext_cost": {
      "amount": 130.12,
      "currency": "$"
    }
  }
}
Body
{
  "code": 1007,
  "message": "Record not found.",
  "class": "Coresense\\Rest\\Endpoint\\AbstractEndpoint",
  "function": "errorResponse",
  "line": 287,
  "file": "core-api/src/v1/OrderReturn.php"
}

Retreive a Return
GET/v1/return/{return_id}

Retreive a return

URI Parameters
HideShow
return_id
integer (required) Example: 123

The id of the return.


GET /v1/return/
Responses200404
Headers
x-record-count: 13 (integer) - Total No of records found.
x-page-count: 5 (integer) - Total no of pages.
x-page-size: 3 (integer) - No of records per page.
x-page-number: 1 (integer) - Current page.
Body
{
  "web_rma": "RMA-100001",
  "id": "100001",
  "stamp": "2026-03-15 13:21:13",
  "status": "void",
  "user": "sample_user",
  "order_num": "1000001",
  "exchange_order_num": null,
  "warehouse_id": "Sample Warehouse",
  "originating_channel_id": "Sample Channel",
  "process_channel_id": "Sample Channel",
  "no_of_returned_items": 2,
  "subtotal": {
    "amount": 217.98,
    "currency": "$"
  },
  "sales_tax_total": {
    "amount": 44.32,
    "currency": "$"
  },
  "adjustments": {
    "amount": 0,
    "currency": "$"
  },
  "return_promotions_amount_from_order": {
    "amount": 0,
    "currency": "$"
  },
  "return_adjustments_amount": {
    "amount": 0,
    "currency": "$"
  },
  "total": {
    "amount": 218.93,
    "currency": "$"
  },
  "shipping_total": {
    "amount": 0,
    "currency": "$"
  },
  "shipping_tax_total": {
    "amount": 0,
    "currency": "$"
  },
  "refund_payment_method_info": [],
  "closed_date": "2026-04-04",
  "expiration_date": null,
  "purchasing_customer": {
    "first_name": "John",
    "last_name": "Doe",
    "company": "Sample Company",
    "address_line_1": "123 Example Street",
    "address_line_2": "Suite 100",
    "city": "Sample City",
    "state": "CA",
    "postal_code": "12345",
    "phone": "(555) 555-1234",
    "email": "[john.doe@example.com](mailto:john.doe@example.com)"
  },
  "refunded_customer": {
    "first_name": "John",
    "last_name": "Doe",
    "company": "Sample Company",
    "address_line_1": "123 Example Street",
    "address_line_2": "Suite 100",
    "city": "Sample City",
    "state": "CA",
    "postal_code": "12345",
    "phone": "(555) 555-1234",
    "email": "[john.doe@example.com](mailto:john.doe@example.com)"
  },
  "adjustments_info": null,
  "adjustment_total": null,
  "return_items": [
    {
      "unit_refund": {
        "amount": 130.99,
        "currency": "$"
      },
      "ext_unit_price": {
        "amount": 130.99,
        "currency": "$"
      },
      "expected": {
        "damaged": "n",
        "return": "y",
        "shipping": "y"
      },
      "id": "200001",
      "quantity": "1",
      "ordered_item_id": "300001",
      "model_id": "400001",
      "ordered_item_total": {
        "amount": 523.96,
        "currency": "$"
      },
      "return_item_model_id": "400001",
      "ordered_item_quantity": "4",
      "model_name": "Sample Product A",
      "total": {
        "amount": 130.99,
        "currency": "$"
      },
      "reason_code": "RTS",
      "ordered_item_promos": null
    },
    {
      "unit_refund": {
        "amount": 86.99,
        "currency": "$"
      },
      "ext_unit_price": {
        "amount": 86.99,
        "currency": "$"
      },
      "expected": {
        "damaged": "n",
        "return": "y",
        "shipping": "y"
      },
      "id": "200002",
      "quantity": "1",
      "ordered_item_id": "300002",
      "model_id": "400002",
      "ordered_item_total": {
        "amount": 173.98,
        "currency": "$"
      },
      "return_item_model_id": "400002",
      "ordered_item_quantity": "2",
      "model_name": "Sample Product B",
      "total": {
        "amount": 86.99,
        "currency": "$"
      },
      "reason_code": "Damaged",
      "ordered_item_promos": null
    }
  ],
  "total_ext_refund": {
    "amount": 217.98,
    "currency": "$"
  },
  "inventory_info": [
    {
      "id": "200001",
      "ordered_item_id": "300001",
      "model_id": "400001",
      "model_name": "Sample Product A",
      "return_item_model_id": "400001",
      "status": "unassigned",
      "quantity": "1",
      "cost": {
        "amount": 49.84,
        "currency": "$"
      },
      "internal_sku": "SKU-100001",
      "label": "LOC-A01",
      "expected_damaged": "n",
      "expected_return": "y",
      "expected_shipping": "y",
      "unit_cogs": {
        "amount": 49.84,
        "currency": "$"
      },
      "ext_cogs": {
        "amount": 49.84,
        "currency": "$"
      }
    },
    {
      "id": "200002",
      "ordered_item_id": "300002",
      "model_id": "400002",
      "model_name": "Sample Product B",
      "return_item_model_id": "400002",
      "status": "unassigned",
      "quantity": "1",
      "cost": {
        "amount": 38.66,
        "currency": "$"
      },
      "internal_sku": "SKU-100002",
      "label": "LOC-A02",
      "expected_damaged": "n",
      "expected_return": "y",
      "expected_shipping": "y",
      "unit_cogs": {
        "amount": 38.66,
        "currency": "$"
      },
      "ext_cogs": {
        "amount": 38.66,
        "currency": "$"
      }
    }
  ],
  "total_ext_cost": {
    "amount": 88.5,
    "currency": "$"
  }
}
Headers
x-record-count: 13 (integer) - Total No of records found.
x-page-count: 5 (integer) - Total no of pages.
x-page-size: 3 (integer) - No of records per page.
x-page-number: 1 (integer) - Current page.
Body
{
  "code": 1007,
  "message": "Record not found.",
  "class": "Coresense\\Rest\\Endpoint\\AbstractEndpoint",
  "function": "errorResponse",
  "line": 321,
  "file": "core-api/src/v1/OrderReturn.php"
}

Retreive a List of Returns
GET/v1/return/

Get a list of Returns

URI Parameters
HideShow
web_rma: {web_rma}
database feild (required) 

Either use web_rma or origination_order_id. Can’t use together.

origination_order_id
database feild (required) Example: {originating_order_id}

Either use web_rma or origination_order_id. Can’t use together.

page_size
integer (required) Example: 3

No of records you want on page.

page_count
integer (required) Example: 1

Page no you want.


Update Return

Update/Process a return.

PUT /v1/return/123
Requestsexample 1example 2example 3
Body
{
  "order_num": "7704934",
  "receivable_type_id": 20,
  "return_status": "open",
  "receiving_warehouse_id": 1,
  "web_rma": "RMA-1619494131619",
  "receiving_inventory_location_id": "341",
  "items": [
    {
      "order_item_id": 25856514,
      "quantity": 1, //set quantity to 0 for removing this item from return
      "reason_code_id": 6,
      "inv_to_be_returned": true,
      "cust_to_ship": true,
      "damage_quantity": 0
    }
  ],
  "adjustments": [
    {
      "type": 7,
      "amount": 1.0,
      "description": "Test adjustment"
    }
  ]
}
Responses200500500
This response has no content.
Body
{
  "code": 1011,
  "extra": "Return is not in open state.",
  "message": "API passthrough failed.",
  "class": "Coresense\\Rest\\Endpoint\\AbstractEndpoint",
  "function": "errorResponse",
  "line": 1490,
  "file": "/rest/src/Endpoint/AbstractEndpoint.php"
}
Body
{
  "code": 1011,
  "extra": "Invalid return.",
  "message": "API passthrough failed.",
  "class": "Coresense\\Rest\\Endpoint\\AbstractEndpoint",
  "function": "errorResponse",
  "line": 1490,
  "file": "/rest/src/Endpoint/AbstractEndpoint.php"
}
Body
{
  "order_num": "7704934",
  "receivable_type_id": 20,
  "return_status": "open",
  "receiving_warehouse_id": 1,
  "web_rma": "RMA-1619494131619",
  "receiving_inventory_location_id": "341",
  "items": [
    {
      "order_item_id": 25856514,
      "quantity": 1, //set quantity to 0 for removing this item from return
      "reason_code_id": 6,
      "inv_to_be_returned": true,
      "cust_to_ship": true,
      "damage_quantity": 0
    }
  ],
  "adjustments": [
    {
      "type": 7,
      "amount": 1.0,
      "description": "Test adjustment",
      "original_id": 45637, // add original_id to edit an adjustment which refers to return_adjustment_id
      "remove": true // add this flag to remove this adjustment completely
    },
    {
      "type": 7,
      "amount": 1.0,
      "description": "Test adjustment"
    }
  ]
}
Responses200500500
This response has no content.
Body
{
  "code": 1011,
  "extra": "Return is not in open state.",
  "message": "API passthrough failed.",
  "class": "Coresense\\Rest\\Endpoint\\AbstractEndpoint",
  "function": "errorResponse",
  "line": 1490,
  "file": "/rest/src/Endpoint/AbstractEndpoint.php"
}
Body
{
  "code": 1011,
  "extra": "Invalid return.",
  "message": "API passthrough failed.",
  "class": "Coresense\\Rest\\Endpoint\\AbstractEndpoint",
  "function": "errorResponse",
  "line": 1490,
  "file": "/rest/src/Endpoint/AbstractEndpoint.php"
}
Body
{
  "order_num": "7704934",
  "receivable_type_id": 20,
  "return_status": "process",
  "receiving_warehouse_id": 1,
  "web_rma": "RMA-1619494131619",
  "receiving_inventory_location_id": "341",
  "items": [
    {
      "order_item_id": 25856514,
      "quantity": 0, //set quantity to 0 for removing this item from return
      "reason_code_id": 10,
      "inv_to_be_returned": true,
      "cust_to_ship": true,
      "damage_quantity": 0
    },
    {
      "order_item_id": 25856515,
      "quantity": 1,
      "reason_code_id": 10,
      "inv_to_be_returned": true,
      "cust_to_ship": true,
      "damage_quantity": 0
    }
  ]
}
Responses200500500
This response has no content.
Body
{
  "code": 1011,
  "extra": "Return is not in open state.",
  "message": "API passthrough failed.",
  "class": "Coresense\\Rest\\Endpoint\\AbstractEndpoint",
  "function": "errorResponse",
  "line": 1490,
  "file": "/rest/src/Endpoint/AbstractEndpoint.php"
}
Body
{
  "code": 1011,
  "extra": "Invalid return.",
  "message": "API passthrough failed.",
  "class": "Coresense\\Rest\\Endpoint\\AbstractEndpoint",
  "function": "errorResponse",
  "line": 1490,
  "file": "/rest/src/Endpoint/AbstractEndpoint.php"
}

Update Return
PUT/v1/return/{return_id}

Update or Process a return.

URI Parameters
HideShow
return_id
integer (required) Example: 123

The ID of the return.

order_num
integer (required) Example: 123

Order number.

receivable_type
string (optional) Example: standard

Receivable type. Allowed values: standard, gc, vc, cc (Gift Certificate, Value Card, or Customer Credit).

receivable_type_id
integer (required) Example: 20

Receivable type ID.

status
string (optional) Example: open

Return status. Allowed values: open, process.

receiving_warehouse_id
integer (required) Example: 12

Receiving warehouse ID.

web_rma
string (optional) Example: abcdefg

Web RMA identifier.

receiving_location_id
integer (required) Example: 188345

Receiving location ID.

items
array (required) 
  • order_item_id: 123 (integer) - Order item ID.

  • quantity: 1 (integer) - Quantity to be returned. Set quantity to 0 for removing this item from return

  • reason_code_id: 123 (integer) - Return reason code ID.

  • inv_to_be_returned: true (boolean) - Indicates whether inventory will be returned.

  • damage_quantity: 1 (integer) - Quantity marked as damaged.

adjustments
array (optional) 
  • type: 123 (integer) - Return adjustment type ID.

  • amount: 1.00 (float) - Return adjustment amount.

  • description: Adjustment description (string, optional) - Description of the return adjustment.

  • original_id: 123 (integer, optional) - ID of the existing return adjustment to update. Provide this field only when editing an adjustment.

  • remove: true (boolean, optional) - Provide this field only when removing the adjustment from the return.


Return Void

Voiding a return.

DELETE /v1/return/123
Responses204
This response has no content.

Return Void
DELETE/v1/return/{return_id}

Voiding a return

URI Parameters
HideShow
return_id
integer (required) Example: 123

The id of the return.


Saved Purchase Order

Saved Purchase Orders

Collection of Saved Purchase Orders.

GET /v1/savedPurchaseOrder
Responses200
Headers
Content-Type: application/json
Body
[
    ...
    {
        "buyer_id": 15,
        "creation_date": "2023-04-27T01:26:04+00:00",
        "data": {
            "vendor_id": 273,
            "buyer_id": 15,
            "use_size_runs": false,
            "location_type_id": 4,
            "receiving_type": "Store",
            "transmission_method": "email",
            "template": "",
            "shipping_method_1": 1,
            "shipping_method_2": "",
            "terms": "",
            "cost_method": "wholesale"
        },
        "id": 500035,
        "label": "My Saved PO",
        "last_edited_date": "2023-04-27T01:26:08+00:00",
        "replenishment": false,
        "sent": true,
        "user_id": 15,
        "vendor_id": 273
    },
    ...
]

_The response data fields `po_locations`, `po_products`,
`po_quantities`, and `po_size_runs` are excluded for this request
due to their usual large size._

Retrieve all Saved Purchase Orders
GET/v1/savedPurchaseOrder

Retrieves all Saved Purchase Orders.


POST /v1/savedPurchaseOrder
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "label": "My Saved PO",
  "vendor_id": 1,
  "buyer_id": 2,
  "user_id": 2,
  "data": {
    "use_size_runs": true,
    "location_type_id": 4,
    "receiving_type": "Store",
    "transmission_method": "email",
    "shipping_method_1": 1,
    "cost_method": "wholesale",
    "template": 53
  }
}
Responses201
Headers
Content-Type: application/json
Body
{
    "id": "500044",   /* <-- created saved order ID */
    "data": {...}
}

Create Saved Purchase Order
POST/v1/savedPurchaseOrder

Creates a Saved Purchase Order.

URI Parameters
HideShow
label
string (required) Example: My Saved PO

Label

vendor_id
integer (required) Example: 123

Vendor ID

buyer_id
integer (required) Example: 123

Buyer ID

user_id
integer (required) Example: 123

User ID

data
object (required) Example: {}

Data


Saved Purchase Order

A Saved Purchase Order.

GET /v1/savedPurchaseOrder/500044
Responses200
Headers
Content-Type: application/json
Body
{
        "buyer_id": 15,
        "creation_date": "2023-04-27T01:26:04+00:00",
        "data": {
            "vendor_id": 273,
            "buyer_id": 15,
            "use_size_runs": false,
            "location_type_id": 4,
            "receiving_type": "Store",
            "transmission_method": "email",
            "template": "",
            "shipping_method_1": 1,
            "shipping_method_2": "",
            "terms": "",
            "cost_method": "wholesale"
        },
        "id": 500035,
        "label": "My Saved PO",
        "last_edited_date": "2023-04-27T01:26:08+00:00",
        "replenishment": false,
        "sent": true,
        "user_id": 15,
        "vendor_id": 273,
        "po_locations": {...},
        "po_products": {...},
        "po_quantities": {...}, /* <-- if not size runs used */
        "po_size_runs": {...}, /* <-- if size runs used */
    },

Retrieve Saved Purchase Order
GET/v1/savedPurchaseOrder/{order_id}

Return Saved Purchase Orders detailed information for a specific ID.

URI Parameters
HideShow
order_id
integer (required) Example: 500044

Saved order ID.


PUT /v1/savedPurchaseOrder/500044
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "label": "My New Saved PO"
}
Responses204
This response has no content.

Update Saved Purchase Order
PUT/v1/savedPurchaseOrder/{order_id}

Update a Saved Purchase Order.

URI Parameters
HideShow
order_id
integer (required) Example: 500044

Saved order ID.


DELETE /v1/savedPurchaseOrder/500044
Responses204
This response has no content.

Delete a Saved Purchase Order
DELETE/v1/savedPurchaseOrder/{order_id}

Delete a specific Saved Purchase Order.

URI Parameters
HideShow
order_id
integer (required) Example: 500044

Saved order ID.


Saved Purchase Orders Locations

POST /v1/savedPurchaseOrder/500044/locations
Responses200
Headers
Content-Type: application/json
Body
{
  "id": "500044",
  "po_locations": [
    86,
    98
  ]
}

Set Saved Purchase Orders locations
POST/v1/savedPurchaseOrder/{order_id}/locations

Set locations for a Saved Purchase Order.

URI Parameters
HideShow
order_id
integer (required) Example: 500044

Saved order ID.


Saved Purchase Orders Product

POST /v1/savedPurchaseOrder/500044/product
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "product_id": 38845
}
Responses204
This response has no content.

Add product to a Saved Purchase Order
POST/v1/savedPurchaseOrder/{order_id}/product

Add product to a Saved Purchase Order.

URI Parameters
HideShow
order_id
integer (required) Example: 500044

Saved order ID.


DELETE /v1/savedPurchaseOrder/500044/product
Requestsexample 1
Headers
Content-Type: application/json
Body
{
  "product_id": 38845
}
Responses204
This response has no content.

Delete product from a Saved Purchase Order
DELETE/v1/savedPurchaseOrder/{order_id}/product

Delete product from a Saved Purchase Order.

URI Parameters
HideShow
order_id
integer (required) Example: 500044

Saved order ID.


Saved Purchase Orders Quantities

POST /v1/savedPurchaseOrder/500044/quantities
Requestsexample 1
Headers
Content-Type: application/json
Body
/* Non-Grid product quantities */
{
    "product_id": 38845,
    "po_quantities":
    [
        {
            "sku_id": 2295497,
            "quantity": 25
        }
    ]
}

/* Grid product quantities */
{
    "product_id": 38845,
    "po_quantities":
    [
        {
            "grid_x": 15522,
            "grid_y": 2428,
            "quantity": 2
        },
        {
            "grid_x": 15524,
            "grid_y": 2429,
            "quantity": 7
        }
    ]
}

/* Product quantities using size-runs */
{
    "product_id": 38845,
    "po_quantities":
    [
        {
            "location_hierarchy_id": 86,
            "size_run_id": 5566
        },
        {
            "location_hierarchy_id": 98,
            "size_run_id": 5567
        }
    ]
}
Responses

Add quantities to a Saved Purchase Order
POST/v1/savedPurchaseOrder/{order_id}/quantities

There are three ways to add quantities for a Saved Purchase Order.

URI Parameters
HideShow
order_id
integer (required) Example: 500044

Saved order ID.


Shipment

Shipment

A shipment.

GET /v1/shipment/123
Responses200
Headers
Content-Type: application/json
Body
{
  "arrival_date": "",
  "assoc_entity": "order",
  "assoc_entity_id": 3,
  "carrier_account_id": 2,
  "cod_tracking_num": "",
  "cost": 4.8,
  "destination": "shipping address",
  "destination_id": 0,
  "exported": false,
  "id": 15,
  "method_id": 17,
  "needs_recalculation": true,
  "picked_up_date": "2017-11-15T15:22:19-05:00",
  "ship_date": "2017-02-12T00:00:00-05:00",
  "smartpost_tracking_num": "",
  "source": "warehouse",
  "source_id": 1,
  "stamp": "",
  "status": "shipped",
  "tracking_num": "12345",
  "transit_time": 0,
  "validated": false
}

Retrieve a Shipment
GET/v1/shipment/{shipment_id}

Returns a specific shipment.

URI Parameters
HideShow
shipment_id
integer (required) Example: 123

The id of the shipment.


PUT /v1/shipment/123
Responses204
This response has no content.

Update a Shipment
PUT/v1/shipment/{shipment_id}

Update a specific shipment.

URI Parameters
HideShow
shipment_id
integer (required) Example: 123

The id of the shipment.


DELETE /v1/shipment/123
Responses204
This response has no content.

Delete a Shipment
DELETE/v1/shipment/{shipment_id}

Delete a specific Shipment.

URI Parameters
HideShow
shipment_id
integer (required) Example: 123

The id of the shipment.


Shipment Collection

A collection of shipments.

GET /v1/shipment?order=status
Responses200
Body
[
    {
        "arrival_date": "",
        "assoc_entity": "order",
        "assoc_entity_id": 3,
        ...
    },
    {
        "arrival_date": "",
        "assoc_entity": "order",
        "assoc_entity_id": 3,
        ...
    },
    ...
]

Retrieve all Shipments
GET/v1/shipment{?order}

Retrieves all shipments.

URI Parameters
HideShow
order
string (optional) Default: id Example: status

The field to sort the result set by. Prefix with - to invert.

Choices: id status exported assoc_entity


Shipment Box Collection

A collection of shipment boxes.

GET /v1/shipment/123/box?order=shipment_id
Responses200
Body
[
    {
        "depth": 1.0,
        "height": 1.0,
        "id": 1,
        ...
    },
    {
        "depth": 1.0,
        "height": 1.0,
        "id": 2,
        ...
    },
    ...
]

Retrieve all Shipment Boxes
GET/v1/shipment/{shipment_id}/box{?order}

Retrieve all boxes for a shipment.

URI Parameters
HideShow
shipment_id
integer (required) Example: 123

The id of the shipment.

order
string (optional) Default: shipment_id Example: shipment_id

The field to sort the result set by. Prefix with - to invert.

Choices: shipment_id


ShipmentBox

ShipmentBox

A shipment box.

GET /v1/shipmentBox/123
Responses200
Headers
Content-Type: application/json
Body
{
  "depth": 0,
  "height": 13,
  "id": 66,
  "shipment_id": 67,
  "tracking_num": "892314010010098",
  "weight": 0.5,
  "width": 8.5
}

Retrieve a Shipment Box
GET/v1/shipmentBox/{shipment_box_id}

Returns a specific shipment box.

URI Parameters
HideShow
shipment_box_id
integer (required) Example: 123

The id of the shipment box.


Shipment Box Collection

A collection of shipment boxes.

GET /v1/shipmentBox?order=shipment_id
Responses200
Body
[
    {
        "depth": 0,
        "height": 13,
        "id": 66,
        ...
    },
    {
        "depth": 0,
        "height": 13,
        "id": 66,
        ...
    },
    ...
]

Retrieve all Shipment Boxes
GET/v1/shipmentBox{?order}

Retrieve all shipment boxes.

URI Parameters
HideShow
order
string (optional) Default: shipment_id Example: shipment_id

The field to sort the result set by. Prefix with - to invert.

Choices: shipment_id


Shipment Box Inventory Collection

A collection of shipment box inventory.

GET /v1/shipmentBox/123/inventory?order=id
Responses200
Body
[
    {
        "active": true,
        "available_for_fulfillment": true,
        "description": "",
        ...
    },
    {
        "active": true,
        "available_for_fulfillment": true,
        "description": "",
        ...
    },
    ...
]

Retrieve all Shipment Box Inventory
GET/v1/shipmentBox/{shipment_box_id}/inventory{?order}

Retrieves all inventory for a shipment box.

URI Parameters
HideShow
shipment_box_id
integer (required) Example: 123

The id of the shipment_box.

order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id inventory_id inventory_location_id status warehouse_id


ShipmentPickerPacker

ShipmentPickerPacker

A shipment picker packer.

POST /v1/shipmentPickerPacker/
Requestsexample 1
Body
{
        "pack_stamp": "",
        "packer_user_id": 3,
"shipment_id": 23211,
        ...
    },
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a ShipmentPickerPacker
POST/v1/shipmentPickerPacker/

Create a new shipment picker packer.


GET /v1/shipmentPickerPacker/123
Responses200
Headers
Content-Type: application/json
Body
{
    "id": 1,
    "pack_stamp": "",
    "packer_user_id": 0,
    "pick_stamp": 2019-07-18 10:21:59,
    "picker_user_id": 2,
    "shipment_id": 5432,
}

Retrieve a ShipmentPickerPacker
GET/v1/shipmentPickerPacker/{shipment_picker_packer_id}

Returns a specific shipment picker packer.

URI Parameters
HideShow
shipment_picker_packer_id
integer (required) Example: 123

The id of the shipment picker packer.


PUT /v1/shipmentPickerPacker/123
Responses204
This response has no content.

Update a ShipmentPickerPacker
PUT/v1/shipmentPickerPacker/{shipment_picker_packer_id}

Update a specific shipment picker packer.

URI Parameters
HideShow
shipment_picker_packer_id
integer (required) Example: 123

The id of the shipment picker packer.


GET /v1/shipmentPickerPacker/
Responses200
Body
[
    {
        "id": 1,
        "pack_stamp": "",
        "packer_user_id": 0,
        ...
    },
    {
        "id": 2,
        "pack_stamp": 2019-07-14 10:21:59,
        "packer_user_id": 4,
        ...
    },
    ...
]

Retrieve all ShipmentPickerPackers
GET/v1/shipmentPickerPacker/

Retrieves all shipment picker packers.

URI Parameters
HideShow
order
string (optional) Example: id

The field to sort the result set by. Prefix with - to invert.


ShippingMethod

ShippingMethod

A shipping method.

GET /v1/shippingMethod/123
Responses200
Headers
Content-Type: application/json
Body
{
    "active": false,
    "carrier_method_id": 24,
    "cod": false,
    "code": "",
    "exclude_product": false,
    "force_volume_packing": 0,
    "handling_charge": 0,
    "handling_charge_type_id": 1,
    "id": 25,
    "label": "FedEx",
    "malvern_method": false,
    "pos_method": false,
    "production_cutoff_time": "15:00:00",
    "production_time": null,
    "saturday_delivery": false,
    "shipping_cutoff_time": "15:00:00",
    "trueship_method": false,
    "type": "fedex",
}

Retrieve a Shipping Method
GET/v1/shippingMethod/{shipping_method_id}

Returns a specific shipping method.

URI Parameters
HideShow
shipping_method_id
integer (required) Example: 123

The id of the shipping method.


Shipping Method Collection

A collection of shipping methods.

GET /v1/shippingMethod?order=shipping_method_id
Responses200
Body
[
    {
        "active": false,
        "carrier_method_id": 24,
        "cod": false,
        ...
    },
    {
        "active": false,
        "carrier_method_id": 25,
        "cod": false,
        ...
    },
    ...
]

Retrieve all Shipping Methods
GET/v1/shippingMethod{?order}

Retrieve all shipping methods.

URI Parameters
HideShow
order
string (optional) Default: shipping_method_id Example: shipping_method_id

The field to sort the result set by. Prefix with - to invert.

Choices: shipping_method_id active


ShippingReturn

ShippingReturn

A Return that only returns shipping and shipping tax charges.

POST /v1/shippingReturn
Requestsexample 1
Body
{
  "refunded_client_id": "317442",
  "order_num": "7060440",
  "shipping_total": 14.99
}
Responses201
Body
{
  "id": "12345"
}

Create a Shipping Return
POST/v1/shippingReturn

Creates a return to only return shipping charges and/or shipping tax.

Parameters

  • refunded_client_id: 12346 (integer) - client ID

  • order_num: 1256 (integer) - Order number

  • shipping_total: 0.00 (float) - Shipping total to be returned

  • shipping_tax_total: 0.00 (float) - Shipping tax total to be returned

  • status: open (string, optional) - Replenishment Cost


SKU

SKU

A SKU.

GET /v1/sku/123
Responses200
Headers
Content-Type: application/json
Body
{
  "build_type": "INV",
  "default_product_id": 1,
  "default_shipping_method_id": 1,
  "default_vendor_id": 1,
  "description": "This is a SKU",
  "discontinued": false,
  "ean": "",
  "freight_class": "500",
  "generation": "manual",
  "id": 3,
  "internal_sku": "12345",
  "isbn": "",
  "label": "345389",
  "manufacturer_id": 1,
  "mpn": "",
  "needs_own_box": false,
  "shipping_delivery_signature_type_id": 1,
  "shipping_depth": 0,
  "shipping_height": 0,
  "shipping_liftgate_delivery_required": false,
  "shipping_weight": 0.5,
  "shipping_width": 0,
  "stamp": "2016-06-27T14:37:35-04:00",
  "upc": ""
}

Retrieve a SKU
GET/v1/sku/{sku_id}

Returns a specific sku.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The id of the sku.


SKU Collection

A collection of skus.

GET /v1/sku?order=upc
Responses200
Body
[
    {
        "build_type": "INV",
        "custom_profits_barcode": "0587440901",
        "default_product_id": 9,
        "default_shipping_method_id": 34,
        "default_vendor_id": 57,
        "description": "M Trail Meister Low Taupe",
        "discontinued": true,
        "ean": "",
        "freight_class": "500",
        "generation": "manual",
        "id": 653,
        "internal_sku": "CLBBM\/I3124-25010N",
        "isbn": "",
        "label": "CLBBM\/I3124-25010N",
        "manufacturer_id": 68,
        "mpn": "",
        "needs_own_box": false,
        "product_configuration_selection_id": "653",
        "product_id": "9",
        "shipping_delivery_signature_type_id": 1,
        "shipping_depth": 1,
        "shipping_height": 1,
        "shipping_liftgate_delivery_required": false,
        "shipping_weight": 3,
        "shipping_width": 1,
        "stamp": "",
        "upc": ""
    },
    {
        "build_type": "INV",
        "default_product_id": 1,
        "default_shipping_method_id": 1,
        ...
    },
    ...
]

Retrieve all SKUs
GET/v1/sku{?order}

Retrieves all skus.

URI Parameters
HideShow
order
string (optional) Default: id Example: upc

The field to sort the result set by. Prefix with - to invert.

Choices: build_type default_vendor_id id manufacturer_id upc

product_id: 9 (int, optional) - This field to get result of specific product_id
string (required) 
merchandise_hierarchy_id
int (optional) Example: 231

This field to get all sku related to that merchanise hierarchy

location_id
int (optional) 

This field to get all sku related to that inventory location id.

color
string (optional) Example: red

This field is product congiguration option type …

size
string (optional) Example: Large

This field is product congiguration option type …

subsize
string (optional) Example: N

This field is product congiguration option type …

pocket_type
string (optional) Example: 10

This field is also product congiguration option type …

custom_material : 3 (int ,optional) This field is product type custom field ... you can send any product type custom field. If it is passed result will include all sku that have custom_material set to value 3.
string (required) 

SKU Inventory Collection

A collection of inventory.

GET /v1/sku/123/inventory?order=warehouse_id
Responses200
Body
[
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    {
        "base_price": 35,
        "default_base_cogs": 0,
        "default_fulfillment": "DROP",
        ...
    },
    ...
]

Retrieve all SKU Inventory
GET/v1/sku/{sku_id}/inventory{?order}

Retrieve all inventory for a SKU.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The id of the SKU.

order
string (optional) Default: warehouse_id Example: warehouse_id

The field to sort the result set by. Prefix with - to invert.

Choices: warehouse_id


POST /v1/sku/inventory
Requestsexample 1
Headers
Content-Type: application/json
Body
{
    "build_type": "INV",
    "default_product_id": 1,
    "default_shipping_method_id": 1,
    "default_vendor_id": 1,
    "description": "SKU desctiption string"
    ...
}
Responses204
Headers
Content-Type: application/json
Body
+ product_id: `123` (integer) - Product ID

Create a SKU
POST/v1/sku/inventory

Create a SKU.

URI Parameters
HideShow
build_type
string (required) Example: "INV"

SKU build type

default_product_id
integer (required) Example: 1

Associated default product ID of the SKU

default_shipping_method_id
integer (required) Example: 1

Default shipping method ID of the SKU

default_vendor_id
integer (required) Example: 1

Default vendor method ID of the SKU

description
string (required) Example: "This is a SKU updated"

Text description of the SKU

discontinued
boolean (required) Example: false

Is the SKU discontinued?

ean
string (required) Example: "lorem ipsum"
freight_class
string (required) Example: 501

Freight class for the SKU

generation
string (required) Example: "manual"
internal_sku
integer (required) Example: 12345

Internal SKU of the SKU

isbn
string (required) Example: "123456789-1"

ISBN info for the SKU

label
string (required) Example: 123456-l

Label of the SKU,

manufacturer_id
integer (required) Example: 1

Manufacturer ID of the SKU

mpn
string (required) Example: ""

MPN

needs_own_box
boolean (required) Example: false

SKU need own box to ship?

shipping_delivery_signature_type_id
integer (required) Example: 1

Shipping deliver signature type ID for the SKU

shipping_depth
float (required) Example: 0.00

SKU depth for shipping

shipping_height
float (required) Example: 0.00

SKU height for shipping

shipping_liftgate_delivery_required
string (required) Example: false

(boolean) - is shipping liftgate delivery required for the shipping

shipping_weight
float (required) Example: 0.00

SKU shipping weight

shipping_width
float (required) Example: 0.00

SKU width for shipping

upc
string (required) Example: ""

UPC


PUT /v1/sku/123/inventory
Requestsexample 1
Headers
Content-Type: application/json
Body
{
    "build_type": "INV",
    "default_product_id": 1,
    "default_shipping_method_id": 1,
    "default_vendor_id": 1,
    "description": "SKU desctiption string"
    ...
}
Responses204
Headers
Content-Type: application/json

Update a SKU
PUT/v1/sku/{sku_id}/inventory

Update a specific SKU.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The ID of the sku.


SKU Inventory

SKU Inventory

SKU inventory.

GET /v1/skuInventory/123
Responses200
Headers
Content-Type: application/json
Body
{
  "location_id": 0,
  "quantity": 0,
  "sku_id": 1,
  "status": "unassigned",
  "warehouse_id": 5
}

Retrieve SKU Inventory
GET/v1/skuInventory/{sku_id}

Returns inventory for a specific sku.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The id of the sku.


SKU Inventory Collection

A collection of SKU Inventory.

GET /v1/skuInventory?order=sku_id&movement_date=2018-01-01
Responses200
Body
[
    {
        "location_id": 0,
        "quantity": 0,
        "sku_id": 1,
        ...
    },
    {
        "location_id": 0,
        "quantity": 0,
        "sku_id": 1,
        ...
    },
    ...
]

Retrieve all SKU Inventory
GET/v1/skuInventory{?order,movement_date}

Retrieves all SKU inventory.

URI Parameters
HideShow
movement_date
date (optional) Example: 2018-01-01

Only include inventory that has moved since this date.

order
string (optional) Default: sku_id Example: sku_id

The field to sort the result set by. Prefix with - to invert.

Choices: sku_id


SKU Vendor

SKU Vendor

SKU vendor.

GET /v1/skuVendor/123
Responses200
Headers
Content-Type: application/json
Body
{
  "default_cost": 12.34,
  "discount_percent": 0,
  "drop_ship_cost": 0,
  "id": 123,
  "replenishment_cost": 0,
  "sku_id": 456,
  "stamp": "",
  "status": "active",
  "stock_qty": 0,
  "stock_type": "unlimited",
  "vendor_id": 37,
  "vendor_sku": "AJZ4702"
}

Retrieve SKU Vendor
GET/v1/skuVendor/{sku_id}

Returns a specific SKU vendor record.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The id of the SKU.


SKU Vendor Collection

A collection of SKU Vendor records.

GET /v1/skuVendor?order=sku_id
Responses200
Body
[
    {
        "default_cost": 12.34,
        "discount_percent": 0,
        "drop_ship_cost": 0,
        ...
    },
    {
        "default_cost": 12.34,
        "discount_percent": 0,
        "drop_ship_cost": 0,
        ...
    },
    ...
]

Retrieve all SKU Vendor records
GET/v1/skuVendor{?order}

Retrieves all SKU vendor records.

URI Parameters
HideShow
order
string (optional) Default: id Example: sku_id

The field to sort the result set by. Prefix with - to invert.

Choices: id sku_id status vendor_id vendor_sku


POST /v1/skuVendor
Requestsexample 1
Body
{
  "default_cost": 12.34,
  "discount_percent": 0,
  "drop_ship_cost": 0,
  "id": 123,
  "replenishment_cost": 0,
  "sku_id": 456,
  "stamp": "",
  "status": "active",
  "stock_qty": 0,
  "stock_type": "unlimited",
  "vendor_id": 37,
  "vendor_sku": "AJZ4702"
}
Responses201
Body
{
  "id": "12345"
}

Create SKU Vendor
POST/v1/skuVendor

Create a new SKU Vendor.

Parameters

  • default_cost: 12.00.00 (float) - Default Cost

  • discount_percent: 0.00 (float) - Percentage of the discount

  • drop_ship_cost: 0.00 (float) - Dropshipping cost

  • replenishment_cost: 0.00 (float) - Replenishment Cost

  • sku_id: 456 (integer) - SKU ID

  • status: "active" (string) - State value active/inactive

  • stock_qty: 0 (integer) - Stock quantity

  • stock_type: "unlimited" (string) - Stock type

  • vendor_id: 37 (integer) - Vendor ID

  • vendor_sku: "AJZ4702" (string) - Vendor SKU

  • stamp: "0000-00-00 00:00:00" (string) - Vendor SKU


PUT /v1/skuVendor
Requestsexample 1
Body
{
  "default_cost": 12.34,
  "discount_percent": 0,
  "drop_ship_cost": 0,
  "id": 123,
  "replenishment_cost": 0,
  "sku_id": 456,
  "stamp": "",
  "status": "active",
  "stock_qty": 0,
  "stock_type": "unlimited",
  "vendor_id": 37,
  "vendor_sku": "AJZ4702"
}
Responses201
Headers
Content-Type: application/json

Update SKU Vendor
PUT/v1/skuVendor

Update a new SKU Vendor.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The id of the SKU.


DELETE /v1/skuVendor
Responses204
This response has no content.

Delete a SKU Vendor
DELETE/v1/skuVendor

Delete a specific SKU Vendor.

URI Parameters
HideShow
sku_id
integer (required) Example: 123

The SKU ID.


State

State

A state.

GET /v1/state/123
Responses200
Headers
Content-Type: application/json
Body
{
  "id": 1,
  "state": "Alabama",
  "state_code": "AL"
}

Retrieve a State
GET/v1/state/{state_id}

Returns a specific state.

URI Parameters
HideShow
state_id
integer (required) Example: 123

The id of the state.


Contact Collection

A collection of states.

GET /v1/state?order=id
Responses200
Body
[
    {
        "id": 1,
        "state": "Alabama",
        "state_code": "AL"
    },
    {
        "id": 2,
        "state": "Alaska",
        "state_code": "AK"
    },
    ...
]

Retrieve all States
GET/v1/state{?order}

Retrieves all states.

URI Parameters
HideShow
order
string (optional) Default: id Example: id

The field to sort the result set by. Prefix with - to invert.

Choices: id state state_code


Transfer

Transfer

A transfer.

POST /v1/transfer/
Requestsexample 1
Body
{
    "close_date": "2011-12-10T19:54:51-05:00",
    "destination_sublocation_id": 0,
    "destination_warehouse_id": 3,
    ...
}
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a Transfer
POST/v1/transfer/

Create a new transfer.

If the product_id field is not provided in the request, a basic empty transfer will be created.

If the product_id field is provided in the request, the following will occur:

  • A new transfer will be created.

  • Pieces of inventory which meet all the following criteria will be added to the transfer:

    • Is an active inventory requirement for the indicated product.
    • Is in the source location.
    • Is in unassigned inventory status.
  • The transfer status will be set to Ready for Pick/Pack.

If product_id is provided and there is no qualifying inventory in the source location, the call will fail and no transfer will be created.


GET /v1/transfer/123
Responses200
Headers
Content-Type: application/json
Body
{
  "close_date": "2011-12-10T19:54:51-05:00",
  "destination_sublocation_id": 0,
  "destination_warehouse_id": 3,
  "distribution_purchase_order_id": 0,
  "id": 3,
  "issue_date": "2011-12-10T19:35:14-05:00",
  "medium": "email",
  "medium_id": 0,
  "notes": "",
  "shipping_method_id": 17,
  "source_sublocation_id": 0,
  "source_warehouse_id": 1,
  "status": "Closed",
  "transfer_reason_code_id": 0,
  "verified": true
}

Retrieve a Transfer
GET/v1/transfer/{transfer_id}

Returns a specific transfer.

URI Parameters
HideShow
transfer_id
integer (required) Example: 123

The id of the transfer.


PUT /v1/transfer/123
Responses204
This response has no content.

Update a Transfer
PUT/v1/transfer/{transfer_id}

Update a specific transfer.

URI Parameters
HideShow
transfer_id
integer (required) Example: 123

The id of the transfer.


Transfer Collection

A collection of transfers.

GET /v1/transfer?order=status
Responses200
Body
[
    {
        "close_date": "2011-12-10T19:54:51-05:00",
        "destination_sublocation_id": 0,
        "destination_warehouse_id": 3,
        ...
    },
    {
        "close_date": "2011-12-10T19:54:51-05:00",
        "destination_sublocation_id": 0,
        "destination_warehouse_id": 3,
        ...
    },
    ...
]

Retrieve all Transfers
GET/v1/transfer{?order}

Retrieves all transfers.

URI Parameters
HideShow
order
string (optional) Default: id Example: status

The field to sort the result set by. Prefix with - to invert.

Choices: destination_warehouse_id id status


Transfer Receiver Collection

A collection of receivers for a transfer.

POST /v1/transfer/123/receiver
Responses201
Body
{
  "id": "123",
  "uri": "..."
}

Create a Receiver for a Transfer
POST/v1/transfer/{transfer_id}/receiver

Creates a receiver for a transfer.

This will create a new receiver and automatically receive all inventory on the transfer.

URI Parameters
HideShow
transfer_id
integer (required) Example: 123

The id of the transfer.


GET /v1/transfer/123/receiver?order=stamp
Responses200
Body
[
    {
        "comment": "This receiver was created without ASN",
        "exported": false,
        "id": 3,
        ...
    },
    {
        "comment": "This receiver was created without ASN",
        "exported": false,
        "id": 3,
        ...
    },
    ...
]

Retrieve all Receivers for a Transfer
GET/v1/transfer/{transfer_id}/receiver{?order}

Retrieves all receivers for a transfer.

URI Parameters
HideShow
transfer_id
integer (required) Example: 123

The id of the transfer.

order
string (optional) Default: id Example: stamp

The field to sort the result set by. Prefix with - to invert.

Choices: id master_receiving_document_id stamp


Transfer Inventory Collection

A collection of inventory for a transfer.

GET /v1/transfer/123/inventory?order=warehouse_id
Responses200
Body
[
    {
        "assoc_entity": "ordered item",
        "assoc_entity_id": 1234,
        "build_type": "INV",
        ...
    },
    {
        "assoc_entity": "ordered item",
        "assoc_entity_id": 1234,
        "build_type": "INV",
        ...
    },
    ...
]

Retrieve all Inventory for a Transfer
GET/v1/transfer/{transfer_id}/inventory{?order}

Retrieves all inventory for a transfer.

URI Parameters
HideShow
transfer_id
integer (required) Example: 123

The id of the transfer.

order
string (optional) Default: id Example: warehouse_id

The field to sort the result set by. Prefix with - to invert.

Choices: id inventory_id inventory_location_id status warehouse_id


User

User

A user account.

GET /v1/user
Responses201
Body
[
    {
        'user': 'coresense',
        'first_name': 'test_user_123',
        'last_name': 'dummy',
        'password':    'Tenpearls001',
        'confirm_password':    'Tenpearls001',
        'phone_number':    '11111111111',
        'email_address': 'xyz@123.com',
        'default_manager_id': 1,
        'management_level':    5,
        'location_access_policy_id': 1,
        'department': 'admin',
        'status': 'Active',
        'type': 'Full Time'
    },
    {
        'first_name': 'test_user_123',
        'last_name': 'dummy',
        'password':    'Tenpearls001',
        'confirm_password':    'Tenpearls001',
        'phone_number':    '11111111111',
        'email_address': 'xyz@123.com',
        'default_manager_id': 1,
        'management_level':    5,
        'location_access_policy_id': 1,
        'department': 'admin',
        'status': 'Active',
        'type': 'Full Time'
    },
    ...
]

Retrieve all users
GET/v1/user

Returns a list of back office users.


POST /v1/user
Requestsexample 1
Body
{
    'user': 'coresense',
    'first_name': 'test_user_123',
    'last_name': 'dummy',
    'password':    'Tenpearls001',
    'confirm_password':    'Tenpearls001',
    'phone_number':    '11111111111',
    'email_address': 'xyz@123.com',
    'default_manager_id': 1,
    'management_level':    5,
    'location_access_policy_id': 1,
    'department': 'admin',
    'status': 'Active',
    'type': 'Full Time'
}
Responses201
Body
{
    "user_id": "123",
}

Create a User
POST/v1/user

Create a back office user.

Top Level Parameters

  • user is required. The username of the user.

  • first_name is required. The first name of the user.

  • last_name is required. The last name of the user.

  • phone_number is required. The phone number of the user.

  • email_address is required. The email address of the user.

  • password is required. The password of the user.

  • confirm_password is required.

  • default_manager_id is required. The default manager id of the user.

  • location_access_policy_id is required. The location access policy if of the user.

  • department is optional. The department of the user.

  • status is required. The status of the user. Choose from ‘Active’,‘Inactive’.

  • type is optional. The type of the user. Choose from ‘Full Time’,‘Part Time’,‘Contractor’,‘Partner’,‘Vendor’


User

GET /v1/users/123
Responses200
Body
{
    'user': 'coresense',
    'first_name': 'test_user_123',
    'last_name': 'dummy',
    'password':    'Tenpearls001',
    'confirm_password':    'Tenpearls001',
    'phone_number':    '11111111111',
    'email_address': 'xyz@123.com',
    'default_manager_id': 1,
    'management_level':    5,
    'location_access_policy_id': 1,
    'department': 'admin',
    'status': 'Active',
    'type': 'Full Time'
}

Retrieve a User
GET/v1/users/{user_id}

Retrieves a single back office user. test phrase.

URI Parameters
HideShow
user_id
integer (required) Example: 123

The id of the user.


PUT /v1/users/123
Requestsexample 1
Body
{
    'first_name': 'test_user_123',
    'last_name': 'dummy',
}
Responses201
This response has no content.

Update a User
PUT/v1/users/{user_id}

Updates a single back office user.

Top Level Parameters

  • first_name The first name of the user.

  • last_name The last name of the user.

  • phone_number The phone number of the user.

  • email_address The email address of the user.

  • password The password of the user.

  • confirm_password * default_manager_id The default manager id of the user.

  • location_access_policy_id The location access policy if of the user.

  • department The department of the user.

  • status The status of the user. Choose from ‘Active’,‘Inactive’.

  • type The type of the user. Choose from ‘Full Time’,‘Part Time’,‘Contractor’,‘Partner’,‘Vendor’

URI Parameters
HideShow
user_id
integer (required) Example: 123

The id of the user.


User Role

GET /v1/user/123/role
Responses201
Body
[
  {
    "id": "18",
    "label": "Inventory Control / Audit",
    "protected": "1"
  },
  {
    "id": "41",
    "label": "Warehouse Edits Only",
    "protected": "0"
  }
]

Retrieve all user roles
GET/v1/user/{user_id}/role

Returns a list of roles for a particular back office user.

URI Parameters
HideShow
user_id
integer (required) Example: 123

The id of the user.


GET /v1/user/123/role
Requestsexample 1
Body
[
    {
        "role_id": "18",
    },
    {
        "role_id": "41",
    }
]
Responses204
This response has no content.

Assign roles to a user
GET/v1/user/{user_id}/role

Assigns mentioned roles to user.

URI Parameters
HideShow
user_id
integer (required) Example: 123

The id of the user.


User Role

DELETE /v1/user/123/role/123
Responses204
This response has no content.

Unassign roles from a user
DELETE/v1/user/{user_id}/role/{role_id}

Removes assigned role from user

URI Parameters
HideShow
user_id
integer (required) Example: 123

The id of the user.

role_id
integer (required) Example: 123

The id of the role.


UserAccount

UserAccount

A user account.

POST /v1/userAccount
Requestsexample 1
Body
{
    [
        "username": 'coresense',
        "password": 'Coresense12'
    ]
}
Responses201
Body
{
  "username": "coresense",
  "id": 5
}

Authenticate a User
POST/v1/userAccount

Authenticate a back office user.

Top Level Parameters

  • username is required. The username of the user.

  • password is required. The password of the user.


Get Vendor Data

GET /v1/vendor/1
Responses200
Headers
Content-Type: application/json
Body
{
  "active": "y",
  "auto_close_dropship_pos": "n",
  "contact_name": "",
  "custom_asset_portal": "",
  "custom_buyer": "Jay",
  "custom_csr_email": "",
  "custom_csr_name": "",
  "custom_csr_phone": "",
  "custom_drop_ship_contact_name": "",
  "custom_drop_ship_contact_phone": "",
  "custom_drop_ship_fees": "",
  "custom_drop_ship_notes": "",
  "custom_drop_shop_contact_email": "",
  "custom_edi_contact_email": "",
  "custom_edi_contact_name": "",
  "custom_edi_contact_phone": "",
  "custom_edi_id": "",
  "custom_edi_qualifier": "",
  "custom_main_vendor_contact": "",
  "custom_map_contact_email": "",
  "custom_map_contact_name": "",
  "custom_map_contact_phone": "",
  "custom_map_info": "",
  "custom_marketing_email": "",
  "custom_marketing_name": "",
  "custom_marketing_phone": "",
  "custom_sales_rep_email": "",
  "custom_sales_rep_name": "",
  "custom_sales_rep_phone": "",
  "custom_small_order_fee": "",
  "custom_upc_resource": "",
  "custom_vendor_additional_fees": "",
  "custom_vendor_code": "511",
  "custom_vendor_notes": "",
  "default_cost_method": null,
  "default_location_hierarchy_type_id": null,
  "default_medium": "email",
  "default_medium_id": "0",
  "default_shipping_method_id_1": null,
  "default_shipping_method_id_2": null,
  "default_terms": null,
  "default_use_size_runs": null,
  "dropship_medium_id": "0",
  "edi_vendor_id": null,
  "fedex_smartpost_hub_id": "0",
  "id": "1",
  "jit_medium_id": "0",
  "main_email": "supershoespos@hhbrown.com",
  "main_fax": "209.527.1511",
  "main_phone": "866-451-1726",
  "name": "511 Tactical",
  "partner_id": null,
  "requires_liftgate": "1",
  "retain_status_dropship_pos": "n",
  "send_notification_dropship_pos": "y",
  "ship_address1": "4300 Spyres Way",
  "ship_address2": "",
  "ship_city": "Modesto",
  "ship_country": "1",
  "ship_state": "12",
  "ship_zip": "95356",
  "stamp": "0000-00-00 00:00:00"
}

Get Vendor
GET/v1/vendor/{vendor_id}

URI Parameters
HideShow
vendor_id
integer (required) Example: 1

The id of the vendor.


Warehouse

Warehouse

A warehouse.

GET /v1/warehouse/123
Responses200
Headers
Content-Type: application/json
Body
{
  "available_for_fulfillment": false,
  "default_damaged_inventory_location_id": 0,
  "distribution_center_id": 0,
  "fedex_smartpost_hub_id": 0,
  "fulfillment_priority": 10,
  "id": 3,
  "is_distribution_center": false,
  "label": "505 Columbus",
  "lat": 0,
  "location_hierarchy_id": 14,
  "lon": 0,
  "main_fax": "",
  "main_phone": "",
  "requires_liftgate": false,
  "ship_address1": "",
  "ship_address2": "",
  "ship_city": "",
  "ship_country": 1,
  "ship_state": 46,
  "ship_zip": "12345",
  "timezone": null,
  "type": "store"
}

Retrieve a Warehouse
GET/v1/warehouse/{warehouse_id}

Returns a specific warehouse.

URI Parameters
HideShow
warehouse_id
integer (required) Example: 123

The id of the warehouse.


Warehouse Collection

A collection of warehouses.

GET /v1/warehouse?order=label
Responses200
Body
[
    {
        "available_for_fulfillment": false,
        "default_damaged_inventory_location_id": 0,
        "distribution_center_id": 0,
        ...
    },
    {
        "available_for_fulfillment": false,
        "default_damaged_inventory_location_id": 0,
        "distribution_center_id": 0,
        ...
    },
    ...
]

Retrieve all Warehouses
GET/v1/warehouse{?order}

Retrieves all warehouses.

URI Parameters
HideShow
order
string (optional) Default: id Example: label

The field to sort the result set by. Prefix with - to invert.

Choices: id label type


Warehouse Location Collection

A collection of warehouse locations.

GET /v1/warehouse/123/location?order=warehouse_id
Responses200
Body
[
    {
        "active": true,
        "available_for_fulfillment": true,
        "description": "",
        ...
    },
    {
        "active": true,
        "available_for_fulfillment": true,
        "description": "",
        ...
    },
    ...
]

Retrieve all Locations for a Warehouse
GET/v1/warehouse/{warehouse_id}/location{?order}

Retrieves all locations for a warehouse

URI Parameters
HideShow
warehouse_id
integer (required) Example: 123

The id of the warehouse.

order
string (optional) Default: id Example: warehouse_id

The field to sort the result set by. Prefix with - to invert.

Choices: id parent_id warehouse_id


WebData

WebData

A product’s web data.

GET /v1/webData/123
Responses200
Headers
Content-Type: application/json
Body
{
    "active": 1,
    "availability_calculation": "standard",
    "call_for_price": 0,
    "display_add_to_cart": 0,
    "exclude_from_search": 0,
    "main_featured": 'n',
    "meta_abstract": "",
    "meta_description": "Test Description Here",
    "meta_keywords": "",
    "meta_title": "",
    "out_of_stock_option": "allow_purchase",
    "page_title": "",
    "product_id": 123,
    "reservation_timing": "order_creation",
    "reserve_inventory": 1,
    "stamp": "2019-09-23T16:25:28-04:00"
}

Retrieve Web Data
GET/v1/webData/{product_id}

Retrieve a specific product’s web data.

URI Parameters
HideShow
product_id
integer (required) Example: 123

The product id.


PUT /v1/webData/123
Responses204
This response has no content.

Update WebData
PUT/v1/webData/{product_id}

Update a specific product’s web data.

URI Parameters
HideShow
product_id
integer (required) Example: 123

The product id.


WebData Collection

A collection of web data.

GET /v1/webData?order=product_id
Responses200
Body
[
    {
        "active": 1,
        "availability_calculation": "standard",
        "call_for_price": 0,
        ...
    },
    {
        "active": 0,
        "availability_calculation": "extended_availability",
        "call_for_price": 1,
        ...
    },
    ...
]

Retrieve all WebData
GET/v1/webData{?order}

Retrieve all web data.

URI Parameters
HideShow
order
string (optional) Default: produc_id Example: product_id

The field to sort the result set by. Prefix with - to invert.

Choices: product_id active main_featured


Generated by aglio on 05 Jun 2026