Skip to Content
0
Former Member
Apr 30, 2015 at 11:29 AM

Error while Creating order using cart

245 Views

Hi Experts,

I am able to create cnd add products to the cart using REST API (https://wiki.hybris.com/display/release5/API+Usage+Examples#APIUsageExamples-Carts,Cart,CartEntriesandCartEntryResources)

However when i try to create order using cart its giving following error.

Error creating resource with PUT cannot assign partOf item AbstractOrderEntry( calc=true product=Product '29925' (8796101935105) info=product "29925" with name "VCT-D580RM Remote Control Tripod" qtd=10 unit=Unit 'pieces' type 'pieces' (8796093054986) bp=115.0 total=1150.0 taxes=[] discounts=[] ) to testuser3@test.com0.3862228899290433(8796126969901) since it already belongs to testuser3@test.com0.3862228899290433(8796126773291) [ModelSavingException] cannot assign partOf item AbstractOrderEntry( calc=true product=Product '29925' (8796101935105) info=product "29925" with name "VCT-D580RM Remote Control Tripod" qtd=10 unit=Unit 'pieces' type 'pieces' (8796093054986) bp=115.0 total=1150.0 taxes=[] discounts=[] ) to testuser3@test.com0.3862228899290433(8796126969901) since it already belongs to testuser3@test.com0.3862228899290433(8796126773291) [JaloInvalidParameterException]

My cart entry is as follows link text

XML which i am posting to create order is link text

Thanks in advance.

Attachments