POST: http://www.nomedoseusite.com.br/api_seller_products_edit.php?action=update_products
Header Parameter | Format |
Token | base64_encode() |
Secret | base64_encode() |
base64_encode() |
Parameter | Format | Description |
products_id | JSON | Product ID Only number is required Format: int(11) * FIELD REQUIRED |
products_quantity | JSON | Example: 250 Only number is required Format: int(4) * FIELD REQUIRED |
products_model | JSON | Example: CK2587XL (Product identification code) Format: varchar(255) * FIELD REQUIRED |
products_price | JSON | Example: 1542.56 (Do not use , "comma" only . "point" to indicate decimals) Format: decimal(15,4) * FIELD REQUIRED |
products_youtube | JSON | Incorporate video from YouTube, copy and paste the code to embed the video Format: text Example: <iframe width="420" height="315" src="https://www.youtube.com/embed/OTsN80a1OwQ" allowfullscreen></iframe> |
products_weight | JSON | Example: 0.150 (0.150 = 150 grams / Fill only with numbers and point) Format: decimal(5,2) * FIELD REQUIRED |
products_stock_status | JSON | Stock status of the product (Ex: 0) (Legend: 1 = Immediate Delivery, 1 = Exhausted, 2 = Available in __ days or 3 = POA) Enter exactly as example Format: tinyint(1) |
products_stock_status_avaliable_in | JSON | When you enter option 2 in products_stock_status, enter the number of days (Example: 30) (Subtitle: 30 = 30 days). Type exactly as example Format: varchar(64) |
products_free_shipping | JSON | Free shipping product (Example: 0) (Caption: 0 = No or 1 = Yes) Enter exactly as example Format: tinyint(1) |
products_image | JSON | Main picture of the full size product. Filename (Example: nomedaimagem.jpg) or full url (Example: http://www.nomedosite.com.br/imagens/nomedaimagem.jpg). Filename must manually upload the images and full url is automatically captured the image file and saved on the server. Recommended size: 400x400 pixels ~ 800x800 pixels / File format: JPG / Correct Example: nome_do_arquivo_copia.jpg Wrong Example: File Name Cópia.jpg (Do not use special characters, space, semicolon at the images of the file name) Format: text * FIELD REQUIRED |
products_image1 | JSON | Picture of the full size product. Filename (Example: nomedaimagem.jpg) or full url (Example: http://www.nomedosite.com.br/imagens/nomedaimagem.jpg). Filename must manually upload the images and full url is automatically captured the image file and saved on the server. Recommended size: 400x400 pixels ~ 800x800 pixels / File format: JPG / Correct Example: nome_do_arquivo_copia.jpg Wrong Example: File Name Cópia.jpg (Do not use special characters, space, semicolon at the images of the file name) Format: text |
products_image2 | JSON | Picture of the full size product. Filename (Example: nomedaimagem.jpg) or full url (Example: http://www.nomedosite.com.br/imagens/nomedaimagem.jpg). Filename must manually upload the images and full url is automatically captured the image file and saved on the server. Recommended size: 400x400 pixels ~ 800x800 pixels / File format: JPG / Correct Example: nome_do_arquivo_copia.jpg Wrong Example: File Name Cópia.jpg (Do not use special characters, space, semicolon at the images of the file name) Format: text |
products_image3 | JSON | Picture of the full size product. Filename (Example: nomedaimagem.jpg) or full url (Example: http://www.nomedosite.com.br/imagens/nomedaimagem.jpg). Filename must manually upload the images and full url is automatically captured the image file and saved on the server. Recommended size: 400x400 pixels ~ 800x800 pixels / File format: JPG / Correct Example: nome_do_arquivo_copia.jpg Wrong Example: File Name Cópia.jpg (Do not use special characters, space, semicolon at the images of the file name) Format: text |
products_image4 | JSON | Picture of the full size product. Filename (Example: nomedaimagem.jpg) or full url (Example: http://www.nomedosite.com.br/imagens/nomedaimagem.jpg). Filename must manually upload the images and full url is automatically captured the image file and saved on the server. Recommended size: 400x400 pixels ~ 800x800 pixels / File format: JPG / Correct Example: nome_do_arquivo_copia.jpg Wrong Example: File Name Cópia.jpg (Do not use special characters, space, semicolon at the images of the file name) Format: text |
products_image5 | JSON | Picture of the full size product. Filename (Example: nomedaimagem.jpg) or full url (Example: http://www.nomedosite.com.br/imagens/nomedaimagem.jpg). Filename must manually upload the images and full url is automatically captured the image file and saved on the server. Recommended size: 400x400 pixels ~ 800x800 pixels / File format: JPG / Correct Example: nome_do_arquivo_copia.jpg Wrong Example: File Name Cópia.jpg (Do not use special characters, space, semicolon at the images of the file name) Format: text |
products_image6 | JSON | Picture of the full size product. Filename (Example: nomedaimagem.jpg) or full url (Example: http://www.nomedosite.com.br/imagens/nomedaimagem.jpg). Filename must manually upload the images and full url is automatically captured the image file and saved on the server. Recommended size: 400x400 pixels ~ 800x800 pixels / File format: JPG / Correct Example: nome_do_arquivo_copia.jpg Wrong Example: File Name Cópia.jpg (Do not use special characters, space, semicolon at the images of the file name) Format: text |
products_name_br | JSON | Example: Anel de Prata 925 com Pedras de Zirconia Borboleta (Recommended full product name) / Product Name in Portuguese only Format: varchar(64) * If the main language is portuguese it is FIELD REQUIRED |
products_name_en | JSON | Example: Silver Ring with 925 Stones Zirconia Butterfly (Recommended full product name) / Product Name in English only Format: varchar(64) * If the main language is english it is FIELD REQUIRED |
products_name_es | JSON | Example: Anillo de Plata 925 con Piedras de Zirconia Butterfly (Recommended full product name) / Product Name in Espanol only Format: varchar(64) * If the main language is espanol it is FIELD REQUIRED |
products_name_jp | JSON | Example: Silver Ring with 925 Stones Zirconia Butterfly (Recommended full product name) / Product Name in Japanese only Format: varchar(64) * If the main language is japanese it is FIELD REQUIRED |
products_description_br | JSON | Product description in Portuguese Format: text |
products_description_en | JSON | Product description in English Format: text |
products_description_es | JSON | Product description in Espanol Format: text |
products_description_jp | JSON | Product description in Japanese Format: text |
manufacturers_id | JSON | Manufacturer ID Get using the API list manufacturers Format: INT |
pack_id | JSON | Package ID Get using the API list package Format: INT |
length | JSON | Length Format: numeric |
height | JSON | Height Format: numeric |
width | JSON | Width Format: numeric |
seller_country_shipping_id | JSON | COUTRY SHIPPING ID (Example: 30) Enter exactly as example. Check the API to get the list of countries. |
seller_zone_shipping_id | JSON | ZONE SHIPPING ID (Example: 464) Enter exactly as example. Check the API to get the list of zones. |
PHP Sample
// sample edit products $url = $domain_url . '/api_seller_products_edit.php?action=update_products'; $data = array("products_id" => "432", // Product ID (Only number is required) * FIELD REQUIRED "category" => "113", // categorie_id get from api api_categories.php (Only number is required) * FIELD REQUIRED "products_quantity" => "250", // Example: 250 (Only number is required) * FIELD REQUIRED "products_model" => "CK2587XL", // Example: CK2587XL (Product identification code) * FIELD REQUIRED "products_price" => "200.00", // Example: 1542.56 (Do not use , "comma" only . "point" to indicate decimals) * FIELD REQUIRED "products_weight" => "0.150", // Example: 0.150 (0.150 = 150 grams / Fill only with numbers and point) * FIELD REQUIRED "products_stock_status" => "0", // 0 = DELIVERY_IMMEDIATE or 2 = PRODUCT_AVALIABLE_IN (Only number is required) "products_stock_status_avaliable_in" => "0", // Example: 10 AVALIABLE_IN_DAYS (Only number is required) "products_free_shipping" => "0", // 0 = NO or 1 = YES (Only number is required) "products_image" => "http://shoptest1.mformula.info/images/AV2E-ApolloScooterAV2ELiion405.jpg", // Main picture of the full size product. Filename (eg nomedaimagem.jpg) or full url (eg http://www.nomedosite.com.br/imagens/nomedaimagem.jpg). Filename must manually upload the images and full url is automatically captured the image file and saved on the server. Recommended size: 400x400 pixels ~ 800x800 pixels / File format: JPG / Correct Example: nome_do_arquivo_copia.jpg Wrong Example: File Name Cópia.jpg (Do not use special characters, space, semicolon at the images of the file name) * FIELD REQUIRED "products_name_br" => "Anel de Prata 925 com Pedras de Zirconia Borboleta", // Example: Anel de Prata 925 com Pedras de Zirconia Borboleta (Recommended full product name) / Product Name in Portuguese only * FIELD REQUIRED "products_name_en" => "Silver Ring with 925 Stones Zirconia Butterfly", // Example: Silver Ring with 925 Stones Zirconia Butterfly (Recommended full product name) / Product Name in English only "products_name_es" => "Anillo de Plata 925 con Piedras de Zirconia Butterfly", // Example: Anillo de Plata 925 con Piedras de Zirconia Butterfly (Recommended full product name) / Product Name in Espanol only "products_name_jp" => "Silver Ring with 925 Stones Zirconia Butterfly", // Example: Silver Ring with 925 Stones Zirconia Butterfly (Recommended full product name) / Product Name in Japanese only "products_description_br" => "Descrição completa do produto em português", // Product description in Portuguese "products_description_en" => "Product description in English", // Product description in English "products_description_es" => "Descripción del producto en español", // Product description in Espanol
"seller_country_shipping_id" => 30, // Example: 30
"seller_zone_shipping_id" => 464, // Example: 464 "products_description_jp" => "Product description in Japanese" // Product description in Japanese ); $data_string = json_encode($data); $ch = curl_init($url); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', "Cache-Control: no-cache", 'Token: ' . base64_encode($token), 'Secret: ' . base64_encode($secret), 'E-mail: ' . base64_encode($email), 'Content-Length: ' . strlen($data_string)) ); $result = curl_exec($ch); curl_close($ch); print_r($result); // sample edit products eof
Return Error:
code
message
Return Success:
code
products_model
products_id
message