POST api/getcartitems
Request Information
URI Parameters
None.
Body Parameters
CartName | Description | Type | Additional information |
---|---|---|---|
Items | Collection of CartItem |
None. |
|
Coupon | string |
None. |
|
Referer | string |
None. |
|
IsReviewCart | boolean |
None. |
|
CartId | integer |
None. |
|
RestMethod | string |
None. |
|
Method | string |
None. |
|
Url | string |
None. |
|
Authentication | string |
None. |
|
Body | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Items": [ { "Isbn": "sample string 1", "Quantity": 2, "ItemId": 3.1, "BookCode": "sample string 4" }, { "Isbn": "sample string 1", "Quantity": 2, "ItemId": 3.1, "BookCode": "sample string 4" } ], "Coupon": "sample string 1", "Referer": "sample string 2", "IsReviewCart": true, "CartId": 4, "RestMethod": "sample string 5", "Method": "sample string 6", "Url": "sample string 7", "Authentication": "sample string 8", "Body": "sample string 9" }
application/xml, text/xml
Sample:
<Cart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PSG_API.Model.Models"> <Authentication>sample string 8</Authentication> <Body>sample string 9</Body> <Method>sample string 6</Method> <RestMethod>sample string 5</RestMethod> <Url>sample string 7</Url> <CartId>4</CartId> <Coupon>sample string 1</Coupon> <IsReviewCart>true</IsReviewCart> <Items> <CartItem> <BookCode>sample string 4</BookCode> <Isbn>sample string 1</Isbn> <ItemId>3.1</ItemId> <Quantity>2</Quantity> </CartItem> <CartItem> <BookCode>sample string 4</BookCode> <Isbn>sample string 1</Isbn> <ItemId>3.1</ItemId> <Quantity>2</Quantity> </CartItem> </Items> <Referer>sample string 2</Referer> </Cart>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultOfCartName | Description | Type | Additional information |
---|---|---|---|
Error | boolean |
None. |
|
Ok | boolean |
None. |
|
Errors | Collection of Error |
None. |
|
Data | Cart |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Error": true, "Ok": false, "Errors": [ { "Id": "sample string 1", "Entity": "sample string 2", "Message": "sample string 3" }, { "Id": "sample string 1", "Entity": "sample string 2", "Message": "sample string 3" } ], "Data": { "Items": [ { "Isbn": "sample string 1", "Quantity": 2, "ItemId": 3.1, "BookCode": "sample string 4" }, { "Isbn": "sample string 1", "Quantity": 2, "ItemId": 3.1, "BookCode": "sample string 4" } ], "Coupon": "sample string 1", "Referer": "sample string 2", "IsReviewCart": true, "CartId": 4, "RestMethod": "sample string 5", "Method": "sample string 6", "Url": "sample string 7", "Authentication": "sample string 8", "Body": "sample string 9" }, "Message": "sample string 3,sample string 3" }
application/xml, text/xml
Sample:
<ResultOfCart8_PrHgMTv xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/jblCommonUtilities.SharedModels"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/PSG_API.Model.Models"> <d2p1:Authentication>sample string 8</d2p1:Authentication> <d2p1:Body>sample string 9</d2p1:Body> <d2p1:Method>sample string 6</d2p1:Method> <d2p1:RestMethod>sample string 5</d2p1:RestMethod> <d2p1:Url>sample string 7</d2p1:Url> <d2p1:CartId>4</d2p1:CartId> <d2p1:Coupon>sample string 1</d2p1:Coupon> <d2p1:IsReviewCart>true</d2p1:IsReviewCart> <d2p1:Items> <d2p1:CartItem> <d2p1:BookCode>sample string 4</d2p1:BookCode> <d2p1:Isbn>sample string 1</d2p1:Isbn> <d2p1:ItemId>3.1</d2p1:ItemId> <d2p1:Quantity>2</d2p1:Quantity> </d2p1:CartItem> <d2p1:CartItem> <d2p1:BookCode>sample string 4</d2p1:BookCode> <d2p1:Isbn>sample string 1</d2p1:Isbn> <d2p1:ItemId>3.1</d2p1:ItemId> <d2p1:Quantity>2</d2p1:Quantity> </d2p1:CartItem> </d2p1:Items> <d2p1:Referer>sample string 2</d2p1:Referer> </Data> <Error>true</Error> <Errors> <Error> <Entity>sample string 2</Entity> <Id>sample string 1</Id> <Message>sample string 3</Message> </Error> <Error> <Entity>sample string 2</Entity> <Id>sample string 1</Id> <Message>sample string 3</Message> </Error> </Errors> <Message>sample string 3,sample string 3</Message> <Ok>false</Ok> </ResultOfCart8_PrHgMTv>