Forum Academy Marketplace Showcase Pricing Features

Square POS Post Request

I am working on Square POS api for creating catalog object, I have to create Post request like this format:
{
“idempotency_key”: “<idempotency_key>”,
“object”: {
“type”: “”,
“id”: “”
}
}

But it is giving me this kind of error message :
There was an issue setting up your call.

Raw response for the API
Status code 400
{“errors”:[{“category”:“INVALID_REQUEST_ERROR”,“code”:“INVALID_VALUE”,“detail”:“Object ID must be blank, start with ‘#’, or match an existing object: ID=“null”.”,“field”:“id”}]}

Please help me to solve it

Did you tried this api with api explorer

Like : https://developer.squareup.com/explorer/square/catalog-api/create-catalog-image

Yes That is true