Skip to content

Product API

Request a product registration/update request (with webhook notification)

Product information properties

.
Item name Description
control
required
(Required) Control
"publish"
The status of the product after the update.
One of the following can be specified.
  • publish
  • draft
  • suspend
  • delete
  • .
Specify draft to register privately, or publish to publish. Once a product is published, it can be suspend, but cannot be draft again.
reference_number Reference number
"56bca058-c171-4e58-a3a1-8c653de898aa"
You must set id or reference_number.
If you set both of id and reference_number, API prefers id to reference_number and ignores reference_number.
You can set the reference number separately from the product ID which is automatically assigned by BUYMA.
It is recommended that you specify a control string in reference_number to identify products that will be added to BUYMA.
The same number cannot be assigned to more than one product.
name
required
Product name
"[Immediate Release] GUCCI Women's Bifold Wallet [Domestic]"
id
read-only
Product ID
1000000000
This is the product ID issued by BUYMA.
status
read-only
Product Status
"public"
The current status of the product.
  • public: On sale
  • soldout: Sold out
  • draft: Drafting
  • buyer_suspended: Stopped selling
  • admin_suspended: Office suspended
  • in_review: Under review
  • not_approved: Not approved
  • buyer_deleted: Deleted
  • admin_deleted: Deleted by the secretariat
comments
required
Product Comments
"GUCCI long wallet in stock now☆
The compact size allows you to store it neatly in a small bag."
A description for the product details.
The maximum character limit is 3,000 characters (UTF-8).
・ HTML format is not supported.
・ Emojis and special characters are counted as 2 to 4 characters per each.
brand_id
required
Brand ID
203
Brand ID is defined by BUYMA.
The list of brand ID can be found on brands.csv in master data.
If not specified, enter 0.
brand_name Brand Name
"brand_name"
Allows you to enter the name of a brand that is not managed by BUYMA.
In this case, brand_id must be 0.
model_id Model ID
3126
This is a BUYMA-specified model ID.
The list of model ID can be found on models.csv in master data.
category_id
required
Category ID
3126
This is the category ID for BUYMA.
The list of category ID can be found on categories.csv in master data.
theme_id Theme ID
3126
This is the default theme ID for BUYMA.
The list of theme ID can be found on themes.csv in master data.
season_id Season ID
3126
This is the BUYMA default season ID.
The list of season ID can be found on seasons.csv in master data.
price
required
Product Price
32000
Enter the price of the item, not including shipping costs.
list_price
read-only
List Price
32000
The total of the item price and the lowest shipping cost is the listing price.
regular_price Regular listing price
34000
The product must have been on the market for at least 14 days to set this value.
reference_price Reference Price
34500
available_until
required
Purchase deadline (Japan time)
"2019/09/20"
The last available date for purchase(up to 90 days).
buying_area_id
required
Buying Area
2003004001
Please set area id which you purchase item at.
The list of area ID can be found on areas.csv in master data.
buying_shop_name Name of the store to buy from.
"Rome Main Store"
Set the name of the town or store name to buy from.
shipping_area_id
required
Shipping Area
2003004001
Please set area id which you ship from.
The list of area ID can be found on areas.csv in master data.
buyer_notes Seller Notes
"Packed."
This can be used as a note that will not be made public to buyers.
duty Tariffs
"included".
No tariff burden setting.
You can specify one of the following.
  • none: Not specified
  • included: Prepaid customs duty
  • refundable: Full payment for customs duty upon purchaser's application
tags Tags
[{ "tag_id": 1 }, { "tag_id": 2 }]
An array of BUYMA-specified tag IDs.
The list of tag ID can be found on tags.csv in master data.
images
required
Product Image
[
    { "path": "https://example.org/images/1.jpg", "position": 1 },
    { "path": "https://example.org/images/2.jpg", "position": 2 }
]
An array of product images.Up to 20 images can be set. The product image should be a publicly accessible URL.
shipping_methods
required
Shipping Methods
[{ "shipping_method_id": 1 }, { "shipping_method_id": 2 }]
An array specifying the shipping master.
The shipping methods are found BUYMA Partners Sandbox Delivery method management for sandbox environment.
The shipping methods are found Shipping Master for production environment.
style_numbers Model number/identification note
[
    { "number": "A100", "memo": "color: red" },
    { "number": "B200", "memo": "color: black" }
]
An array with the model number of the product.
options
required
Color and size
[
    { "type": "size", "value": "S", "master_id": 1, "position": 1 },
    { "type": "size", "value": "M", "master_id": 2, "position": 2 },
    { "type": "color", "value": "White", "master_id": 1, "position": 1 },
    { "type": "color", "value": "Black", "master_id": 2, "position": 2 }
]
An array specifying the color and size variations of the product.
  • type can be set color or size
  • Set the name to be displayed in value
  • master_id is used for product search by connecting with the ID of BUYMA regulations
    • The list of color can be found on colors.csv in master data
    • The list of size can be found on sizes.csv in master data
    • Notice: The master_id of size depends on category_id
    • Please set 0 as master_id when there is no master_id for the target category
    • Please set 0 as master_id if you don't know Japanese reference size for your local size
  • position specifies the order in which the items are displayed.
