Carts
Apply a promo code to the cart
Applies a promo discount code to the cart and recalculates totals.
POST
/
api
/
public
/
v2025-06
/
commerce
/
carts
/
{cart_token}
/
discount
Apply a promo code to the cart
curl --request POST \
--url https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount \
--header 'Content-Type: application/json' \
--data '
{
"discount_code": "SCRANTON10"
}
'import requests
url = "https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount"
payload = { "discount_code": "SCRANTON10" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({discount_code: 'SCRANTON10'})
};
fetch('https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'discount_code' => 'SCRANTON10'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount"
payload := strings.NewReader("{\n \"discount_code\": \"SCRANTON10\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount")
.header("Content-Type", "application/json")
.body("{\n \"discount_code\": \"SCRANTON10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"discount_code\": \"SCRANTON10\"\n}"
response = http.request(request)
puts response.read_body{
"cart": {
"id": 48213,
"cart_token": "ct_7Hk2mQx9vRbT3nWz8LpYc4",
"state": "start",
"state_revision": 6,
"population_status": "complete",
"email": "holly.flax@dundermifflin.com",
"phone": "+15705550142",
"language_iso": "en",
"currency_code": "USD",
"currency_symbol": "$",
"currency_decimal_places": 2,
"enrollment": false,
"buyer_rep_id": 5521,
"customer_id": 30417,
"enrollment_pack_id": null,
"email_marketing": false,
"sms_marketing": false,
"auto_apply_points": false,
"processed": false,
"valid_for_checkout": false,
"valid_for_checkout_pre_payment": true,
"checkout_blockers": [],
"contains_subscription": false,
"requires_payment_method": true,
"digital_only": false,
"points_enabled": false,
"cv_total": "109.98",
"qv_total": "109.98",
"amount_total": 114.87,
"amount_total_in_currency": "$114.87",
"sub_total": 109.98,
"sub_total_in_currency": "$109.98",
"tax_total": 5.94,
"tax_total_in_currency": "$5.94",
"shipping_total": 9.95,
"shipping_total_in_currency": "$9.95",
"discount_total": 11,
"discount_total_in_currency": "$11.00",
"subtotal_after_discounts": 98.98,
"subtotal_after_discounts_in_currency": "$98.98",
"price_inclusive_of_tax": false,
"price_inclusive_tax_name": null,
"totals": {
"gross_subtotal": "109.98",
"gross_subtotal_in_currency": "$109.98",
"net_subtotal": "109.98",
"net_subtotal_in_currency": "$109.98",
"item_tax": "0.00",
"item_tax_in_currency": "$0.00",
"shipping_net": "9.95",
"shipping_net_in_currency": "$9.95",
"shipping_tax": "0.00",
"shipping_tax_in_currency": "$0.00",
"total_tax": "5.94",
"total_tax_in_currency": "$5.94",
"price_inclusive_of_tax": false,
"tax_label": null
},
"discount_codes": [
"SCRANTON10"
],
"buyer_rep": {
"id": 5521,
"email": "dwight.schrute@dundermifflin.com",
"full_name": "Dwight Schrute",
"image_url": "https://cdn.fluid.app/dunder-mifflin/avatars/dwight-schrute.jpg",
"external_id": "DM-REP-0042"
},
"buyer_rep_member_id": "5f2c9a1e-7b3d-4e8a-a6c2-91d04e7f3b28",
"available_shipping_methods": [
{
"id": 311,
"title": "Standard Ground",
"price": 9.95,
"delivery_time_estimate": "3-5 business days",
"price_label": null
},
{
"id": 312,
"title": "Two-Day Express",
"price": 19.95,
"delivery_time_estimate": "2 business days",
"price_label": null
}
],
"shipping_method": {
"id": "311",
"name": "Standard Ground"
},
"items": [
{
"id": 91547,
"title": "Dunder Mifflin 20lb Copy Paper",
"product_title": "Dunder Mifflin 20lb Copy Paper",
"quantity": 2,
"price": "54.99",
"price_in_currency": "$54.99",
"discount_amount": "0.0",
"discount_amount_in_currency": "$0.00",
"tax": "6.60",
"tax_in_currency": "$6.60",
"cv": "54.99",
"qv": "54.99",
"cv_total": "109.98",
"qv_total": "109.98",
"total": "109.98",
"total_in_currency": "$109.98",
"line_total_in_currency": "$109.98",
"regular_line_total_in_currency": "$109.98",
"enrollment_pack_id": null,
"subscription": false,
"subscription_plan_id": null,
"display_to_customer": true,
"image_url": "https://cdn.fluid.app/dunder-mifflin/products/20lb-copy-paper.jpg",
"free_item": false,
"allow_subscription": true,
"enrollment": false,
"errors": [],
"variant": {
"id": 70412,
"title": "Case of 10 reams",
"sku": "DM-20LB-CASE",
"price": "54.99",
"price_in_currency": "$54.99",
"currency_code": "USD",
"options": [
{
"title": "Pack size",
"value": "Case of 10 reams"
}
],
"physical": true
}
}
],
"ship_to": {
"id": 66120,
"name": "Holly Flax",
"address1": "221 Lackawanna Avenue",
"address2": "Apt 4B",
"city": "Scranton",
"state": "PA",
"subdivision_code": "PA",
"postal_code": "18503",
"country_code": "US",
"phone": "+15705550142",
"country_num_code": 840,
"default": true
},
"country": {
"id": 214,
"name": "United States",
"iso": "US",
"iso_name": "UNITED STATES",
"iso3": "USA",
"currency_code": "USD",
"currency_symbol": "$",
"province_required": true,
"tax_enabled": true,
"price_inclusive_of_tax": false,
"price_inclusive_tax_name": null,
"tax_standard_rate": null
},
"company": {
"id": 1405,
"name": "Dunder Mifflin Paper Company",
"subdomain": "dunder-mifflin",
"fluid_shop": "dunder-mifflin.fluid.app",
"primary_domain_hostname": "shop.dundermifflin.com",
"logo_url": "https://cdn.fluid.app/dunder-mifflin/brand/logo.png",
"favicon_url": "https://cdn.fluid.app/dunder-mifflin/brand/favicon.png",
"collect_phone": true,
"require_phone": false,
"require_billing_zip": true,
"order_on_behalf": false,
"reward_points_enabled": false,
"collect_sms_marketing": true,
"collect_email_marketing": true,
"bundle_subscriptions": false,
"hide_volume_on_customer_surfaces": true,
"isolated_payment_tokens": false,
"kount_environment": "production",
"kount_client_id": null
},
"recurring": []
},
"meta": {
"request_id": "c41e7a90-3b5d-4f28-9e61-8d2a0b7f5c13",
"timestamp": "2026-09-17T14:22:08Z",
"checkout_url": "https://checkout.fluid.app/checkouts/ct_7Hk2mQx9vRbT3nWz8LpYc4",
"shop_url": "https://shop.dundermifflin.com"
}
}{
"error_message": "<string>",
"errors": {},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "payment_in_progress",
"shop_url": "<string>",
"cart": {
"enrollment": true,
"id": 123,
"cart_token": "<string>",
"state": "<string>",
"state_revision": 1,
"population_status": "pending",
"email": "<string>",
"phone": "<string>",
"language_iso": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"currency_decimal_places": 123,
"type": "<string>",
"buyer_rep_id": 123,
"customer_id": 123,
"enrollment_pack_id": 123,
"enrollment_member_type": {
"id": "22c58158-7f6c-4f33-a033-32e259941684",
"slug": "rep",
"name": "Representative"
},
"email_marketing": true,
"sms_marketing": true,
"auto_apply_points": true,
"processed": true,
"payment_in_progress": true,
"payment_resume_url": "<string>",
"valid_for_checkout": true,
"valid_for_checkout_pre_payment": true,
"checkout_blockers": [
{
"code": "<string>",
"message": "<string>"
}
],
"contains_subscription": true,
"vault_without_charge": true,
"payment_method_auto_assignable": true,
"requires_payment_method": true,
"requires_3ds": true,
"immutable_items": true,
"digital_only": true,
"points_enabled": true,
"messages": {},
"metadata": {},
"cv_total": "<string>",
"qv_total": "<string>",
"amount_total": 123,
"amount_total_in_currency": "<string>",
"sub_total": 123,
"sub_total_in_currency": "<string>",
"tax_total": 123,
"tax_exempt": true,
"tax_total_in_currency": "<string>",
"tax_total_for_display": "<string>",
"inclusive_shipping_tax": 123,
"shipping_total": 123,
"shipping_total_in_currency": "<string>",
"shipping_total_for_display": "<string>",
"discount_total": 123,
"discount_total_in_currency": "<string>",
"subtotal_after_discounts": 123,
"subtotal_after_discounts_in_currency": "<string>",
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"totals": {
"gross_subtotal": "<string>",
"gross_subtotal_in_currency": "<string>",
"net_subtotal": "<string>",
"net_subtotal_in_currency": "<string>",
"item_tax": "<string>",
"item_tax_in_currency": "<string>",
"shipping_net": "<string>",
"shipping_net_in_currency": "<string>",
"shipping_tax": "<string>",
"shipping_tax_in_currency": "<string>",
"total_tax": "<string>",
"total_tax_in_currency": "<string>",
"price_inclusive_of_tax": true,
"tax_label": "<string>"
},
"enrollment_fee": 123,
"enrollment_fee_in_currency": "<string>",
"transaction_fee": 123,
"transaction_fee_in_currency": "<string>",
"shipping_discount": 123,
"discount_codes": [
"<string>"
],
"product_discount_codes": [
"<string>"
],
"shipping_discount_codes": [
"<string>"
],
"customer_total_points": 123,
"customer_total_points_in_currency": "<string>",
"points_applied": 123,
"points_applied_amount_in_currency": "<string>",
"remaining_customer_points": 123,
"remaining_customer_points_amount_in_currency": "<string>",
"remaining_cart_amount_after_points": 123,
"remaining_cart_amount_after_points_in_currency": "<string>",
"max_applicable_points": 123,
"total_creditable_points": 123,
"shipping_address": {},
"billing_address": {},
"discount_breakdown": {
"internal_discounts": 123,
"external_discounts": 123,
"total_discounts": 123
},
"external_discount": {},
"buyer_rep": {
"id": 123,
"email": "<string>",
"full_name": "<string>",
"image_url": "<string>",
"external_id": "<string>"
},
"buyer_rep_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"volume_rep": {
"id": 123,
"email": "<string>",
"full_name": "<string>",
"image_url": "<string>"
},
"volume_rep_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"available_shipping_methods": [
{
"id": "<string>",
"title": "<string>",
"price": 123,
"delivery_time_estimate": "<string>",
"price_label": "<string>"
}
],
"available_payment_methods": [
{}
],
"payment_unavailable_reason": "no_gateway_for_country",
"payment_account": {},
"shipping_method": {
"id": "<string>",
"name": "<string>"
},
"payment_method": {},
"items": [
{
"id": 123,
"title": "<string>",
"quantity": 123,
"price": "<string>",
"price_in_currency": "<string>",
"discount_amount": "<string>",
"discount_amount_in_currency": "<string>",
"tax": "<string>",
"tax_in_currency": "<string>",
"cv": "<string>",
"qv": "<string>",
"cv_total": "<string>",
"qv_total": "<string>",
"total": "<string>",
"total_in_currency": "<string>",
"line_total_in_currency": "<string>",
"total_after_discounts": "<string>",
"total_after_discounts_in_currency": "<string>",
"line_total_after_discounts_in_currency": "<string>",
"regular_line_total_in_currency": "<string>",
"unit_price_display_authoritative": true,
"enrollment_pack_id": 123,
"subscription": true,
"subscription_plan_id": 123,
"subscription_plans": [
{}
],
"subscription_only": true,
"subscription_interval": 123,
"subscription_interval_unit": "<string>",
"subscription_interval_unit_identifier": "<string>",
"subscription_price": "<string>",
"subscription_price_in_currency": "<string>",
"subscription_start": "<string>",
"subscribe_and_save": "<string>",
"subscribe_and_save_in_currency": "<string>",
"subscribe_and_save_for_display": "<string>",
"display_to_customer": true,
"metadata": {},
"image_url": "<string>",
"free_item": true,
"allow_subscription": true,
"enrollment": true,
"errors": [
"<string>"
],
"creditable_points": 123,
"product": {},
"variant": {
"id": 123,
"title": "<string>",
"display_name": "<string>",
"image_url": "<string>",
"image_path": "<string>",
"sku": "<string>",
"primary_image": "<string>",
"price": 123,
"price_in_currency": "<string>",
"currency_code": "<string>",
"options": [
{
"title": "<string>",
"value": "<string>"
}
],
"physical": true,
"unit_of_size": "<string>",
"height": 123,
"width": 123,
"length": 123,
"unit_of_weight": "<string>",
"weight": "<string>",
"hs_code": "<string>"
},
"bundled_items": [
{}
],
"product_title": "<string>"
}
],
"ship_to": {
"id": 123,
"name": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"city": "<string>",
"state": "<string>",
"subdivision_code": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"phone": "<string>",
"country_num_code": 123,
"default": true
},
"bill_to": {},
"attribution": {},
"agreements": [
{
"id": 123,
"title": "<string>",
"show_at_checkout": true,
"default_checked": true,
"subscription_only": true,
"standalone_on_checkout": true,
"show_path": "<string>",
"enrollment_pack_id": 123,
"required": true
}
],
"country": {
"id": 123,
"name": "<string>",
"iso": "<string>",
"iso_name": "<string>",
"iso3": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"province_required": true,
"tax_enabled": true,
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"tax_standard_rate": 123
},
"company": {
"id": 123,
"name": "<string>",
"favicon_url": "<string>",
"primary_domain_hostname": "<string>",
"subdomain": "<string>",
"logo_url": "<string>",
"fluid_shop": "<string>",
"collect_phone": true,
"require_phone": true,
"require_billing_zip": true,
"checkout_primary_button_color": "<string>",
"checkout_primary_text_color": "<string>",
"checkout_secondary_button_color": "<string>",
"checkout_secondary_text_color": "<string>",
"order_on_behalf": true,
"reward_points_enabled": true,
"reward_points_apply_to_subtotal": true,
"reward_points_label_singular": "<string>",
"reward_points_label_plural": "<string>",
"collect_sms_marketing": true,
"collect_email_marketing": true,
"bundle_subscriptions": true,
"hide_volume_on_customer_surfaces": true,
"isolated_payment_tokens": true,
"kount_environment": "sandbox",
"kount_client_id": "150953359757648"
},
"enrollment_pack": {},
"recurring": [
{
"subtotal": 123,
"subtotal_in_currency": "<string>",
"interval": 123,
"interval_unit": "<string>",
"interval_unit_identifier": "day",
"subtotal_for_display": "<string>",
"start_date": "<string>"
}
]
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"shop_url": "<string>",
"cart": {
"enrollment": true,
"id": 123,
"cart_token": "<string>",
"state": "<string>",
"state_revision": 1,
"population_status": "pending",
"email": "<string>",
"phone": "<string>",
"language_iso": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"currency_decimal_places": 123,
"type": "<string>",
"buyer_rep_id": 123,
"customer_id": 123,
"enrollment_pack_id": 123,
"enrollment_member_type": {
"id": "22c58158-7f6c-4f33-a033-32e259941684",
"slug": "rep",
"name": "Representative"
},
"email_marketing": true,
"sms_marketing": true,
"auto_apply_points": true,
"processed": true,
"payment_in_progress": true,
"payment_resume_url": "<string>",
"valid_for_checkout": true,
"valid_for_checkout_pre_payment": true,
"checkout_blockers": [
{
"code": "<string>",
"message": "<string>"
}
],
"contains_subscription": true,
"vault_without_charge": true,
"payment_method_auto_assignable": true,
"requires_payment_method": true,
"requires_3ds": true,
"immutable_items": true,
"digital_only": true,
"points_enabled": true,
"messages": {},
"metadata": {},
"cv_total": "<string>",
"qv_total": "<string>",
"amount_total": 123,
"amount_total_in_currency": "<string>",
"sub_total": 123,
"sub_total_in_currency": "<string>",
"tax_total": 123,
"tax_exempt": true,
"tax_total_in_currency": "<string>",
"tax_total_for_display": "<string>",
"inclusive_shipping_tax": 123,
"shipping_total": 123,
"shipping_total_in_currency": "<string>",
"shipping_total_for_display": "<string>",
"discount_total": 123,
"discount_total_in_currency": "<string>",
"subtotal_after_discounts": 123,
"subtotal_after_discounts_in_currency": "<string>",
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"totals": {
"gross_subtotal": "<string>",
"gross_subtotal_in_currency": "<string>",
"net_subtotal": "<string>",
"net_subtotal_in_currency": "<string>",
"item_tax": "<string>",
"item_tax_in_currency": "<string>",
"shipping_net": "<string>",
"shipping_net_in_currency": "<string>",
"shipping_tax": "<string>",
"shipping_tax_in_currency": "<string>",
"total_tax": "<string>",
"total_tax_in_currency": "<string>",
"price_inclusive_of_tax": true,
"tax_label": "<string>"
},
"enrollment_fee": 123,
"enrollment_fee_in_currency": "<string>",
"transaction_fee": 123,
"transaction_fee_in_currency": "<string>",
"shipping_discount": 123,
"discount_codes": [
"<string>"
],
"product_discount_codes": [
"<string>"
],
"shipping_discount_codes": [
"<string>"
],
"customer_total_points": 123,
"customer_total_points_in_currency": "<string>",
"points_applied": 123,
"points_applied_amount_in_currency": "<string>",
"remaining_customer_points": 123,
"remaining_customer_points_amount_in_currency": "<string>",
"remaining_cart_amount_after_points": 123,
"remaining_cart_amount_after_points_in_currency": "<string>",
"max_applicable_points": 123,
"total_creditable_points": 123,
"shipping_address": {},
"billing_address": {},
"discount_breakdown": {
"internal_discounts": 123,
"external_discounts": 123,
"total_discounts": 123
},
"external_discount": {},
"buyer_rep": {
"id": 123,
"email": "<string>",
"full_name": "<string>",
"image_url": "<string>",
"external_id": "<string>"
},
"buyer_rep_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"volume_rep": {
"id": 123,
"email": "<string>",
"full_name": "<string>",
"image_url": "<string>"
},
"volume_rep_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"available_shipping_methods": [
{
"id": "<string>",
"title": "<string>",
"price": 123,
"delivery_time_estimate": "<string>",
"price_label": "<string>"
}
],
"available_payment_methods": [
{}
],
"payment_unavailable_reason": "no_gateway_for_country",
"payment_account": {},
"shipping_method": {
"id": "<string>",
"name": "<string>"
},
"payment_method": {},
"items": [
{
"id": 123,
"title": "<string>",
"quantity": 123,
"price": "<string>",
"price_in_currency": "<string>",
"discount_amount": "<string>",
"discount_amount_in_currency": "<string>",
"tax": "<string>",
"tax_in_currency": "<string>",
"cv": "<string>",
"qv": "<string>",
"cv_total": "<string>",
"qv_total": "<string>",
"total": "<string>",
"total_in_currency": "<string>",
"line_total_in_currency": "<string>",
"total_after_discounts": "<string>",
"total_after_discounts_in_currency": "<string>",
"line_total_after_discounts_in_currency": "<string>",
"regular_line_total_in_currency": "<string>",
"unit_price_display_authoritative": true,
"enrollment_pack_id": 123,
"subscription": true,
"subscription_plan_id": 123,
"subscription_plans": [
{}
],
"subscription_only": true,
"subscription_interval": 123,
"subscription_interval_unit": "<string>",
"subscription_interval_unit_identifier": "<string>",
"subscription_price": "<string>",
"subscription_price_in_currency": "<string>",
"subscription_start": "<string>",
"subscribe_and_save": "<string>",
"subscribe_and_save_in_currency": "<string>",
"subscribe_and_save_for_display": "<string>",
"display_to_customer": true,
"metadata": {},
"image_url": "<string>",
"free_item": true,
"allow_subscription": true,
"enrollment": true,
"errors": [
"<string>"
],
"creditable_points": 123,
"product": {},
"variant": {
"id": 123,
"title": "<string>",
"display_name": "<string>",
"image_url": "<string>",
"image_path": "<string>",
"sku": "<string>",
"primary_image": "<string>",
"price": 123,
"price_in_currency": "<string>",
"currency_code": "<string>",
"options": [
{
"title": "<string>",
"value": "<string>"
}
],
"physical": true,
"unit_of_size": "<string>",
"height": 123,
"width": 123,
"length": 123,
"unit_of_weight": "<string>",
"weight": "<string>",
"hs_code": "<string>"
},
"bundled_items": [
{}
],
"product_title": "<string>"
}
],
"ship_to": {
"id": 123,
"name": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"city": "<string>",
"state": "<string>",
"subdivision_code": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"phone": "<string>",
"country_num_code": 123,
"default": true
},
"bill_to": {},
"attribution": {},
"agreements": [
{
"id": 123,
"title": "<string>",
"show_at_checkout": true,
"default_checked": true,
"subscription_only": true,
"standalone_on_checkout": true,
"show_path": "<string>",
"enrollment_pack_id": 123,
"required": true
}
],
"country": {
"id": 123,
"name": "<string>",
"iso": "<string>",
"iso_name": "<string>",
"iso3": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"province_required": true,
"tax_enabled": true,
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"tax_standard_rate": 123
},
"company": {
"id": 123,
"name": "<string>",
"favicon_url": "<string>",
"primary_domain_hostname": "<string>",
"subdomain": "<string>",
"logo_url": "<string>",
"fluid_shop": "<string>",
"collect_phone": true,
"require_phone": true,
"require_billing_zip": true,
"checkout_primary_button_color": "<string>",
"checkout_primary_text_color": "<string>",
"checkout_secondary_button_color": "<string>",
"checkout_secondary_text_color": "<string>",
"order_on_behalf": true,
"reward_points_enabled": true,
"reward_points_apply_to_subtotal": true,
"reward_points_label_singular": "<string>",
"reward_points_label_plural": "<string>",
"collect_sms_marketing": true,
"collect_email_marketing": true,
"bundle_subscriptions": true,
"hide_volume_on_customer_surfaces": true,
"isolated_payment_tokens": true,
"kount_environment": "sandbox",
"kount_client_id": "150953359757648"
},
"enrollment_pack": {},
"recurring": [
{
"subtotal": 123,
"subtotal_in_currency": "<string>",
"interval": 123,
"interval_unit": "<string>",
"interval_unit_identifier": "day",
"subtotal_for_display": "<string>",
"start_date": "<string>"
}
]
}
}
}⌘I
Apply a promo code to the cart
curl --request POST \
--url https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount \
--header 'Content-Type: application/json' \
--data '
{
"discount_code": "SCRANTON10"
}
'import requests
url = "https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount"
payload = { "discount_code": "SCRANTON10" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({discount_code: 'SCRANTON10'})
};
fetch('https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'discount_code' => 'SCRANTON10'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount"
payload := strings.NewReader("{\n \"discount_code\": \"SCRANTON10\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount")
.header("Content-Type", "application/json")
.body("{\n \"discount_code\": \"SCRANTON10\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/public/v2025-06/commerce/carts/{cart_token}/discount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"discount_code\": \"SCRANTON10\"\n}"
response = http.request(request)
puts response.read_body{
"cart": {
"id": 48213,
"cart_token": "ct_7Hk2mQx9vRbT3nWz8LpYc4",
"state": "start",
"state_revision": 6,
"population_status": "complete",
"email": "holly.flax@dundermifflin.com",
"phone": "+15705550142",
"language_iso": "en",
"currency_code": "USD",
"currency_symbol": "$",
"currency_decimal_places": 2,
"enrollment": false,
"buyer_rep_id": 5521,
"customer_id": 30417,
"enrollment_pack_id": null,
"email_marketing": false,
"sms_marketing": false,
"auto_apply_points": false,
"processed": false,
"valid_for_checkout": false,
"valid_for_checkout_pre_payment": true,
"checkout_blockers": [],
"contains_subscription": false,
"requires_payment_method": true,
"digital_only": false,
"points_enabled": false,
"cv_total": "109.98",
"qv_total": "109.98",
"amount_total": 114.87,
"amount_total_in_currency": "$114.87",
"sub_total": 109.98,
"sub_total_in_currency": "$109.98",
"tax_total": 5.94,
"tax_total_in_currency": "$5.94",
"shipping_total": 9.95,
"shipping_total_in_currency": "$9.95",
"discount_total": 11,
"discount_total_in_currency": "$11.00",
"subtotal_after_discounts": 98.98,
"subtotal_after_discounts_in_currency": "$98.98",
"price_inclusive_of_tax": false,
"price_inclusive_tax_name": null,
"totals": {
"gross_subtotal": "109.98",
"gross_subtotal_in_currency": "$109.98",
"net_subtotal": "109.98",
"net_subtotal_in_currency": "$109.98",
"item_tax": "0.00",
"item_tax_in_currency": "$0.00",
"shipping_net": "9.95",
"shipping_net_in_currency": "$9.95",
"shipping_tax": "0.00",
"shipping_tax_in_currency": "$0.00",
"total_tax": "5.94",
"total_tax_in_currency": "$5.94",
"price_inclusive_of_tax": false,
"tax_label": null
},
"discount_codes": [
"SCRANTON10"
],
"buyer_rep": {
"id": 5521,
"email": "dwight.schrute@dundermifflin.com",
"full_name": "Dwight Schrute",
"image_url": "https://cdn.fluid.app/dunder-mifflin/avatars/dwight-schrute.jpg",
"external_id": "DM-REP-0042"
},
"buyer_rep_member_id": "5f2c9a1e-7b3d-4e8a-a6c2-91d04e7f3b28",
"available_shipping_methods": [
{
"id": 311,
"title": "Standard Ground",
"price": 9.95,
"delivery_time_estimate": "3-5 business days",
"price_label": null
},
{
"id": 312,
"title": "Two-Day Express",
"price": 19.95,
"delivery_time_estimate": "2 business days",
"price_label": null
}
],
"shipping_method": {
"id": "311",
"name": "Standard Ground"
},
"items": [
{
"id": 91547,
"title": "Dunder Mifflin 20lb Copy Paper",
"product_title": "Dunder Mifflin 20lb Copy Paper",
"quantity": 2,
"price": "54.99",
"price_in_currency": "$54.99",
"discount_amount": "0.0",
"discount_amount_in_currency": "$0.00",
"tax": "6.60",
"tax_in_currency": "$6.60",
"cv": "54.99",
"qv": "54.99",
"cv_total": "109.98",
"qv_total": "109.98",
"total": "109.98",
"total_in_currency": "$109.98",
"line_total_in_currency": "$109.98",
"regular_line_total_in_currency": "$109.98",
"enrollment_pack_id": null,
"subscription": false,
"subscription_plan_id": null,
"display_to_customer": true,
"image_url": "https://cdn.fluid.app/dunder-mifflin/products/20lb-copy-paper.jpg",
"free_item": false,
"allow_subscription": true,
"enrollment": false,
"errors": [],
"variant": {
"id": 70412,
"title": "Case of 10 reams",
"sku": "DM-20LB-CASE",
"price": "54.99",
"price_in_currency": "$54.99",
"currency_code": "USD",
"options": [
{
"title": "Pack size",
"value": "Case of 10 reams"
}
],
"physical": true
}
}
],
"ship_to": {
"id": 66120,
"name": "Holly Flax",
"address1": "221 Lackawanna Avenue",
"address2": "Apt 4B",
"city": "Scranton",
"state": "PA",
"subdivision_code": "PA",
"postal_code": "18503",
"country_code": "US",
"phone": "+15705550142",
"country_num_code": 840,
"default": true
},
"country": {
"id": 214,
"name": "United States",
"iso": "US",
"iso_name": "UNITED STATES",
"iso3": "USA",
"currency_code": "USD",
"currency_symbol": "$",
"province_required": true,
"tax_enabled": true,
"price_inclusive_of_tax": false,
"price_inclusive_tax_name": null,
"tax_standard_rate": null
},
"company": {
"id": 1405,
"name": "Dunder Mifflin Paper Company",
"subdomain": "dunder-mifflin",
"fluid_shop": "dunder-mifflin.fluid.app",
"primary_domain_hostname": "shop.dundermifflin.com",
"logo_url": "https://cdn.fluid.app/dunder-mifflin/brand/logo.png",
"favicon_url": "https://cdn.fluid.app/dunder-mifflin/brand/favicon.png",
"collect_phone": true,
"require_phone": false,
"require_billing_zip": true,
"order_on_behalf": false,
"reward_points_enabled": false,
"collect_sms_marketing": true,
"collect_email_marketing": true,
"bundle_subscriptions": false,
"hide_volume_on_customer_surfaces": true,
"isolated_payment_tokens": false,
"kount_environment": "production",
"kount_client_id": null
},
"recurring": []
},
"meta": {
"request_id": "c41e7a90-3b5d-4f28-9e61-8d2a0b7f5c13",
"timestamp": "2026-09-17T14:22:08Z",
"checkout_url": "https://checkout.fluid.app/checkouts/ct_7Hk2mQx9vRbT3nWz8LpYc4",
"shop_url": "https://shop.dundermifflin.com"
}
}{
"error_message": "<string>",
"errors": {},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"code": "payment_in_progress",
"shop_url": "<string>",
"cart": {
"enrollment": true,
"id": 123,
"cart_token": "<string>",
"state": "<string>",
"state_revision": 1,
"population_status": "pending",
"email": "<string>",
"phone": "<string>",
"language_iso": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"currency_decimal_places": 123,
"type": "<string>",
"buyer_rep_id": 123,
"customer_id": 123,
"enrollment_pack_id": 123,
"enrollment_member_type": {
"id": "22c58158-7f6c-4f33-a033-32e259941684",
"slug": "rep",
"name": "Representative"
},
"email_marketing": true,
"sms_marketing": true,
"auto_apply_points": true,
"processed": true,
"payment_in_progress": true,
"payment_resume_url": "<string>",
"valid_for_checkout": true,
"valid_for_checkout_pre_payment": true,
"checkout_blockers": [
{
"code": "<string>",
"message": "<string>"
}
],
"contains_subscription": true,
"vault_without_charge": true,
"payment_method_auto_assignable": true,
"requires_payment_method": true,
"requires_3ds": true,
"immutable_items": true,
"digital_only": true,
"points_enabled": true,
"messages": {},
"metadata": {},
"cv_total": "<string>",
"qv_total": "<string>",
"amount_total": 123,
"amount_total_in_currency": "<string>",
"sub_total": 123,
"sub_total_in_currency": "<string>",
"tax_total": 123,
"tax_exempt": true,
"tax_total_in_currency": "<string>",
"tax_total_for_display": "<string>",
"inclusive_shipping_tax": 123,
"shipping_total": 123,
"shipping_total_in_currency": "<string>",
"shipping_total_for_display": "<string>",
"discount_total": 123,
"discount_total_in_currency": "<string>",
"subtotal_after_discounts": 123,
"subtotal_after_discounts_in_currency": "<string>",
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"totals": {
"gross_subtotal": "<string>",
"gross_subtotal_in_currency": "<string>",
"net_subtotal": "<string>",
"net_subtotal_in_currency": "<string>",
"item_tax": "<string>",
"item_tax_in_currency": "<string>",
"shipping_net": "<string>",
"shipping_net_in_currency": "<string>",
"shipping_tax": "<string>",
"shipping_tax_in_currency": "<string>",
"total_tax": "<string>",
"total_tax_in_currency": "<string>",
"price_inclusive_of_tax": true,
"tax_label": "<string>"
},
"enrollment_fee": 123,
"enrollment_fee_in_currency": "<string>",
"transaction_fee": 123,
"transaction_fee_in_currency": "<string>",
"shipping_discount": 123,
"discount_codes": [
"<string>"
],
"product_discount_codes": [
"<string>"
],
"shipping_discount_codes": [
"<string>"
],
"customer_total_points": 123,
"customer_total_points_in_currency": "<string>",
"points_applied": 123,
"points_applied_amount_in_currency": "<string>",
"remaining_customer_points": 123,
"remaining_customer_points_amount_in_currency": "<string>",
"remaining_cart_amount_after_points": 123,
"remaining_cart_amount_after_points_in_currency": "<string>",
"max_applicable_points": 123,
"total_creditable_points": 123,
"shipping_address": {},
"billing_address": {},
"discount_breakdown": {
"internal_discounts": 123,
"external_discounts": 123,
"total_discounts": 123
},
"external_discount": {},
"buyer_rep": {
"id": 123,
"email": "<string>",
"full_name": "<string>",
"image_url": "<string>",
"external_id": "<string>"
},
"buyer_rep_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"volume_rep": {
"id": 123,
"email": "<string>",
"full_name": "<string>",
"image_url": "<string>"
},
"volume_rep_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"available_shipping_methods": [
{
"id": "<string>",
"title": "<string>",
"price": 123,
"delivery_time_estimate": "<string>",
"price_label": "<string>"
}
],
"available_payment_methods": [
{}
],
"payment_unavailable_reason": "no_gateway_for_country",
"payment_account": {},
"shipping_method": {
"id": "<string>",
"name": "<string>"
},
"payment_method": {},
"items": [
{
"id": 123,
"title": "<string>",
"quantity": 123,
"price": "<string>",
"price_in_currency": "<string>",
"discount_amount": "<string>",
"discount_amount_in_currency": "<string>",
"tax": "<string>",
"tax_in_currency": "<string>",
"cv": "<string>",
"qv": "<string>",
"cv_total": "<string>",
"qv_total": "<string>",
"total": "<string>",
"total_in_currency": "<string>",
"line_total_in_currency": "<string>",
"total_after_discounts": "<string>",
"total_after_discounts_in_currency": "<string>",
"line_total_after_discounts_in_currency": "<string>",
"regular_line_total_in_currency": "<string>",
"unit_price_display_authoritative": true,
"enrollment_pack_id": 123,
"subscription": true,
"subscription_plan_id": 123,
"subscription_plans": [
{}
],
"subscription_only": true,
"subscription_interval": 123,
"subscription_interval_unit": "<string>",
"subscription_interval_unit_identifier": "<string>",
"subscription_price": "<string>",
"subscription_price_in_currency": "<string>",
"subscription_start": "<string>",
"subscribe_and_save": "<string>",
"subscribe_and_save_in_currency": "<string>",
"subscribe_and_save_for_display": "<string>",
"display_to_customer": true,
"metadata": {},
"image_url": "<string>",
"free_item": true,
"allow_subscription": true,
"enrollment": true,
"errors": [
"<string>"
],
"creditable_points": 123,
"product": {},
"variant": {
"id": 123,
"title": "<string>",
"display_name": "<string>",
"image_url": "<string>",
"image_path": "<string>",
"sku": "<string>",
"primary_image": "<string>",
"price": 123,
"price_in_currency": "<string>",
"currency_code": "<string>",
"options": [
{
"title": "<string>",
"value": "<string>"
}
],
"physical": true,
"unit_of_size": "<string>",
"height": 123,
"width": 123,
"length": 123,
"unit_of_weight": "<string>",
"weight": "<string>",
"hs_code": "<string>"
},
"bundled_items": [
{}
],
"product_title": "<string>"
}
],
"ship_to": {
"id": 123,
"name": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"city": "<string>",
"state": "<string>",
"subdivision_code": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"phone": "<string>",
"country_num_code": 123,
"default": true
},
"bill_to": {},
"attribution": {},
"agreements": [
{
"id": 123,
"title": "<string>",
"show_at_checkout": true,
"default_checked": true,
"subscription_only": true,
"standalone_on_checkout": true,
"show_path": "<string>",
"enrollment_pack_id": 123,
"required": true
}
],
"country": {
"id": 123,
"name": "<string>",
"iso": "<string>",
"iso_name": "<string>",
"iso3": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"province_required": true,
"tax_enabled": true,
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"tax_standard_rate": 123
},
"company": {
"id": 123,
"name": "<string>",
"favicon_url": "<string>",
"primary_domain_hostname": "<string>",
"subdomain": "<string>",
"logo_url": "<string>",
"fluid_shop": "<string>",
"collect_phone": true,
"require_phone": true,
"require_billing_zip": true,
"checkout_primary_button_color": "<string>",
"checkout_primary_text_color": "<string>",
"checkout_secondary_button_color": "<string>",
"checkout_secondary_text_color": "<string>",
"order_on_behalf": true,
"reward_points_enabled": true,
"reward_points_apply_to_subtotal": true,
"reward_points_label_singular": "<string>",
"reward_points_label_plural": "<string>",
"collect_sms_marketing": true,
"collect_email_marketing": true,
"bundle_subscriptions": true,
"hide_volume_on_customer_surfaces": true,
"isolated_payment_tokens": true,
"kount_environment": "sandbox",
"kount_client_id": "150953359757648"
},
"enrollment_pack": {},
"recurring": [
{
"subtotal": 123,
"subtotal_in_currency": "<string>",
"interval": 123,
"interval_unit": "<string>",
"interval_unit_identifier": "day",
"subtotal_for_display": "<string>",
"start_date": "<string>"
}
]
}
}
}{
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"shop_url": "<string>",
"cart": {
"enrollment": true,
"id": 123,
"cart_token": "<string>",
"state": "<string>",
"state_revision": 1,
"population_status": "pending",
"email": "<string>",
"phone": "<string>",
"language_iso": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"currency_decimal_places": 123,
"type": "<string>",
"buyer_rep_id": 123,
"customer_id": 123,
"enrollment_pack_id": 123,
"enrollment_member_type": {
"id": "22c58158-7f6c-4f33-a033-32e259941684",
"slug": "rep",
"name": "Representative"
},
"email_marketing": true,
"sms_marketing": true,
"auto_apply_points": true,
"processed": true,
"payment_in_progress": true,
"payment_resume_url": "<string>",
"valid_for_checkout": true,
"valid_for_checkout_pre_payment": true,
"checkout_blockers": [
{
"code": "<string>",
"message": "<string>"
}
],
"contains_subscription": true,
"vault_without_charge": true,
"payment_method_auto_assignable": true,
"requires_payment_method": true,
"requires_3ds": true,
"immutable_items": true,
"digital_only": true,
"points_enabled": true,
"messages": {},
"metadata": {},
"cv_total": "<string>",
"qv_total": "<string>",
"amount_total": 123,
"amount_total_in_currency": "<string>",
"sub_total": 123,
"sub_total_in_currency": "<string>",
"tax_total": 123,
"tax_exempt": true,
"tax_total_in_currency": "<string>",
"tax_total_for_display": "<string>",
"inclusive_shipping_tax": 123,
"shipping_total": 123,
"shipping_total_in_currency": "<string>",
"shipping_total_for_display": "<string>",
"discount_total": 123,
"discount_total_in_currency": "<string>",
"subtotal_after_discounts": 123,
"subtotal_after_discounts_in_currency": "<string>",
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"totals": {
"gross_subtotal": "<string>",
"gross_subtotal_in_currency": "<string>",
"net_subtotal": "<string>",
"net_subtotal_in_currency": "<string>",
"item_tax": "<string>",
"item_tax_in_currency": "<string>",
"shipping_net": "<string>",
"shipping_net_in_currency": "<string>",
"shipping_tax": "<string>",
"shipping_tax_in_currency": "<string>",
"total_tax": "<string>",
"total_tax_in_currency": "<string>",
"price_inclusive_of_tax": true,
"tax_label": "<string>"
},
"enrollment_fee": 123,
"enrollment_fee_in_currency": "<string>",
"transaction_fee": 123,
"transaction_fee_in_currency": "<string>",
"shipping_discount": 123,
"discount_codes": [
"<string>"
],
"product_discount_codes": [
"<string>"
],
"shipping_discount_codes": [
"<string>"
],
"customer_total_points": 123,
"customer_total_points_in_currency": "<string>",
"points_applied": 123,
"points_applied_amount_in_currency": "<string>",
"remaining_customer_points": 123,
"remaining_customer_points_amount_in_currency": "<string>",
"remaining_cart_amount_after_points": 123,
"remaining_cart_amount_after_points_in_currency": "<string>",
"max_applicable_points": 123,
"total_creditable_points": 123,
"shipping_address": {},
"billing_address": {},
"discount_breakdown": {
"internal_discounts": 123,
"external_discounts": 123,
"total_discounts": 123
},
"external_discount": {},
"buyer_rep": {
"id": 123,
"email": "<string>",
"full_name": "<string>",
"image_url": "<string>",
"external_id": "<string>"
},
"buyer_rep_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"volume_rep": {
"id": 123,
"email": "<string>",
"full_name": "<string>",
"image_url": "<string>"
},
"volume_rep_member_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"available_shipping_methods": [
{
"id": "<string>",
"title": "<string>",
"price": 123,
"delivery_time_estimate": "<string>",
"price_label": "<string>"
}
],
"available_payment_methods": [
{}
],
"payment_unavailable_reason": "no_gateway_for_country",
"payment_account": {},
"shipping_method": {
"id": "<string>",
"name": "<string>"
},
"payment_method": {},
"items": [
{
"id": 123,
"title": "<string>",
"quantity": 123,
"price": "<string>",
"price_in_currency": "<string>",
"discount_amount": "<string>",
"discount_amount_in_currency": "<string>",
"tax": "<string>",
"tax_in_currency": "<string>",
"cv": "<string>",
"qv": "<string>",
"cv_total": "<string>",
"qv_total": "<string>",
"total": "<string>",
"total_in_currency": "<string>",
"line_total_in_currency": "<string>",
"total_after_discounts": "<string>",
"total_after_discounts_in_currency": "<string>",
"line_total_after_discounts_in_currency": "<string>",
"regular_line_total_in_currency": "<string>",
"unit_price_display_authoritative": true,
"enrollment_pack_id": 123,
"subscription": true,
"subscription_plan_id": 123,
"subscription_plans": [
{}
],
"subscription_only": true,
"subscription_interval": 123,
"subscription_interval_unit": "<string>",
"subscription_interval_unit_identifier": "<string>",
"subscription_price": "<string>",
"subscription_price_in_currency": "<string>",
"subscription_start": "<string>",
"subscribe_and_save": "<string>",
"subscribe_and_save_in_currency": "<string>",
"subscribe_and_save_for_display": "<string>",
"display_to_customer": true,
"metadata": {},
"image_url": "<string>",
"free_item": true,
"allow_subscription": true,
"enrollment": true,
"errors": [
"<string>"
],
"creditable_points": 123,
"product": {},
"variant": {
"id": 123,
"title": "<string>",
"display_name": "<string>",
"image_url": "<string>",
"image_path": "<string>",
"sku": "<string>",
"primary_image": "<string>",
"price": 123,
"price_in_currency": "<string>",
"currency_code": "<string>",
"options": [
{
"title": "<string>",
"value": "<string>"
}
],
"physical": true,
"unit_of_size": "<string>",
"height": 123,
"width": 123,
"length": 123,
"unit_of_weight": "<string>",
"weight": "<string>",
"hs_code": "<string>"
},
"bundled_items": [
{}
],
"product_title": "<string>"
}
],
"ship_to": {
"id": 123,
"name": "<string>",
"address1": "<string>",
"address2": "<string>",
"address3": "<string>",
"city": "<string>",
"state": "<string>",
"subdivision_code": "<string>",
"postal_code": "<string>",
"country_code": "<string>",
"phone": "<string>",
"country_num_code": 123,
"default": true
},
"bill_to": {},
"attribution": {},
"agreements": [
{
"id": 123,
"title": "<string>",
"show_at_checkout": true,
"default_checked": true,
"subscription_only": true,
"standalone_on_checkout": true,
"show_path": "<string>",
"enrollment_pack_id": 123,
"required": true
}
],
"country": {
"id": 123,
"name": "<string>",
"iso": "<string>",
"iso_name": "<string>",
"iso3": "<string>",
"currency_code": "<string>",
"currency_symbol": "<string>",
"province_required": true,
"tax_enabled": true,
"price_inclusive_of_tax": true,
"price_inclusive_tax_name": "<string>",
"tax_standard_rate": 123
},
"company": {
"id": 123,
"name": "<string>",
"favicon_url": "<string>",
"primary_domain_hostname": "<string>",
"subdomain": "<string>",
"logo_url": "<string>",
"fluid_shop": "<string>",
"collect_phone": true,
"require_phone": true,
"require_billing_zip": true,
"checkout_primary_button_color": "<string>",
"checkout_primary_text_color": "<string>",
"checkout_secondary_button_color": "<string>",
"checkout_secondary_text_color": "<string>",
"order_on_behalf": true,
"reward_points_enabled": true,
"reward_points_apply_to_subtotal": true,
"reward_points_label_singular": "<string>",
"reward_points_label_plural": "<string>",
"collect_sms_marketing": true,
"collect_email_marketing": true,
"bundle_subscriptions": true,
"hide_volume_on_customer_surfaces": true,
"isolated_payment_tokens": true,
"kount_environment": "sandbox",
"kount_client_id": "150953359757648"
},
"enrollment_pack": {},
"recurring": [
{
"subtotal": 123,
"subtotal_in_currency": "<string>",
"interval": 123,
"interval_unit": "<string>",
"interval_unit_identifier": "day",
"subtotal_for_display": "<string>",
"start_date": "<string>"
}
]
}
}
}