Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 14 Current »

1. Download Latest Product

  • Supplier can use this API to download file related one or more products for update.

  • It is used when downloading zip file related product that compose of depth combination xlsx, contents xlsx, images.

  • If you enter validate access key and common code list, you can download files that you will use for update your product. - Product - Update

2. API Spec

1) Request

Endpoint

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

Method

POST

Description

Download xlsx file about existing products.

Content-Type

application/json

2) 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]

  • Existing product version list

3) Request Example

(1) Validate

{
    "supplier_access_key": "86e8b65a-d008-4e23-90d3-99b0f639c0e5",
    "supplier_unit_common_codes": ["c1e973a5", "795c20fe"],
    "versions": ["1.0", "2.0"]
}

(2) invalidate

{
    "supplier_access_key": "86e8b65a-d008-4e23-90d3-99b0f639c0e5",
    "supplier_unit_common_codes": ["not_existing_common_code"]
}

4) Response

Name

Type

Description

wholeness.zip

File

Files

  • Depth combination file

  • Contents xlsx file

  • Image files

5) Error Spec

Status Code

Message

Solution

403

Need valid supplier access key.

The valid supplier access key must be entered

400

Need validate supplier unit common code, not not_existing_common_code.

The valid supplier unit common code list must be entered

6) Response Example

{
  "status_code": 403,
  "message": "Need valid supplier access key."
}

3. Request Example

1) CURL

curl -X 'POST' \
  'https://prod.ax-cloud.com/v1/wholeness-download' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -H 'X-CSRFTOKEN: nG8FlrJivkOlWRLqWfQTbZnK6tYcknSrL5PhxhFaZgJpJuUmc5bcWdekVbOHybpa' \
  -d '{
  "supplier_access_key": "86e8b65a-d008-4e23-90d3-99b0f639c0e5",
  "supplier_unit_common_codes": ["c1e973a5", "795c20fe", "c1e973a5"]

}

4. Limitation

  • supplier_unit_common_codes

    • Common code must be exist in DB by your upload.


  • No labels