For products which you can not choose Japanese color name:

The master_id should be 99. For value, specify "マルチカラー".

For products that are not available in different sizes:

The master_id should be 0 for size type.
For value, you can specify one of the following

  • "FREE" (free size)
  • "ONE SIZE" (one size)
size_unit Size Unit
"cm"
The values which can be set differ for each category. The list of size unit can be found on unites.csv in master data. The value of same category_id as product or empty category_id can be set.
colorsize_comments Color and size supplementary information
" - Color: B.EB/N.ACERO/VRV
Size: Approx. 11cm (width) x 8.5cm (length) x 3cm (thickness)
Weight: approx. 200g
Material: GG Supreme Canvas / Leather
Opening: Snap closure
Inside: 2 open pockets, 4 card pockets, 1 zipper coin purse, 1 billfold
Accessories: Box"
You can enter free text for the supplementary description for color and size details.
variants
required
Sales Availability/Stock
[
    {
        "options": [
            { "type": "size", "value": "S" },
            { "type": "color", "value": "White" }
        ],
        "stock_type": "stock_in_hand",
        "stocks": 1
    },
    {
        "options": [
            { "type": "size", "value": "M" },
            { "type": "color", "value": "White" }
        ],
        "stock_type": "stock_in_hand",
        "stocks": 1
    },
    {
        "options": [
            { "type": "size", "value": "S" },
            { "type": "color", "value": "Black" }
        ],
        "stock_type": "stock_in_hand",
        "stocks": 1
    },
    {
        "options": [
            { "type": "size", "value": "M" },
            { "type": "color", "value": "Black" }
        ],
        "stock_type": "stock_in_hand",
        "stocks": 1
    }
]
An array specifying product variations and availability.
The stock number is set for combination of colors and sizes which are defined at options.
All combinations of colors and sizes at options must be enumerated.
Please refer the following link for stocks. https://qa.buyma.com/shopper/sell/11325.html

The stock_type can be chosen one of the following.
  • stock_in_hand: Stock in hand
  • purchase_for_order: Available for purchase
  • out_of_stock: Out of stock
stocks is set number of stock in hand or available for purchase item.
order_quantity Total quantity that can be purchased.
10
The total quantity that is available for purchase, not including the quantity in stock.
Required if variants includes purchase_for_order.
shop_urls Buyer's note
[
    {
        "url": "https://www.example.com",
        "label": "Purchaser Name A",
        "description": "Buyers details"
    }
]
This can be used as a buyer's note. This value can see only buyer.
updated_at
read-only.
Updated Date
"2019-09-05t12:10:40+09:00"
created_at
read-only.
Creation Date
"2019-09-05t12:10:40+09:00"

Restricted editing items after publishing

The following items cannot be updated after publication.

  • name
  • brand_id
  • brand_name
  • category_id
  • buying_area_id
  • buying_shop_name
  • shipping_area_id

Entering size details

options records of type: size can contain details. The items that can be selected for key depend on the category. If you set a value for optional_value, you can use something like "68.0-68.5". For products that can be adjusted for expansion, contraction, movement, etc., please use that range of input.

The list of key in details can be found on size_details.csv in master data.

"options": [
  {
    "type": "size", "value": "S", "master_id": 1, "position": 1,
    "details": [
      { "key": "length", "value": "68.0", "optional_value": "68.5" },
      { "key": "shoulder width", "value": "48.0" },
      { "key": "chest circumference", "value": "53.0", "optional_value": "55.0" },
      { "key": "sleeve length", "value": "65.0" }
    ]
  }
]

Fields to be filled in when deleting a product

When deleting products, it is possible to delete products with control: "delete" items and id / reference_number which can identify the product.

{
    "product": {
        "control": "delete",
        "reference_number": "56bca058-c171-4e58-a3a1-8c653de898aa"
    }
}

POST /api/v1/products.json

Accepts requests to create, edit, or delete products. Only a simple validation of required fields will be performed at request receive time, then the detail validations are hold on inserting/updating items.

About required fields

If the control is publish, draft, or suspend, the required fields must be included in the API request. When the control is delete, some required fields can be omitted. See the Required Fields for Product Deletion section for details.

Webhook event

The following webhook events are called after create/update/fail to create fail to update the item.

API Request

POST /api/v1/products.json
{
  "product": {
    "reference_number": "ABC0001",
    "control": "publish",
    "name": "quilted jacket",
    "comments": "Thank you for your interest in our products." ,
    "brand_id": 203,
    "model_id": null,
    "category_id": 3064,
    "season_id": null,
    "theme_id": null,
    "price": 22500,
    "reference_price": 25500,
    "regular_price": null,
    "available_until": "01/10/2019",
    "buying_area_id": "2001001000",
    "buying_shop_name": "Authorized Dealer",
    "shipping_area_id": "2001001000",
    "duty": "included",
    "tags": [
      { "tag_id": 419 },
      { "tag_id": 710 }
    ],
    "shipping_methods": [
      { "shipping_method_id": 888 }
      { "shipping_method_id": 891 }
    ],
    "images": [
      { "path": "https://example.org/images/1.jpg", "position": 1 }
      { "path": "https://example.org/images/2.jpg", "position": 2 }
    ],
    "style_numbers": [
      { "number": "CATALOG-001-WHITE", "memo": "White" },
      { "number": "CATALOG-001-BLACK", "memo": "Black" }
    ],
    "options": [
      {
        "type": "size", "value": "S", "position": 1, "master_id": 1,
        "details": [
          { "key": "length", "value": "67.0", "optional_value": "67.5" },
          { "key": "shoulder width", "value": "46.0" },
          { "key": "chest circumference", "value": "53.0" },
          { "key": "sleeve length", "value": "63.0", "optional_value": "63.5" }
        ]
      },
      {
        "type": "size", "value": "M", "position": 2, "master_id": 2,
        "details": [
          { "key": "length", "value": "68.0", "optional_value": "68.5" },
          { "key": "shoulder width", "value": "48.0" },
          { "key": "chest circumference", "value": "55.0" },
          { "key": "sleeve length", "value": "65.0", "optional_value": "65.5" }
        ]
      },
      { "type": "color", "value": "White", "position": 1, "master_id": 1 }
      { "type": "color", "value": "Black", "position": 2, "master_id": 2 }
    ],
    "size_unit": "cm",
    "variants": [
      {
        "options": [
          { "type": "size", "value": "S" }
          { "type": "color", "value": "White" }
        ],
        "stock_type": "stock_in_hand",
        "stocks": 1
      },
      {
        "options": [
          { "type": "size", "value": "M" }
          { "type": "color", "value": "White" }
        ],
        "stock_type": "stock_in_hand",
        "stocks": 1
      },
      {
        "options": [
          { "type": "size", "value": "S" }
          { "type": "color", "value": "Black" }
        ],
        "stock_type": "out_of_stock",
        "stocks": null
      },
      {
        "options": [
          { "type": "size", "value": "M" }
          { "type": "color", "value": "Black" }
        ],
        "stock_type": "purchase_for_order",
        "stocks": null
      }
    ],
    "order_quantity": 3,
    "shop_urls": [
      {
        "label": "label1",
        "url": "http://example.com/url/1",
        "description": "description1"
      },
      {
        "label": "label2",
        "url": "http://example.com/url/2",
        "description": "description2"
      }
    ]
  }
}

API Response

Success

HTTP header

HTTP/1.1 201 Created

HTTP body

{
    "request_received_at": "2019-09-05T12:10:40.114775+09:00",
    "request_uid": "2001909051121040114775174828"
}

Item

Description

request_received_at

Request received date and time (ISO8601)

request_uid

request identifier

failure

HTTP header

HTTP/1.1 422 Unprocessable Entity

HTTP body

{
    "errors": {
        "name": ["Product name is required."]
    }
}

Simple validation is performed, such as for required fields.

Item

Description

errors

Error for each input item