Versions Compared

Key

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

1. Create New

  • Supplier can use this API to create one or more products.

  • It is used when registering a new product.

  • This endpoint only generates task id. So you can check progress status in other endpoint. - Product - Check Task Status.

2. API Spec

1) Request

Endpoint

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

Method

POST

Description

Register new product.

Content-Type

multipart/form-data

...

Name

Required

Type

Description

supplier_access_key

O

String

depth_combination

O

File

  • An xlsx file no larger than 2MB to create purchase option units for products

contents

O

File

  • An xlsx file no larger than 2MB to create detail information of products

images

O

List[File]

  • The name of each file, including the extension, is specified in the contents file

  • A list of jpg(jpeg) or png, each no larger than 1MB

...

Name

Type

Description

task_id

UUID

This task takes quite a bit of time. So this endpoint return only task id. You can use this task id for checking task status to other endpoint - https://axchange.atlassian.net/wiki/spaces/AC/pages/edit-v2/378109983

4) Error Spec

Status Code

Message

Solution

403

Need valid supplier access key.

The valid supplier access key must be entered

400

Need 2 excel and at least 1 image.

The valid files composed of depth combination, contents, images must be entered

...