Advertisement
Guest User

woocommerce rest api call POST VAR PROD

a guest
Dec 23rd, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.86 KB | None | 0 0
  1. {
  2.      
  3.         "name": "VARI PROD",
  4.         "price": "666",
  5.         "regular_price": "666",
  6.         "type" : "variable",
  7.         "description" : "Trying it out for real",
  8.         "short_description" : "Pellentesque habitant.",
  9.         "categories": [
  10.             {
  11.                 "id": 38,
  12.                 "name": "Жевалки",
  13.                 "slug": "zhevalki"
  14.             }
  15.         ],
  16.         "attributes": [
  17.             {
  18.                 "id": 2,
  19.                 "name": "Питомец",
  20.                 "position": 0,
  21.                 "visible": true,
  22.                 "variation": false,
  23.                 "options": [
  24.                     "Собакам"
  25.                 ]
  26.             },
  27.             {
  28.                 "id": 10,
  29.                 "name": "Цвет",
  30.                 "position": 2,
  31.                 "visible": true,
  32.                 "variation": true,
  33.                 "options": [
  34.                     "Бежевый",
  35.                     "Зеленый",
  36.                     "Красный"
  37.                 ]
  38.             }
  39.         ],
  40.             "variations" : [
  41.             {
  42.                 "type": "product_variation",
  43.             "regular_price" : "29.98",
  44.             "attributes" : [{
  45.                 "id": 10,
  46.                 "name":"Цвет",
  47.                 "option":"bezhevyj"}]
  48.                 },
  49.             {
  50.                 "type": "product_variation",
  51.             "regular_price" : "69.98",
  52.             "attributes" : [{
  53.                 "id": 10,
  54.                 "name":"Цвет",
  55.                 "option":"zelenyj"}]
  56.                 },
  57.             {
  58.                 "type": "product_variation",
  59.             "regular_price" : "699.98",
  60.             "attributes" : [{
  61.                 "id": 10,
  62.                 "name":"Цвет",
  63.                 "option":"krasnyj"}]
  64.                 }
  65.                 ],
  66.         "meta_data": [
  67.             {
  68.  
  69.                 "key": "1c_woo",
  70.                 "value": "THATS IT!!!!!!!"
  71.             },
  72.             {
  73.                 "key": "custom_text_field_title",
  74.                 "value": "THATS IT!!!!!!!"
  75.             }
  76.         ]
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement