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 API
Gett Marketfront 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/marketplace/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

Cart operation failed. The errorCode field identifies the specific issue (e.g. MISSING_STORE_ID, CATALOGSET_REQUIRED, INVALID_REQUEST).

RFC 9457 Problem Details for HTTP APIs. Standard error response format with operational extension members for deterministic retry/escalation decisions.
ProblemDetail
status
​integer · int32 · required

The HTTP status code.

title
​null | string · required

A short, human-readable summary of the problem type.

type
​null | string · required

A URI reference that identifies the problem type.

detail
​null | string

A human-readable explanation specific to this occurrence.

errorCategory
​null | string

Machine-readable error category (e.g. validation, rate_limit, payment, availability, server_error).

errorCode
​null | string

Machine-readable error code for domain-specific errors.

​null | array

Validation error details, when applicable.

instance
​null | string

A URI reference that identifies the specific occurrence.

requestId
​null | string

Unique identifier for this request, useful for support.

retryAfter
​null | integer · int32

Seconds to wait before retrying. Present when retryable is true and a wait period is known.

retryable
​null | boolean

Whether the request can be retried with a reasonable expectation of success.

timestamp
​null | string · date-time

When the error occurred.

traceId
​null | string

W3C trace id (32-hex) for this request. Paste into SigNoz trace search to find the distributed trace and correlated logs. Populated by the global exception filter.

POST/v1/marketplace/carts/add
curl --request POST \ --url https://api.gett-tech.com/v1/marketplace/carts/add \ --header 'Content-Type: application/*+json' \ --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
{ "detail": "detail", "errorCategory": "errorCategory", "errorCode": "errorCode", "errors": [ { "code": "code", "itemId": "itemId", "jsonPath": "jsonPath", "message": "message" } ], "instance": "instance", "requestId": "requestId", "retryAfter": 0, "retryable": true, "status": 0, "timestamp": "2024-08-25T15:00:00Z", "title": "title", "traceId": "traceId", "type": "type" }
json
application/problem+json

Remove item from cart

POST
https://api.gett-tech.com
/v1/marketplace/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).

​null | array · required

Line items in the cart

storeId
​string · uuid · required

Store identifier (canonical Guid).

POST/v1/marketplace/carts/remove
curl --request POST \ --url https://api.gett-tech.com/v1/marketplace/carts/remove \ --header 'Content-Type: application/*+json' \ --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/marketplace/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).

​null | array · required

Line items in the cart

storeId
​string · uuid · required

Store identifier (canonical Guid).

POST/v1/marketplace/carts/update
curl --request POST \ --url https://api.gett-tech.com/v1/marketplace/carts/update \ --header 'Content-Type: application/*+json' \ --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