OpenAPI documentation for Fluid's SDK API
OpenAPI documentation for Fluid's SDK API
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/address?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "type": "bill_to", "jwt": "eyJhbGciO1NiJ9.eyJhdXcyNjN9.AZ-4PAgFwVyGp", "address_id": 456, "address": { "id": 456, "first_name": "John", "last_name": "Doe", "address1": "123 Main St", "city": "Anytown", "state": "CA", "postal_code": "12345", "country_code": "US" } }'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/checkout?fluid_session=string&fluid_shop=string'
{ "order": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "phone": "string", "order_number": "string", "token": "string", "status": "string", "order_type": "string", "amount": "string", "refundable_amount": 0, "note": "string", "recurring": [ … ], "order_confirmation_url": "https://myco.fluid.app/pages/order-confirmation?token={order_token}", "currency_code": "string", "created_at": "string", "updated_at": "string", "metadata": {} }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "shop_url": "https://myco.fluid.app", "timestamp": "2021-01-01T00:00:00Z" } }
ISO country code to update the cart to
curl -i -X PATCH \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/update_country?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "country_code": "US" }'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/discount?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "discount_code": "string" }'
{ "error_message": "not found", "errors": { "property1": [ … ], "property2": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }
curl -i -X GET \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/enroll?fluid_session=string&fluid_shop=string&placement=pre_purchase'
{ "enroll": { "id": 1, "active": true, "default": false, "title": "Customer Details", "fields": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/enrollment?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "enrollment_pack_id": 0 }'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }
curl -i -X GET \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/cart_info?fluid_session=string&fluid_shop=string'
{ "languages": [ { … } ], "countries": [ { … } ] }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/items?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "items": [ { "variant_id": 0, "quantity": 0 } ] }'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
curl -i -X DELETE \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/items/{item_id}?fluid_session=string&fluid_shop=string'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/items/{item_id}/subscribe?fluid_session=string&fluid_shop=string&subscription_plan_id=0'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
curl -i -X DELETE \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/items/{item_id}/subscribe?fluid_session=string&fluid_shop=string'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
List of valid iso are at /api/public/v2025-06/commerce/carts/{cart_token}/cart_info
curl -i -X PATCH \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/change_language?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "language_iso": "en" }'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
curl -i -X DELETE \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/logout?fluid_session=string&fluid_shop=string'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/magic_link?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "email": "string", "fluid_shop": "string" }'
{ "multi_factor_authentication": { "uuid": "string", "authenticated": true, "verification_channel": "string", "verification_code_expires_at": "2019-08-24T14:15:22Z" }, "meta": { "request_id": "string", "timestamp": "2019-08-24T14:15:22Z" } }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/confirm_magic_link?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "uuid": "string", "multi_factor_authentication": { "verification_code": "string" } }'
{ "jwt": "string", "authenticated": true, "auth_type": "string", "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z" } }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/payment_methods/{type}?fluid_session=string&fluid_shop=string&jwt=string&payment_method_id=0' \ -H 'Content-Type: application/json' \ -d '{ "billing_postal_code": "123", "payment_method": { "token": "string", "last_four": "string", "card_type": "string", "exp_month": "string", "exp_year": "string" } }'
{ "card": { "user_id": "123", "spreedly_token": "01JKFTVM6Z44YFPSS9KK36KMSV", "full_name": "John Doe", "month": 3, "year": 2032, "number": "XXXX-XXXX-XXXX-4444", "last_four_digits": "4444", "first_six_digits": "555555", "card_type": "master", "address_id": "123", "fingerprint": "6eb05c4c7fc52fec38ef6e0651e8225be41c", "default": false, "active": true, "created_at": "2021-01-01T00:00:00Z", "updated_at": "2021-01-01T00:00:00Z", "fluid": true, "test": "true", "email": "john@example.com", "customer_id": "123", "fluid_pay_account_id": "123" } }
curl -i -X POST \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}/shipping_method?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "shipping_method_id": 10 }'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
Cart params
The domain of your Fluid shop (excluding the scheme)
curl -i -X POST \ https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts \ -H 'Content-Type: application/json' \ -H 'Cookie: string' \ -d '{ "country_code": "US", "fluid_shop": "myco.fluid.app", "fluid_session": "fs_szwdDuRbqEe7AV7sXk7vVq", "visitor_token": "vt_2a3v3f9s8xRCN", "items": [ { "variant_id": 90, "quantity": 2 } ], "attribution": { "email": "salesrep@example.com" } }'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
curl -i -X GET \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}?fluid_session=string&fluid_shop=string'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }
curl -i -X PATCH \ 'https://docs.fluid.app/_mock/docs/apis/public/api/public/v2025-06/commerce/carts/{cart_token}?fluid_session=string&fluid_shop=string' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com", "phone": "4035551212" }'
{ "cart": { "id": 123, "state": "start", "processed": false, "valid_for_checkout": true, "immutable_items": false, "digital_only": false, "buyer_rep_id": 1, "currency_symbol": "$", "currency_code": "USD", "shipping_total_for_display": "Free", "phone": "4035551212", "attribution": {}, "agreements": [ … ], "amount_total": "121.65", "amount_total_in_currency": "$121.65 (USD)", "sub_total": "100.00", "sub_total_in_currency": "$100.00 (USD)", "tax_total": "20.00", "tax_total_in_currency": "$20.00 (USD)", "shipping_total": "1.65", "shipping_total_in_currency": "$1.65 (USD)", "discount_total": "2.99", "discount_total_in_currency": "$2.99 (USD)", "transaction_fee": "1.90", "transaction_fee_in_currency": "$1.90 (USD)", "cv_total": 10, "qv_total": 15, "company": { … }, "payment_method": { … }, "email": "user@example.com", "enrollment_fee": "10.45", "enrollment_fee_in_currency": "$10.45", "discount_code": "DISCOUNT10", "language_iso": "en", "cart_token": "abc123", "items": [ … ], "ship_to": { … }, "bill_to": { … }, "shipping_method": { … }, "available_shipping_methods": [ … ], "available_payment_methods": [ … ], "country": { … }, "type": "regular", "enrollment_pack_id": 1, "enrollment_pack": { … }, "recurring": [ … ] }, "meta": { "request_id": "123e4567-e89b-12d3-a456-426614174000", "timestamp": "2021-01-01T00:00:00Z", "checkout_url": "https://checkout.fluid.com/checkout?jwt=abc123", "shop_url": "https://myco.fluid.app" } }