Can I create a product using curl? and why do I keep getting {"name":"INVALID_REQUEST"...
Bencol3289
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jan-26-2022
11:53 PM
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":[]}*
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.
Related Content
- Cart dropps items, fails to return customer to previous window in PayPal Payments Standard
- When clicking on a payment button generates error: Unexpected token ... in PayPal Payments Standard
- What happened to PayPal Buttons?! in PayPal Payments Standard
- Recurring payments for cart with multiple individually subscribable items? in PayPal Payments Standard
- Authorization being forced prior to Paypal Button becoming available. in PayPal Payments Standard