GET api/getcart?refererId={refererId}

Process PSG Ecommerce External GetCart Request

Request Information

URI Parameters

NameDescriptionTypeAdditional information
refererId

string

Required

Body Parameters

None.

Response Information

Resource Description

ResultOfCart
NameDescriptionTypeAdditional 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>