create an order using Order API and Postman returns 500
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2024 11:03 PM
Hi Everyone, I created a product offering, specification and everything that relates to product offerings. But when I try to order the product offering that I newly publish using Order API /api/sn_csm_order_mgmt/order, I am recieving a 500 Internal Server Error. What is wrong with my request, is there something wrong with the product offering that I newly created?
This is the body of my post request.
{
"account": "c480021553ab70101aaeddeeff7b120f",
"contact":"96d0461553ab70101aaeddeeff7b120b",
"order_currency": "USD",
"comments": "sinble product",
"short_description": "testing order of the new product that i added",
"order_line_items": [
{
"account": "c480021553ab70101aaeddeeff7b120f",
"action": "add",
"contact": "96d0461553ab70101aaeddeeff7b120b",
"product_offering": "7aeddd2297040210d7feb6fce053aff5",
"quantity": "1",
"shipping_city": "Santa Clara",
"shipping_country": "USA",
"shipping_state": "CA",
"shipping_street": "222 Star St",
"shipping_zip": "94560",
"state": "draft",
"status": "new",
"unit_of_measurement": "cb2795d553020110286eddeeff7b12ff",
"unit_price": "2000"
}
]
}
and the result that I am recieving is this.
{
"error": {
"message": "Malformed request.",
"detail": "Invalid reference or missing access permission: unit_of_measurement = cb2795d553020110286eddeeff7b12ff."
},
"status": "failure"
}
Can you please help me?
Thank you
0 REPLIES 0