Gett Developer Portal
  • Welcome
  • Distribution Partners
  • Brand Partners
  • Commerce Partners
  • Ecosystem Partners
  • Errors
  • API Reference
Documentation
  • Get Started
  • Marketfront SDK
  • API Reference
Resources
  • Payments
Company
  • Gett
  • Terms of Service
  • Privacy Policy

Copyright 2026 Gett. All rights reserved.

Information
Stores
    Discover StorespostGet Storeget
Catalog
    Get CatalogSetget
Orders
    Place orderpostValidate orderpost
Cart
    Add item to cartpostRemove item from cartpostUpdate item quantitypost
Schemas
powered by Zuplo
Gett Marketfront Partner API
Gett Marketfront Partner API

Cart

Optional stateless convenience endpoints that simplify common cart operations. These are pure functions — (existingCart, operation) → newCart — with no server-side state.

Why use them?

  • Accurate pricing using current CatalogSet prices
  • Modifier validation (required selections, limits)
  • Consistent cart structure ready for order validation

When to implement your own: If you need offline cart support, complex discount/promotion logic, custom persistence, or cart merging across sessions.

Partners can freely choose to use these helpers or implement equivalent logic themselves.


Add item to cart

POST
https://api.gett-tech.com
/v1/marketfront/carts/add

Stateless cart helper — Adds an item to a cart and returns the updated cart with recalculated totals.

This is a pure function: (existingCart, itemToAdd) → newCart

No server-side state — Partners manage their own cart state. This endpoint simply computes the result of adding an item, validating modifier requirements and calculating prices using the current CatalogSet.

Pass cart: null to create a new cart (provide catalogSetId in this case). For existing carts, pass the full cart object.

Optional — Partners can implement their own cart logic instead of using this helper.

Add item to cart › Request Body

Request body for `addCartItem`.
AddCartItemRequest
​LineItem · required

A line item in a shopping cart

​Cart

Shopping cart with line items. Carts are client-managed — there is no server-side cart storage.

catalogSetId
​null | string · uuid

Catalog set ID (required if cart is empty)

storeId
​null | string · uuid

Store ID (required if cart is empty)

Add item to cart › Responses

Updated cart with the item added and recalculated totals

Shopping cart with line items. Carts are client-managed — there is no server-side cart storage.
Cart
catalogSetId
​string · uuid · required

Catalog set identifier (canonical Guid).

​LineItem[] · required

Line items in the cart

storeId
​string · uuid · required

Store identifier (canonical Guid).

POST/v1/marketfront/carts/add
curl https://api.gett-tech.com/v1/marketfront/carts/add \ --request POST \ --header 'Content-Type: application/*+json' \ --header 'Authorization: Bearer <token>' \ --data '{ "cart": { "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }, "catalogSetId": "00000000-0000-0000-0000-000000000000", "item": { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 }, "storeId": "00000000-0000-0000-0000-000000000000" }'
Example Request Body
{ "cart": { "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }, "catalogSetId": "00000000-0000-0000-0000-000000000000", "item": { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 }, "storeId": "00000000-0000-0000-0000-000000000000" }
json
Example Responses
{ "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }
json
application/json

Remove item from cart

POST
https://api.gett-tech.com
/v1/marketfront/carts/remove

Stateless cart helper - Removes an item from a cart and returns the updated cart with recalculated totals.

This is a pure function: (existingCart, lineItemId) -> newCart

No server-side state - Partners manage their own cart state. This endpoint simply computes the result of removing an item.

Optional - Partners can implement their own cart logic instead of using this helper.

Remove item from cart › Request Body

Request body for `removeCartItem`.
RemoveCartItemRequest
​Cart · required

Shopping cart with line items. Carts are client-managed — there is no server-side cart storage.

lineItemId
​string · uuid · required

ID of the line item to remove

Remove item from cart › Responses

Updated cart with item removed and recalculated totals

Shopping cart with line items. Carts are client-managed — there is no server-side cart storage.
Cart
catalogSetId
​string · uuid · required

Catalog set identifier (canonical Guid).

​LineItem[] · required

Line items in the cart

storeId
​string · uuid · required

Store identifier (canonical Guid).

POST/v1/marketfront/carts/remove
curl https://api.gett-tech.com/v1/marketfront/carts/remove \ --request POST \ --header 'Content-Type: application/*+json' \ --header 'Authorization: Bearer <token>' \ --data '{ "cart": { "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }, "lineItemId": "00000000-0000-0000-0000-000000000000" }'
Example Request Body
{ "cart": { "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }, "lineItemId": "00000000-0000-0000-0000-000000000000" }
json
Example Responses
{ "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }
json
application/json

Update item quantity

POST
https://api.gett-tech.com
/v1/marketfront/carts/update

Stateless cart helper — Updates the quantity of an item in the cart and returns the updated cart with recalculated totals.

This is a pure function: (existingCart, lineItemId, newQuantity) → newCart

Setting quantity: 0 removes the item from the cart entirely.

No server-side state — Partners manage their own cart state.

Update item quantity › Request Body

Request body for `updateCartItem`.
UpdateCartItemRequest
​Cart · required

Shopping cart with line items. Carts are client-managed — there is no server-side cart storage.

lineItemId
​string · uuid · required

ID of the line item to update

quantity
​integer · int32 · required

New quantity (0 removes the item)

Update item quantity › Responses

Updated cart with modified quantity and recalculated totals

Shopping cart with line items. Carts are client-managed — there is no server-side cart storage.
Cart
catalogSetId
​string · uuid · required

Catalog set identifier (canonical Guid).

​LineItem[] · required

Line items in the cart

storeId
​string · uuid · required

Store identifier (canonical Guid).

POST/v1/marketfront/carts/update
curl https://api.gett-tech.com/v1/marketfront/carts/update \ --request POST \ --header 'Content-Type: application/*+json' \ --header 'Authorization: Bearer <token>' \ --data '{ "cart": { "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }, "lineItemId": "00000000-0000-0000-0000-000000000000", "quantity": 0 }'
Example Request Body
{ "cart": { "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }, "lineItemId": "00000000-0000-0000-0000-000000000000", "quantity": 0 }
json
Example Responses
{ "catalogSetId": "00000000-0000-0000-0000-000000000000", "lineItems": [ { "itemId": "00000000-0000-0000-0000-000000000000", "lineItemId": "00000000-0000-0000-0000-000000000000", "modifierGroups": [ { "lineItems": [ null ], "modifierGroupId": "00000000-0000-0000-0000-000000000000" } ], "quantity": 0 } ], "storeId": "00000000-0000-0000-0000-000000000000" }
json
application/json

Orders