Jump to content

CREATE PRODUCTS WITH API

Recommended Posts

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
  • Replies 2
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.