Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1. Download Inventory

You can obtain inventory information of the desired product, version, date, and time.

2. API Spec

Request

Endpoint

https://prod.ax-cloud.com/v1/inventory-download

Method

POST

Description

Download xlsx file about existing inventories.

Content-Type

application/json

Body Parameter

Name

Required

Type

Description

supplier_access_key

O

String

  • Access right key issued by AX

supplier_unit_common_codes

O

List[String]

  • Existing product ID list

versions

O

List[String]

  • Product’s specific version

datetime

O

String

Request Example

Validate

Code Block
languagepy
{
    "supplier_access_key": "86e8b65a-d008-4e23-90d3-99b0f639c0e5",
    "supplier_unit_common_codes": ["c1e973a5", "795c20fe"],
    "versions": ["1.1", "3.5"]
}

invalidate

Code Block
languagepy
# supplier_unit_common_codes error
{
    "supplier_access_key": "86e8b65a-d008-4e23-90d3-99b0f639c0e5",
    "supplier_unit_common_codes": ["not_exist_common_code"],
    "versions": ["1.1", "3.5"]
}
Code Block
languagepy
# versions type error
{
    "supplier_access_key": "86e8b65a-d008-4e23-90d3-99b0f639c0e5",
    "supplier_unit_common_codes": ["c1e973a5", "795c20fe"],
    "versions": [1.1, 3.5]
}
Code Block
languagepy
# common_code-version match error
{
    "supplier_access_key": "86e8b65a-d008-4e23-90d3-99b0f639c0e5",
    "supplier_unit_common_codes": ["c1e973a5", "795c20fe"],
    "versions": ["1.1", "3.5", "4.7"]
}

Response

Name

Type

Description

inventory.xlsx

File

Inventory xlsx added columns related inventory to depth combination