get_basket

Description

get a list of basket items.

:!: The server doesn't return a gross_coupon property but does return a gross_coupon_basket and gross_coupon_shipping property. It's not clear to me if the server or this spec is correct.

Definition

get_basket (
    String token
)

Parameters

Type Parameter Name Parameter Description
string token session token

Return Values

FIXME This table doesn't convey the nested basketitem array elements very well.

The return value is a scalar that contains the following:

Type Return Value Name Return Value Description
decimal gross_basket basket merchandise value
decimal gross_shipping shipping costs
decimal gross_handling handling costs
decimal gross_discount discount
decimal gross_coupon coupon value
decimal gross_total basket total
decimal vat_basket basket vat
decimal vat_total total vat
decimal currency basket currency
array basketitem list of basketitems
basketitem array elements
Type basketitem element name basketitem element description
intbasketitem_idbasket item ID
intarticle_idarticle ID
intquantitynumber of articles to store in basket
intshop_idshop ID
intproducttype_idproduct type ID
intproducttype_sizesize of articles to store in basket
intproducttype_colorcolour of articles to store in basket
decimalgrossarticle's price
intvatarticle vat
stringnamearticle name
stringdescriptionarticle description
stringimage_urlarticle default image URL

Error Messages

The return string is a standard format error string and implements all standard error and success messages. The following SOAP exceptions represent specific error codes for this method:

  • 101: missing token
  • 201: empty result set
api/get_basket.txt · Last modified: 2009/05/31 17:29 (external edit)
 
Recent changes RSS feed Driven by DokuWiki