如何调用shopify api 创建商品数据

将商品 同步 到 shopify

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
讨论数量: 2

你咋这么懒呢,官网api search下就是好不,shopify.dev/docs/admin-api/rest/re...

Create a new draft product

POST /admin/api/2021-01/products.json

{
  "product": {
    "title": "Burton Custom Freestyle 151",
    "body_html": "<strong>Good snowboard!</strong>",
    "vendor": "Burton",
    "product_type": "Snowboard",
    "shop": {
      "id": 690933842,
      "name": "Apple Computers",
      "email": "steve@apple.com",
      "domain": "apple.myshopify.com",
      "province": "California",
      "country": "US",
      "address1": "1 Infinite Loop",
      "zip": "95014",
      "city": "Cupertino",
      "source": null,
      "phone": "1231231234",
      "latitude": 45.45,
      "longitude": -75.43,
      "primary_locale": "en",
      "address2": "Suite 100",
      "created_at": "2007-12-31T19:00:00-05:00",
      "updated_at": "2021-02-17T19:22:04-05:00",
      "country_code": "US",
      "country_name": "United States",
      "currency": "USD",
      "customer_email": "steve@apple.com",
      "timezone": "(GMT-05:00) Eastern Time (US & Canada)",
      "iana_timezone": "America/New_York",
      "shop_owner": "Steve Jobs",
      "money_format": "$",
      "money_with_currency_format": "$ USD",
      "weight_unit": "lb",
      "province_code": "CA",
      "taxes_included": null,
      "auto_configure_tax_inclusivity": null,
      "tax_shipping": null,
      "county_taxes": true,
      "plan_display_name": "Shopify Plus",
      "plan_name": "enterprise",
      "has_discounts": true,
      "has_gift_cards": true,
      "myshopify_domain": "apple.myshopify.com",
      "google_apps_domain": null,
      "google_apps_login_enabled": null,
      "money_in_emails_format": "$",
      "money_with_currency_in_emails_format": "$ USD",
      "eligible_for_payments": true,
      "requires_extra_payments_agreement": false,
      "password_enabled": null,
      "has_storefront": true,
      "eligible_for_card_reader_giveaway": false,
      "finances": true,
      "primary_location_id": 905684977,
      "cookie_consent_level": "implicit",
      "visitor_tracking_consent_preference": "allow_all",
      "force_ssl": true,
      "checkout_api_supported": true,
      "multi_location_enabled": false,
      "setup_required": false,
      "pre_launch_enabled": false,
      "enabled_presentment_currencies": [
        "USD"
      ]
    },
    "status": "draft"
  }
}
3年前 评论
lijizheng (楼主) 3年前
lijizheng (楼主) 3年前

利益相关,我写了很多关于shopify产品业务,关键还有shopbase之类的 :smiling_imp:

3年前 评论
lijizheng (楼主) 3年前
arukas (作者) 3年前
lijizheng (楼主) 3年前
lijizheng (楼主) 3年前
arukas (作者) 3年前
lijizheng (楼主) 3年前
lijizheng (楼主) 3年前
arukas (作者) 3年前
lijizheng (楼主) 3年前
arukas (作者) 3年前
lijizheng (楼主) 3年前
arukas (作者) 3年前
lijizheng (楼主) 3年前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!