{"_id":"5ce51892b3a23d016d768223","project":"567f0c06143cc60d00c1fdbe","initVersion":{"_id":"567f0c06143cc60d00c1fdc1","version":"1"},"user":{"_id":"567f0baca74a1c0d003e1fba","username":"","name":"Chris Estreich"},"__v":3,"createdAt":"2019-05-22T09:38:26.623Z","changelog":[{"_id":"5ce51892b3a23d016d768225","update":"http://merchant-api.tophatter.com/docs/product-create","type":"improved"},{"_id":"5ce51892b3a23d016d768224","update":"","type":"added"}],"body":"Today we updated our Product API with a new parameter called “buy_now_price”. Please note that as of today, this parameter is a required field for each new product that is uploaded to our platform.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n\\t\\\"identifier\\\": \\\"111”,\\n\\t\\\"category\\\": \\\"Accessories | Sunglasses\\\",\\n\\t\\\"title\\\": \\\"Canvas Lunch Bag\\\",\\n\\t\\\"description\\\": \\\"This is a demonstration store. You can purchase products like this from United By Blue.\\\\nReusable, durable, and roomy. Our lunchbag has a snap-closure top that rolls down to perfect for trail snacks and lunches. Small enough to throw in any of our bags.\\\\n\\\\n100% Organic Cotton\\\\nLeather Trim\\\\nLifetime Guarantee\\\",\\n\\t\\\"condition\\\":\\\"New\\\",\\n\\t\\\"material\\\":null,\\n\\t\\\"variations\\\": \\n\\t[\\n\\t\\t{\\n\\t\\t\\\"identifier\\\":\\\"4219-1”,\\n\\t\\t\\\"color\\\":\\\"Khaki\\\",\\n\\t\\t\\\"size\\\": null,\\n\\t\\t\\\"quantity\\\":2\\n\\t\\t}\\n\\t],\\n\\t\\\"starting_bid\\\": 1,\\n\\t\\\"buy_now_price\\\":32, — New Parameter that we added and made it required field.\\n\\t\\\"cost_basis\\\": 32,\\n\\t\\\"expedited_days_to_deliver\\\":null,\\n\\t\\\"expedited_shipping_price\\\":null,\\n\\t\\\"buy_one_get_one_price\\\":null,\\n\\t\\\"retail_price\\\":null,\\n\\t\\\"shipping_price\\\": 1,\\n\\t\\\"shipping_origin\\\": \\\"Aruba\\\",\\n\\t\\\"scheduling_fee_bid\\\":0,\\n\\t\\\"weight\\\":5,\\n\\t\\\"days_to_fulfill\\\":1,\\n\\t\\\"days_to_deliver\\\":4,\\n\\t\\\"primary_image\\\": \\\"\\\",\\n\\t\\\"extra_images\\\": \\\"\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n\nIf you do not specify this parameter, you will encounter:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    \\\"message\\\": \\\"Buy now price is not a number and Buy now price can't be blank\\\"\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]\n**Addition:**\nIn an effort to not disrupt listing creation processes via the API, we're going to auto-fill the Buy Now Price (\"buy_now_price\") field from the \"cost_basis\" field. We hope that it will give time to all of our partners on updating partner's API endpoint.","slug":"buy-now-price-is-now-a-required-field","title":"Buy Now Price is *now* a required field"}

Buy Now Price is *now* a required field


Today we updated our Product API with a new parameter called “buy_now_price”. Please note that as of today, this parameter is a required field for each new product that is uploaded to our platform. [block:code] { "codes": [ { "code": "{\n\t\"identifier\": \"111”,\n\t\"category\": \"Accessories | Sunglasses\",\n\t\"title\": \"Canvas Lunch Bag\",\n\t\"description\": \"This is a demonstration store. You can purchase products like this from United By Blue.\\nReusable, durable, and roomy. Our lunchbag has a snap-closure top that rolls down to perfect for trail snacks and lunches. Small enough to throw in any of our bags.\\n\\n100% Organic Cotton\\nLeather Trim\\nLifetime Guarantee\",\n\t\"condition\":\"New\",\n\t\"material\":null,\n\t\"variations\": \n\t[\n\t\t{\n\t\t\"identifier\":\"4219-1”,\n\t\t\"color\":\"Khaki\",\n\t\t\"size\": null,\n\t\t\"quantity\":2\n\t\t}\n\t],\n\t\"starting_bid\": 1,\n\t\"buy_now_price\":32, — New Parameter that we added and made it required field.\n\t\"cost_basis\": 32,\n\t\"expedited_days_to_deliver\":null,\n\t\"expedited_shipping_price\":null,\n\t\"buy_one_get_one_price\":null,\n\t\"retail_price\":null,\n\t\"shipping_price\": 1,\n\t\"shipping_origin\": \"Aruba\",\n\t\"scheduling_fee_bid\":0,\n\t\"weight\":5,\n\t\"days_to_fulfill\":1,\n\t\"days_to_deliver\":4,\n\t\"primary_image\": \"\",\n\t\"extra_images\": \"\"\n}", "language": "json" } ] } [/block] If you do not specify this parameter, you will encounter: [block:code] { "codes": [ { "code": "{\n \"message\": \"Buy now price is not a number and Buy now price can't be blank\"\n}", "language": "json" } ] } [/block] **Addition:** In an effort to not disrupt listing creation processes via the API, we're going to auto-fill the Buy Now Price ("buy_now_price") field from the "cost_basis" field. We hope that it will give time to all of our partners on updating partner's API endpoint.
improved
http://merchant-api.tophatter.com/docs/product-create