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.
​addPromoCode​
promoCode
Applies a promo code to the cart.
authorizeCard
​
​
​checkout​
paypal
return_url
cancel_url
shipping_id
​
​clear​
​
Clears the cart.
clearShipping
​
​
​completeOrder​
params
​
confirmPaypalOrder
checkout_info
​
​confirmOrder​
checkout_info
​
​deleteSaved​
savedCartId
Deletes a saved cart.
​fillDetails​
​
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.
​getSavedList​
​
Gets a list of the user's saved carts.
Last modified 1yr ago
Copy link