GET api/Panier/{id}?user={user}
Return a panier with the given id
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Panier id |
integer |
Required |
| user |
User handle |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
panier
Panier| Name | Description | Type | Additional information |
|---|---|---|---|
| UserHandle |
Handle of the current user |
string |
None. |
| UserId |
Id of the current user |
decimal number |
None. |
| Errors | Collection of Error |
None. |
|
| IpAddress |
Client ip address |
string |
None. |
| Currency | string |
None. |
|
| Id |
Panier id. Use for adding, deleting items and updating panier |
integer |
None. |
| TransactionID |
Transaction id of the transaction that was created when the panier was confirmed. This is normally empty |
string |
None. |
| ModePaiementID | integer |
None. |
|
| OpState | byte |
None. |
|
| Total_HT |
Total price before tax for the panier. Readonly |
decimal number |
None. |
| Total_TTC |
Total price with tax. Readonly |
decimal number |
None. |
| Items |
The items contained in the panier |
Collection of Item |
None. |
Response Formats
application/json, text/json
{
"UserHandle": "AA111111",
"UserId": 11111.0,
"Errors": [],
"IpAddress": null,
"Currency": null,
"Id": 0,
"TransactionID": null,
"ModePaiementID": 3,
"OpState": 1,
"Total_HT": 10.0,
"Total_TTC": 12.0,
"Items": [
{
"Id": 0,
"ProduitID": 51,
"Period": 1.0,
"Quantity": 1,
"Pu": 10.0,
"Confirm": false,
"IsUpdate": false,
"NewQuantity": null,
"PeriodLeft": null,
"OldProduitID": null,
"OldPu": null,
"Total_HT": 0.0,
"Attributes": {
"domain": "adomain.com",
"ns1": "nx1",
"ns2": "nx2"
}
}
]
}
application/xml, text/xml
<Panier xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Namebay.Rest.Api.Models">
<Currency i:nil="true" />
<Errors />
<Id>0</Id>
<IpAddress i:nil="true" />
<Items>
<Item>
<Attributes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>domain</d4p1:Key>
<d4p1:Value>adomain.com</d4p1:Value>
</d4p1:KeyValueOfstringstring>
<d4p1:KeyValueOfstringstring>
<d4p1:Key>ns1</d4p1:Key>
<d4p1:Value>nx1</d4p1:Value>
</d4p1:KeyValueOfstringstring>
<d4p1:KeyValueOfstringstring>
<d4p1:Key>ns2</d4p1:Key>
<d4p1:Value>nx2</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</Attributes>
<Confirm>false</Confirm>
<Id>0</Id>
<IsUpdate>false</IsUpdate>
<NewQuantity i:nil="true" />
<OldProduitID i:nil="true" />
<OldPu i:nil="true" />
<Period>1</Period>
<PeriodLeft i:nil="true" />
<ProduitID>51</ProduitID>
<Pu>10</Pu>
<Quantity>1</Quantity>
<Total_HT>0</Total_HT>
</Item>
</Items>
<ModePaiementID>3</ModePaiementID>
<OpState>1</OpState>
<Total_HT>10</Total_HT>
<Total_TTC>12</Total_TTC>
<TransactionID i:nil="true" />
<UserHandle>AA111111</UserHandle>
<UserId>11111</UserId>
</Panier>