Request Data Format | application/json |
---|---|
Request related java object | com.intershop.sellside.rest.common.capi.resource.OrderListResource com.intershop.sellside.rest.common.capi.resourceobject.OrderDescriptionRO |
Request Example | Simple order creation { "basketID": "mwnAqMgoQWUAAAE8irJXwIE5", "acceptTermsAndConditions": "true" } Advanced order creation with additional parameters. If the payment method is Credit Credit and a Credit Card Security Code has to be used this code has to be added here: { "basketID": "BUcKAB1773oAAAFG1fwnP90u", "acceptTermsAndConditions": "true", "paymentInformations" : { "parameters": [ { "key":"simpleCC", "property":"123" } ] } } |
Response Data Format | application/json |
Response related java object | com.intershop.sellside.rest.common.capi.resource.OrderListResource com.intershop.sellside.rest.common.capi.resourceobject.OrderDescriptionRO com.intershop.component.rest.capi.resourceobject.LinkRO |
Response Example | Successful order creation { "name": "ConfirmedOrder", "type": "Link", "uri": "PrimeTech-PrimeTechSpecials-Site/-/orders/mwnAqMgoQWUAAAE8irJXwIE5" } Create order failed due to an non-existing basket.
Bad Request (No basket found for the given ID.) Create order failed due to an existing but invalid basket.
{ "type": "OrderValidation", "errorMessage": "The basket contains invalid invoice address.", "validOrder": false, "basketLink": { "type": "Link", "uri": "PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/baskets/EaYKAM6kcBYAAAFG2us4qPtK", "title": "BasketLink" } } |
XML Request Data Format | text/xml |
---|---|
XML Request Java Objects | com.intershop.sellside.rest.common.capi.resource.OrderListResource com.intershop.sellside.rest.common.capi.resourceobject.OrderDescriptionRO |
XML Request Example | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <OrderDescription> <acceptTermsAndConditions>true</acceptTermsAndConditions> <basketID>mwnAqMgoQWUAAAE8irJXwIE5</basketID> </OrderDescription> |
XML Response Data Format | text/xml |
XML Response Java Objects | com.intershop.sellside.rest.common.capi.resource.OrderListResource com.intershop.sellside.rest.common.capi.resourceobject.OrderDescriptionRO com.intershop.component.rest.capi.resourceobject.LinkRO |
XML Response Example | Successful order creation <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Link name="ConfirmedOrder" type="Link"> <uri>PrimeTech-PrimeTechSpecials-Site/-/orders/mwnAqMgoQWUAAAE8irJXwIE5</uri> </Link> Create order failed due to an non-existing basket.
Bad Request (No basket found for the given ID.) Create order failed due to an existing but invalid basket.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <OrderValidation type="OrderValidation"> <basketLink type="Link"> <title>BasketLink</title> <uri>PrimeTech-PrimeTechSpecials-Site/b2c-web-shop/baskets/EaYKAM6kcBYAAAFG2us4qPtK</uri> </basketLink> <errorMessage>The basket contains invalid invoice address.</errorMessage> <validOrder>false</validOrder> </OrderValidation> |
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.