Search…
Cart
Details of the VendorFuel API Cart service.

Properties

Bolded properties are currently used in templates.
Property
Type
Details
county
details
null
item_count
number
Total number of product within the cart.
(Example: if there are 3 each of 2 products, the number will be 6)
items
array
Products within the cart.
(Example: if there are 3 each of 2 products, the number will be 2)
paymentMethod
sandboxEnabled
Boolean
selectedShipping
object
Selected shipping method.
shipping_methods
null
squareUpAppID
null
squareUpPaymentForm
null
user
object
User service.
zipCode
string

Methods

Bolded methods are currently used in templates.
Method
Params
Details
add
productId
qty
Adds an item to the cart.
addBySku
sku
qty
Adds an item to the cart based on the SKU, rather than product ID.
addItems
products
Adds multiple items to the cart.
promoCode
Applies a promo code to the cart.
authorizeCard
checkout
paypal
return_url
cancel_url
shipping_id
clear
Clears the cart.
clearShipping
params
confirmPaypalOrder
checkout_info
checkout_info
savedCartId
Deletes a saved cart.
Gets the cart details.
getAuthnetPaymentFormTemplate
Returns URL for Authnet Payment Form template.
getQty
productId
Gets the quantity of an item in the cart.
getPaymentMethod
Returns payment method.
getShippingMethodID
Returns the selected shipping method ID.
getSaved
savedCartId
Get a saved cart.
Gets a list of the user's saved carts.
Last modified 1yr ago
Copy link