Can I create a product using curl? and why do I keep getting {"name":"INVALID_REQUEST"...

Bencol3289
Contributor
Contributor

This is what I am using...

 

curl -v -X POST https://api-m.paypal.com/v1/catalogs/products \ -H "Content-Type: application/json" \ -H "Authorization: Bearer  <Access-Token>" \ -H "PayPal-Request-Id: PRODUCT-18062020-001" \ -d "{"name": "", "description": "", "type": "", "category": "", "image_url": "", "home_url": "" }"

 

This is what I keep getting?? why??

{"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violates schema.","debug_id":"1f2d7a6b83b06","details":[{"location":"body","issue":"MALFORMED_REQUEST_JSON","description":"The request JSON is not well formed."}],"links":[]}*

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.