DEVCENTERPIECE Posted March 4 Share Posted March 4 I am developing in c# a service that creates a product on square space. I followed the instructions in the API documentarion and have the correct access keys. https://developers.squarespace.com/commerce-apis/create-product When posting the request to create the producto I receive "400 Bad Request" as a response. I have checked the json content multiple times and found no error. How can I find what is wrong with my request? Can you help me please? Link to comment
DEVCENTERPIECE Posted March 4 Author Share Posted March 4 2 minutes ago, DEVCENTERPIECE said: I am developing in c# a service that creates a product on square space. I followed the instructions in the API documentarion and have the correct access keys. https://developers.squarespace.com/commerce-apis/create-product When posting the request to create the producto I receive "400 Bad Request" as a response. I have checked the json content multiple times and found no error. How can I find what is wrong with my request? Can you help me please? This is the Jason content: {"type":"PHYSICAL","storePageId":"63e4311917d6024df8e62836","name":"ARBOL DE ACACIA","description":"<p>Descripcion del producto Acacia<\/p>","urlSlug":"arboles-y-palmeras-con-flor-de-sol-arbol-de-acacia","tags":[],"variantAttributes":["COLOR","Tamaño"],"isVisible":true,"variants":[{"sku":"ACBAIAP60","pricing":{"basePrice":{"currency":"MXN","value":1600.000000},"onSale":true,"salePrice":{"currency":"MXN","value":1600.000000}},"stock":{"quantity":0.0000,"unlimited":false},"attributes":{"Tamaño":"Mediano","COLOR":"GRIS"},"shippingMeasurements":{"weight":{"unit":"GRAMS","value":0},"dimensions":{"unit":"CENTIMETER","length":0,"width":0,"height":0}}},{"sku":"ACADOLARB90","pricing":{"basePrice":{"currency":"MXN","value":9500.000000},"onSale":true,"salePrice":{"currency":"MXN","value":9500.000000}},"stock":{"quantity":0.0000,"unlimited":false},"attributes":{"Tamaño":"Grande","COLOR":"DOLAR"},"shippingMeasurements":{"weight":{"unit":"GRAMS","value":0},"dimensions":{"unit":"CENTIMETER","length":0,"width":0,"height":0}}}]} Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment