Skip to content

Instantly share code, notes, and snippets.

@mamund
Last active December 2, 2021 01:04
Show Gist options
  • Save mamund/dd04a43bb7820517439f6cf635ced958 to your computer and use it in GitHub Desktop.
Save mamund/dd04a43bb7820517439f6cf635ced958 to your computer and use it in GitHub Desktop.

Shopping API Modeled Resources

Book

Property Name Description
title The book title
isbn The unique ISBN of the book
authors List of Book Author resources

Cart

Property Name Description
cartItems The items currently in the cart for purchase
subtotal The total cost of all books in the cart
salesTax The sales tax to be applied
vatTax Any VAT tax to be applied
cartTotal The total cost of the cart

CartItem

Property Name Description
book The books currently in the cart for purchase
qty The quantity of the item in the cart (default 1)
unitPrice The unit price represented as a whole number. For example, $1.99 USD would be 199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment