Authentication v1
- Identity APIs
- User
- Address
- Auth
User Self Service APIs
- Introduction
- User Self Service APIs
- Authentication APIs
Experiences v2 (XM v2)
- XM
- Pages
- Global Components
- Menu
Experiences v1 (XM v1)
- XM
- Pages
- Global Components
- Menu
Product Catalog
- Product Catalog
- Category
- Product
- Attributes
- Bulk Import
Orders v2 (OMS v2)
- Order Management System
- Order
- Order Attribute
- Developer Guide
- Order Return
- Payment Status
- Package Tracking
- Cross Border
- Order Cancellation
- Appeasement
- Allocation
- Configuration
- Fraud Configuration
- Target Configuration
- Location
- Location Attribute
- Inventory Network
- Inventory
- Inventory Counter
- Inventory Bulk Operation
- Inventory Attribute
- Inventory Upload Log
- Shipment
- Shipping Method
- Webhook
- Notification
- Export
- Invoice
- Fraud
- Backorder Preorder Reservation
- List
Orders v1 (OMS v1)
- Order Management System
- Cart
- Bill To
- Ship To
- Wishlist
- Cart Decoupled
- Warehouse
- Inventory
- Attributes
- List
- Tax/Address Validate
- Shipping
- Payments
- Order
Offers v2
- Offers
- Developer Guide
- Promotion
- Price Kind
- Dynamic Pricing Engine
- Segment
- Coupon
- Coupon Codes
- Product
- Price List
- Attributes
- Item
- Price Guard
- Global Exclusion
- Upload Price CSV
- Pricing
- Redemption
- Exports
Offers v1
- Offers
- Login API
- Promotions
- Pricing
Subscriptions (SMT API)
- Subscriptions API
- Cancellation Reasons
- Subscription Discounts
- Subscriptions
- Subscribers
- Orders
Loyalty (Member)
- Member APIs
- Inquire
- Discounts
- Redeem
- Earn
- Members
Dropship
- Dropship API
- Shipments
- Products
- Invoices
- Connections
- Inventory
- Developer Guide
- Returns
- Orders
Cart API
Checkout API
- Checkout
- Checkout
Customer
- Core Concepts
- Customer Service
- Organization
- User Party
- Organization Group Addresses
- User Internal Party
- Organization Contracts
- Party
- Party Contracts
- Contracts
- User
- Search
- User Trait
- Organization Users
- Address
- User Address
- Trait
- Party Address
- Party Trait
- Organization Group Users
- Internal Party
- Contract Pricelist
- Internal Parties Party
- Account
- Party Account
- Organization Addresses
- Organization Groups
- Individual Addresses
- Users Organization
- Individual
Delete specific cart fee
Delete a specific fee associated with the given cart.
curl --request DELETE \
--url https://prod.cart.fabric.inc/v2/carts/{cartId}/attributes/fees \
--header 'Authorization: <authorization>' \
--header 'x-site-context: <x-site-context>'
{
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"items": [
{
"cartItemId": "88cded0f-1439-40eb-a7a0-167e8bffdb3b",
"itemId": "1000000001",
"title": "Varnet Garden Light Kit",
"sku": "16B2GS8LD5FDS",
"items": [
{
"items": "<any>",
"cartItemId": "12gved0f-7645-40cb-y7b0-167f8bggdb3z",
"itemId": "1730902008",
"title": "Light Cover",
"sku": "13B9CL6WT2SLW",
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"type": "GIFT",
"value": "true",
"price": 10,
"level": "order",
"items": [
"1000000001"
]
}
],
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"quantity": 15,
"type": "WEB_SHIP",
"subType": "Border-free",
"priceListId": "108674",
"lineItemId": 1,
"isActive": true,
"unitPrice": {
"currency": "USD",
"amount": 100,
"sale": 80,
"discount": {
"price": 80,
"discountAmount": 20,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
},
"totalPrice": {
"currency": "USD",
"amount": 100,
"sale": 80,
"discount": {
"price": 80,
"discountAmount": 20,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
},
"attributeTotalPrice": 10,
"group": [
"61d38e117162b7dba69c3d6d"
],
"extra": {
"productFamily": "Laptop computers"
},
"channel": 12,
"isPickup": true,
"warehouseId": "XYZ-1234",
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"shipTo": {
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "test@mail.com",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "test@mail.com"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "test@mail.com"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123"
},
"fulfillment": {
"type": "WEB_SHIP",
"networkCode": "ShipToCNC",
"channelId": "12",
"inventoryType": "availablePreorder",
"inventory": {
"virtualCounters": {
"availableToPurchase": 10
},
"id": "62272e917b12209e68751d94",
"sku": "SKU00025",
"itemId": 4225678911,
"locationNum": 473746,
"channelId": 12,
"vendorId": "vendor123",
"leadTime": 1234,
"inventoryType": "Safety stock",
"infiniteInventory": true,
"counters": {
"on-hand": 10
},
"attributes": {
"buy online, pick up in-store (bopis)": true
},
"backOrderDate": "2022-08-08T00:00:00.000Z",
"preOrderDate": "2022-08-08T00:00:00.000Z",
"backOrderLimit": 100,
"preOrderLimit": 100,
"safetyStock": 10,
"lowStock": 10,
"segment": "Clothing",
"region": "US"
}
}
}
],
"attributeTotalPrice": 10,
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"quantity": 1,
"priceListId": "100000",
"lineItemId": 1,
"isActive": true,
"unitPrice": {
"currency": "USD",
"amount": 100,
"sale": 80,
"discount": {
"price": 80,
"discountAmount": 20,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
},
"totalPrice": {
"currency": "USD",
"amount": 100,
"sale": 80,
"discount": {
"price": 80,
"discountAmount": 20,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
},
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"type": "GIFT",
"value": "true",
"price": 10,
"level": "order",
"items": [
"1000000001"
]
}
],
"priceAdjustments": [
{
"id": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"reason": "compensation for delay",
"amount": 20,
"attributes": {
"goldMember": [
false
]
}
}
],
"isPickup": true,
"warehouseId": "XYZ-1234",
"shipTo": {
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "test@mail.com",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "test@mail.com"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "test@mail.com"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123"
},
"channel": 12,
"group": [
"61d38e117162b7dba69c3d6d"
],
"fees": [
{
"feeId": "73bc09d0-874a-4c3d-84d0-df1670d03578",
"name": "gift",
"type": "gift_wrap",
"amount": 10.5,
"attributes": "{'from': 'sam', 'to': 'david' }"
}
]
}
],
"createdAt": "2022-02-11T14:09:40.836703",
"updatedAt": "2022-02-22T22:36:40.194293",
"totalItems": 3,
"totalUniqueItems": 2,
"cartState": "PENDING",
"tenantId": "5f689caa4216e7000750d1ef",
"accountId": "5f689caa4216e7000750d1ef",
"userId": "61b8e921d0cf2e000882b09f",
"configuration": {
"allowAnonymousUser": true,
"orderNumberSource": "CART_ID",
"softReserve": true,
"addItemBySkuEnabled": true
},
"customer": {
"id": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"type": "EMPLOYEE",
"attributes": {
"goldMember": [
false
]
},
"segments": {
"age": 23,
"gender": "female"
}
},
"totalAmount": 95,
"subTotal": 120,
"totalDiscount": 25,
"totalFees": 25,
"currency": "USD",
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"type": "GIFT",
"value": "true",
"price": 10,
"level": "order",
"items": [
"1000000001"
]
}
],
"metadata": {
"approver": "620d8896058edb0009385311"
},
"allPromosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"sharedUserIds": [
"[\"*\"] or [userId1,userId2]"
],
"fees": [
{
"feeId": "73bc09d0-874a-4c3d-84d0-df1670d03578",
"name": "gift",
"type": "gift_wrap",
"amount": 10.5,
"attributes": "{'from': 'sam', 'to': 'david' }"
}
],
"suggestedProducts": [
{
"promotionId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"promotionTitle": "Buy one get one free",
"itemId": 19,
"itemIds": [
19
],
"eligiblePriceLists": [
1000000001
],
"quantity": 1,
"promotionQuantity": 1,
"free": true,
"discountType": "AMOUNT_OFF",
"amount": 10
}
],
"error": {
"price": [
{
"price": {
"sale": 10,
"cost": 20,
"base": 20,
"currency": "USD",
"finalPrice": 10,
"totalPrice": 20,
"kind": "Promotion",
"discount": 5.5
},
"kind": "PROMOTION",
"channel": 12,
"lineItemId": 1,
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
],
"promo": [
{
"itemId": "1000000001",
"sku": "16B2GS8LD5FDS",
"code": "UNKNOWN_ERROR",
"detail": "Item is out of stock",
"lineItemId": 1
}
],
"inventory": [
{
"itemId": "1000000001",
"sku": "16B2GS8LD5FDS",
"code": "UNKNOWN_ERROR",
"detail": "Item is out of stock",
"lineItemId": 1
}
]
}
}
Headers
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
API Key for Gateway
"zaCELgL.0imfnc8mVLWwsAawjYr4Rx-Af50DDqtlx"
Authorization token for the user
"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxZjIyMTU4..."
Path Parameters
Cart ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Query Parameters
Fee ID to delete the fee details
"asdw4234-bee3-4448-bf1c-d5b5461dbda2"
Response
Cart details
Items in cart
Cart item details
Item SKU
"16B2GS8LD5FDS"
Cart item details
Cart item details
Item SKU
"13B9CL6WT2SLW"
total quantity of the line item
15
Cart item ID
"12gved0f-7645-40cb-y7b0-167f8bggdb3z"
Item ID
"1730902008"
Item name
"Light Cover"
Additional item options
Additional item options
Attribute ID
"60c2a358eb2ec30008ae70a1"
Attribute name
"gift wrapping (small)"
Attribute type
"GIFT"
Attribute price
10
Attribute description
"Gift wrapping for a small package"
ITEM: Item-level attribute<br />ORDER: Cart-level attribute
"ITEM"
Attribute applicability
"true"
Attribute level
"order"
Discount object
Item creation time
"2022-02-18T15:12:40.974580"
Last time item was updated
"2022-02-18T15:12:40.974580"
ItemType(WEB_SHIP/WEB_PICKUP/WEB_SDD/INTERNATIONAL/POS/POS_SHIP/POS_PICKUP)
"WEB_SHIP"
ItemSubType(For International type, provide subType as Border-free)
"Border-free"
Item price list ID
"108674"
Cart item sequence number (starts at 1)
x >= 1
1
true = Item is active<br />false = Item is not active
true
Individual item price
Currency type
"USD"
Price before discount
100
Offer discount details. Empty list {} should be passed in case of no discount.
Discounted price of the item
x >= 0
80
Promotions or coupons for cart items
List of discounts applied
Promotion or coupon applied to an item
Discounted percentage amount of the item
x >= 0
20
Price after discount
80
Total price for the full quantity of this item
Currency type
"USD"
Price before discount
100
Offer discount details. Empty list {} should be passed in case of no discount.
Discounted price of the item
x >= 0
80
Promotions or coupons for cart items
List of discounts applied
Promotion or coupon applied to an item
Discounted percentage amount of the item
x >= 0
20
Price after discount
80
Total price of item attributes
10
Group or Category ID to which item belongs
Extra metadata passed by caller
{ "productFamily": "Laptop computers" }
Sales channel
12
true: Item is set for pickup<br />false: Item is set for delivery
true
Warehouse ID
"XYZ-1234"
Shipping ID
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Shipment details
Shipping details ID
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Cart ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Shipping details creation time
"2022-02-18T15:12:40.974580"
Last time shipping details were updated
"2022-02-18T15:12:40.974580"
Shipping method and details
Shipping cost
Shipping method ID
"1234"
Shipment carrier
"FedEx"
Shipment method type
"Next Day"
Shipping address
Address recipient
"Billing manager"
Address line 1
"100 NE 100th St."
Address line 2
"Suite 710"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
City name
"Seattle"
State name
"Washington"
Country name
"USA"
Zip code
"98125"
Receiver's email address
"test@mail.com"
Address type
"shipping"
Recipient's name
address details for the shipping
Shipping type
"SHIP_TO_ADDRESS"
Shipping tax code
"FR1000"
true = Item is set for pickup<br />false = Item is set for delivery
true
Warehouse ID
"XYZ-1234"
Store ID
"ABC-123"
Item details for order fulfillment
Type of order fulfillment
"WEB_SHIP"
Specifies the network of inventory for item
"ShipToCNC"
Specifies the channel of inventory for item
"12"
Specifies the type of inventory for item
"availablePreorder"
Inventory details of the cart item
View quantity of inventory, based on pre configured value. For example, 'availableToPurchase' can be a custom attribute configured by merchants.
{ "availableToPurchase": 10 }
Inventory ID
"62272e917b12209e68751d94"
SKU of the item
"SKU00025"
Item ID for which inventory is updated
4225678911
Location number is used to identify the warehouse or location where the inventory is kept
473746
Sales channel ID. This field is used to identify where the business operations are being held.
12
Vendor ID
"vendor123"
The amount of time between when a purchase order is placed to replenish products and when the order is received in the warehouse
1234
Type of inventory
"Safety stock"
Infinite inventory flag.<br /> true
indicates that the inventory can be consumed any number of times as per need<br />false
indicates that the inventory cannot be used infinitely, and has a limit to be consumed
true
Inventory counter (also known as inventory position) configured by the merchant
{ "on-hand": 10 }
Custom inventory attributes configured by the merchant
{
"buy online, pick up in-store (bopis)": true
}
Inventory restock date
"2022-08-08T00:00:00.000Z"
First ship date of inventory
"2022-08-08T00:00:00.000Z"
Maximum restock inventory quantity
100
Maximum quanity of inventory for first-ship
100
Reserved inventory quantity at the location
10
Inventory quantity to mark as low stock at the location
10
Inventory segment
"Clothing"
Region where inventory is managed
"US"
Number of items in cart
1
true: Item is set for pickup<br />false: Item is set for delivery
true
Cart item ID
"88cded0f-1439-40eb-a7a0-167e8bffdb3b"
Item ID
"1000000001"
Item name
"Varnet Garden Light Kit"
Total price of attributes
10
Item creation time
"2022-02-18T15:12:40.974580"
Last time item was updated
"2022-02-18T15:12:40.974580"
Item price list ID
"100000"
Cart item sequence number (starts at 1)
x >= 1
1
true = Item is active<br />false = Item is not active
true
Individual item price
Currency type
"USD"
Price before discount
100
Offer discount details. Empty list {} should be passed in case of no discount.
Discounted price of the item
x >= 0
80
Promotions or coupons for cart items
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion/coupon code discount value
"20"
Promotion/coupon code discount unit
"%OFF"
List of discounts applied
Promotion or coupon applied to an item
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion name
"New Year discount"
Quantity of this item in the cart
1
Total amount of discount applied
20
Promotion value
20
Promotion group ID
"new-items"
Promotion type
"PROMOTION"
Promotion priority
1
true = This promotion is stackable with other promotions<br />false = This promotion cannot be stacked with other promotions
false
Item SKU to which promotion is applied
"16B2GS8LD5FDS"
ID of item to which promotion is applied
"1000000001"
Key of item to which promotion is applied
"Key1234"
Coupon code description
"New Year Promotion"
Discount unit
"%OFF"
The proratedQuantity
is used in conjunction with proratedAmount
to determine the discount portion allocated to the respective units of BuyGet promotions. This is applicable in partial return scenarios.
1
The prorated discount amount.
3.33
Discounted percentage amount of the item
x >= 0
20
Price after discount
80
Total price for the full quantity of this item
Currency type
"USD"
Price before discount
100
Offer discount details. Empty list {} should be passed in case of no discount.
Discounted price of the item
x >= 0
80
Promotions or coupons for cart items
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion/coupon code discount value
"20"
Promotion/coupon code discount unit
"%OFF"
List of discounts applied
Promotion or coupon applied to an item
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion name
"New Year discount"
Quantity of this item in the cart
1
Total amount of discount applied
20
Promotion value
20
Promotion group ID
"new-items"
Promotion type
"PROMOTION"
Promotion priority
1
true = This promotion is stackable with other promotions<br />false = This promotion cannot be stacked with other promotions
false
Item SKU to which promotion is applied
"16B2GS8LD5FDS"
ID of item to which promotion is applied
"1000000001"
Key of item to which promotion is applied
"Key1234"
Coupon code description
"New Year Promotion"
Discount unit
"%OFF"
The proratedQuantity
is used in conjunction with proratedAmount
to determine the discount portion allocated to the respective units of BuyGet promotions. This is applicable in partial return scenarios.
1
The prorated discount amount.
3.33
Discounted percentage amount of the item
x >= 0
20
Price after discount
80
Additional item options
Additional item options
Attribute ID
"60c2a358eb2ec30008ae70a1"
Attribute name
"gift wrapping (small)"
Attribute type
"GIFT"
Attribute price
10
Attribute description
"Gift wrapping for a small package"
ITEM: Item-level attribute<br />ORDER: Cart-level attribute
"ITEM"
Attribute applicability
"true"
Attribute level
"order"
Discount object
List of price adjustments for the line item
Price adjustment details
Price adjustment ID; it identifies a single price adjustment object from the list of price adjustments.
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Price adjustment reason
"compensation for delay"
Amount by which the line item's total amount or the specified cart's total amount is adjusted
x >= 0
20
Placeholder for additional information
{ "goldMember": [false] }
Warehouse ID
"XYZ-1234"
Shipment details
Shipping details ID
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Cart ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Shipping details creation time
"2022-02-18T15:12:40.974580"
Last time shipping details were updated
"2022-02-18T15:12:40.974580"
Shipping method and details
Shipping method ID
"1234"
Shipment carrier
"FedEx"
Shipment method type
"Next Day"
Shipping address
Address recipient
"Billing manager"
Address line 1
"100 NE 100th St."
Address line 2
"Suite 710"
Address line 3
"Seventh floor"
Address line 4
"Attention: Pat E. Kake"
City name
"Seattle"
State name
"Washington"
Country name
"USA"
Zip code
"98125"
Receiver's email address
"test@mail.com"
Address type
"shipping"
Shipping type
"SHIP_TO_ADDRESS"
Shipping tax code
"FR1000"
true = Item is set for pickup<br />false = Item is set for delivery
true
Alternative pickup person
Receiver's email address
"test@mail.com"
Designated pickup person
Receiver's email address
"test@mail.com"
Warehouse ID
"XYZ-1234"
Store ID
"ABC-123"
Sales channel
12
Group or Category ID to which item belongs
Fees associated with a specific cart or an individual line item of a cart
System-generated fee ID, in UUID format. While creating a cart or line item with fee, fabric generates this ID for the specified fee.
"73bc09d0-874a-4c3d-84d0-df1670d03578"
Attribute for which fee is applied
"gift"
Fee type
"gift_wrap"
Fee amount
10.5
Placeholder for additional information in key:value
pairs
"{'from': 'sam', 'to': 'david' }"
Currency type
"USD"
Metadata for this cart
{ "approver": "620d8896058edb0009385311" }
All promotions or coupons for items in this cart
Promotions or coupons for cart items
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion/coupon code discount value
"20"
Promotion/coupon code discount unit
"%OFF"
UserIds of the users who share the cart
Errors in this cart
Offers
Offer details for cart error response
Item or discount price details
Item's base price
20
Item's sale price
10
Item's full price
20
Currency type
"USD"
Price after the increments have been added over base
10
Price for all units of this item, including discounts
20
Price type
"Promotion"
Discount amount
5.5
Offer channel
12
Offer type
"PROMOTION"
Cart item sequence number (starts at 1)
x >= 1
1
List of discounts
Promotion or coupon applied to an item
Unique promotion/coupon ID
"fza065tdr787"
General promotion/coupon code
"coupon123"
Promotion name
"New Year discount"
Quantity of this item in the cart
1
Total amount of discount applied
20
Promotion value
20
Promotion group ID
"new-items"
Promotion type
"PROMOTION"
Promotion priority
1
true = This promotion is stackable with other promotions<br />false = This promotion cannot be stacked with other promotions
false
Item SKU to which promotion is applied
"16B2GS8LD5FDS"
ID of item to which promotion is applied
"1000000001"
Key of item to which promotion is applied
"Key1234"
Coupon code description
"New Year Promotion"
Discount unit
"%OFF"
The proratedQuantity
is used in conjunction with proratedAmount
to determine the discount portion allocated to the respective units of BuyGet promotions. This is applicable in partial return scenarios.
1
The prorated discount amount.
3.33
Promo exception details
Exception details
Error code
UNKNOWN_ERROR
, BAD_REQUEST
, INVALID_TOKEN
, ACCOUNT_ID_NOT_CONFIGURED
, ACCOUNT_ID_ALREADY_EXISTS
, DEPLOYMENT_IN_PROGRESS
, INVALID_CART_ID
, CART_NOT_FOUND
, ITEM_NOT_FOUND
, UNABLE_TO_GET_CART
, UNABLE_TO_GET_INVENTORY
, ITEM_OUT_OF_STOCK
, UPDATE_CART_ERROR
, DELETE_CART_ATTRIBUTE_ERROR
, EMPTY_CART_ERROR
, UNABLE_TO_GET_PRICE
, UNABLE_TO_GET_PROMO
, UNABLE_TO_GET_ITEM
, PROMO_ALREADY_APPLIED_ERROR
, CART_ALREADY_SHARED_ERROR
, PROMO_NOT_FOUND_ERROR
, PROMO_NOT_APPLICABLE_ERROR
, USER_NOT_FOUND
, ATTRIBUTE_NOT_FOUND
, INCORRECT_ATTRIBUTE_LEVEL
, INCORRECT_ATTRIBUTE_VALUE
, ITEM_ATTRIBUTE_ALREADY_EXIST
, LINE_ITEM_ID_NOT_FOUND
, ITEM_ID_NOT_APPLICABLE
, CART_STATUS_NOT_FOUND
, CART_STATUS_CANNOT_BE_UPDATED
, GUEST_CART_STATUS_CANNOT_BE_UPDATED
, CART_STATUS_ALREADY_ASSIGNED
, TOKEN_INTROSPECT_ERROR
, MAX_CARTS_LIMIT_REACHED
, UNAUTHORIZED_USER_ERROR
, API_PERMISSION_UNDEFINED
, INVALID_DATE_RANGE
, INVALID_DATE_FORMAT
, INVALID_SEARCH_ATTRIBUTE
, ITEM_SERVICE_NOT_CONFIGURED
, ATTRIBUTE_SERVICE_NOT_CONFIGURED
, SHIP_ID_NOT_FOUND
, NEGATIVE_SHIPPING_COST
, REQUEST_DENIED
, BAD_CONFIGURATION
, SERVICE_NOT_ENABLED
Error detail
"Item is out of stock"
ID of item to which exception applies
"1000000001"
SKU of item to which exception applies
"16B2GS8LD5FDS"
Cart item sequence number (starts at 1)
x >= 1
1
Inventory exception details
Exception details
Error code
UNKNOWN_ERROR
, BAD_REQUEST
, INVALID_TOKEN
, ACCOUNT_ID_NOT_CONFIGURED
, ACCOUNT_ID_ALREADY_EXISTS
, DEPLOYMENT_IN_PROGRESS
, INVALID_CART_ID
, CART_NOT_FOUND
, ITEM_NOT_FOUND
, UNABLE_TO_GET_CART
, UNABLE_TO_GET_INVENTORY
, ITEM_OUT_OF_STOCK
, UPDATE_CART_ERROR
, DELETE_CART_ATTRIBUTE_ERROR
, EMPTY_CART_ERROR
, UNABLE_TO_GET_PRICE
, UNABLE_TO_GET_PROMO
, UNABLE_TO_GET_ITEM
, PROMO_ALREADY_APPLIED_ERROR
, CART_ALREADY_SHARED_ERROR
, PROMO_NOT_FOUND_ERROR
, PROMO_NOT_APPLICABLE_ERROR
, USER_NOT_FOUND
, ATTRIBUTE_NOT_FOUND
, INCORRECT_ATTRIBUTE_LEVEL
, INCORRECT_ATTRIBUTE_VALUE
, ITEM_ATTRIBUTE_ALREADY_EXIST
, LINE_ITEM_ID_NOT_FOUND
, ITEM_ID_NOT_APPLICABLE
, CART_STATUS_NOT_FOUND
, CART_STATUS_CANNOT_BE_UPDATED
, GUEST_CART_STATUS_CANNOT_BE_UPDATED
, CART_STATUS_ALREADY_ASSIGNED
, TOKEN_INTROSPECT_ERROR
, MAX_CARTS_LIMIT_REACHED
, UNAUTHORIZED_USER_ERROR
, API_PERMISSION_UNDEFINED
, INVALID_DATE_RANGE
, INVALID_DATE_FORMAT
, INVALID_SEARCH_ATTRIBUTE
, ITEM_SERVICE_NOT_CONFIGURED
, ATTRIBUTE_SERVICE_NOT_CONFIGURED
, SHIP_ID_NOT_FOUND
, NEGATIVE_SHIPPING_COST
, REQUEST_DENIED
, BAD_CONFIGURATION
, SERVICE_NOT_ENABLED
Error detail
"Item is out of stock"
ID of item to which exception applies
"1000000001"
SKU of item to which exception applies
"16B2GS8LD5FDS"
Cart item sequence number (starts at 1)
x >= 1
1
Cart ID
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Cart creation time
"2022-02-11T14:09:40.836703"
Last time cart was updated
"2022-02-22T22:36:40.194293"
Number of items in the cart
3
Number of unique items in the cart based on line item ID
2
Cart status
ACTIVE
, PENDING
, PENDING_APPROVAL
, APPROVED
, SUBMITTED
, DELETED
, REJECTED
"PENDING"
Merchant ID
"5f689caa4216e7000750d1ef"
Customer account ID
"5f689caa4216e7000750d1ef"
User ID
"61b8e921d0cf2e000882b09f"
Cart configurations
true: Allows a cart to be guest cart. Shoppers can modify the cart without logging in.<br/> false: Allows cart modification only if the shopper is logged in.
true
Specifies how an order number is created. The options are:<br/>1. CART_ID
: Cart ID is used as the order number. In this case, fabric's Cart service uses the specified cart ID and assigns it as the order numebr.<br/>2. EXTERNAL
: Merchant provides the order number during chekout.<br/>3. FABRIC
: fabric generates the order number based on cart configuration details, and assigns it to the cart.<br/>4. NONE
: Merchants have the flexibility to not provide an order number during the creation of an order draft. Instead, they can provide the order number when generating final orders based on the previously created order draft.
CART_ID
, EXTERNAL
, FABRIC
, NONE
Specifies whether items in cart should be soft reserved. The options are:<br />true
: Soft reservation is enabled; the items added to cart are reserved in the inventory.<br />false
: Soft reservation is disabled; the items added to cart are not reserved in the inventory.
true
true: Item can be added to a cart by SKU; itemId
is not mandatory to add an item to a cart.<br />false: itemId
is mandatory to add an item to a cart
true
Customer context
Identifies a customer
"d7e78a21-bee3-4448-bf1c-d5b5461dbda2"
Customer type
"EMPLOYEE"
Customer attributes
{ "goldMember": [false] }
Customer segments
{ "age": 23, "gender": "female" }
Total price of cart items after discount including Shipping and Shipping Discount
95
Total price of cart items including Shipping without any discount
120
Total discount applied to cart
25
Total fees applied to cart
25
Additional item options
Additional item options
Attribute ID
"60c2a358eb2ec30008ae70a1"
Attribute name
"gift wrapping (small)"
Attribute type
"GIFT"
Attribute price
10
Attribute description
"Gift wrapping for a small package"
ITEM: Item-level attribute<br />ORDER: Cart-level attribute
"ITEM"
Attribute applicability
"true"
Attribute level
"order"
Discount object
Fees associated with a specific cart or an individual line item of a cart
System-generated fee ID, in UUID format. While creating a cart or line item with fee, fabric generates this ID for the specified fee.
"73bc09d0-874a-4c3d-84d0-df1670d03578"
Attribute for which fee is applied
"gift"
Fee type
"gift_wrap"
Fee amount
10.5
Placeholder for additional information in key:value
pairs
"{'from': 'sam', 'to': 'david' }"
List of recommended products that are available for purchase along with the item added to the cart
Promotion ID
"fef78121-bee3-4448-bf1c-d5b5461dbda2"
Promotion title
"Buy one get one free"
Suggested item ID
19
IDs of the items for which this promotion is applicable
Suggested item ID
Price lists to which the promotion is applicable
A unique identifier of the priceList event. The price list ID.
Suggested quantity of items
x >= 1
1
Maximum quantity of items allowed as part of the promotion
x >= 1
1
Indicates if the suggested item is a free item. The options are:<br />true: The suggested item is provided for free.<br />false: The suggested item is not offered for free.
true
Discount type, such as %OFF, AMOUNT_OFF, and FIXED_PRICE
"AMOUNT_OFF"
Discount amount
10
Was this page helpful?
curl --request DELETE \
--url https://prod.cart.fabric.inc/v2/carts/{cartId}/attributes/fees \
--header 'Authorization: <authorization>' \
--header 'x-site-context: <x-site-context>'
{
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"items": [
{
"cartItemId": "88cded0f-1439-40eb-a7a0-167e8bffdb3b",
"itemId": "1000000001",
"title": "Varnet Garden Light Kit",
"sku": "16B2GS8LD5FDS",
"items": [
{
"items": "<any>",
"cartItemId": "12gved0f-7645-40cb-y7b0-167f8bggdb3z",
"itemId": "1730902008",
"title": "Light Cover",
"sku": "13B9CL6WT2SLW",
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"type": "GIFT",
"value": "true",
"price": 10,
"level": "order",
"items": [
"1000000001"
]
}
],
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"quantity": 15,
"type": "WEB_SHIP",
"subType": "Border-free",
"priceListId": "108674",
"lineItemId": 1,
"isActive": true,
"unitPrice": {
"currency": "USD",
"amount": 100,
"sale": 80,
"discount": {
"price": 80,
"discountAmount": 20,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
},
"totalPrice": {
"currency": "USD",
"amount": 100,
"sale": 80,
"discount": {
"price": 80,
"discountAmount": 20,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
},
"attributeTotalPrice": 10,
"group": [
"61d38e117162b7dba69c3d6d"
],
"extra": {
"productFamily": "Laptop computers"
},
"channel": 12,
"isPickup": true,
"warehouseId": "XYZ-1234",
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"shipTo": {
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "test@mail.com",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "test@mail.com"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "test@mail.com"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123"
},
"fulfillment": {
"type": "WEB_SHIP",
"networkCode": "ShipToCNC",
"channelId": "12",
"inventoryType": "availablePreorder",
"inventory": {
"virtualCounters": {
"availableToPurchase": 10
},
"id": "62272e917b12209e68751d94",
"sku": "SKU00025",
"itemId": 4225678911,
"locationNum": 473746,
"channelId": 12,
"vendorId": "vendor123",
"leadTime": 1234,
"inventoryType": "Safety stock",
"infiniteInventory": true,
"counters": {
"on-hand": 10
},
"attributes": {
"buy online, pick up in-store (bopis)": true
},
"backOrderDate": "2022-08-08T00:00:00.000Z",
"preOrderDate": "2022-08-08T00:00:00.000Z",
"backOrderLimit": 100,
"preOrderLimit": 100,
"safetyStock": 10,
"lowStock": 10,
"segment": "Clothing",
"region": "US"
}
}
}
],
"attributeTotalPrice": 10,
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"quantity": 1,
"priceListId": "100000",
"lineItemId": 1,
"isActive": true,
"unitPrice": {
"currency": "USD",
"amount": 100,
"sale": 80,
"discount": {
"price": 80,
"discountAmount": 20,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
},
"totalPrice": {
"currency": "USD",
"amount": 100,
"sale": 80,
"discount": {
"price": 80,
"discountAmount": 20,
"promosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
},
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"type": "GIFT",
"value": "true",
"price": 10,
"level": "order",
"items": [
"1000000001"
]
}
],
"priceAdjustments": [
{
"id": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"reason": "compensation for delay",
"amount": 20,
"attributes": {
"goldMember": [
false
]
}
}
],
"isPickup": true,
"warehouseId": "XYZ-1234",
"shipTo": {
"shipToId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"cartId": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"createdAt": "2022-02-18T15:12:40.974580",
"updatedAt": "2022-02-18T15:12:40.974580",
"shipMethod": {
"cost": {
"amount": 10,
"currency": "USD",
"discount": 5
},
"shipMethodId": "1234",
"shipmentCarrier": "FedEx",
"shipmentMethod": "Next Day"
},
"address": {
"attention": "Billing manager",
"street1": "100 NE 100th St.",
"street2": "Suite 710",
"street3": "Seventh floor",
"street4": "Attention: Pat E. Kake",
"city": "Seattle",
"state": "Washington",
"country": "USA",
"zipCode": "98125",
"email": "test@mail.com",
"kind": "shipping",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
}
},
"shipToType": "SHIP_TO_ADDRESS",
"taxCode": "FR1000",
"isPickup": true,
"altPickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "test@mail.com"
},
"pickupPerson": {
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": {
"number": "123-456-7899",
"kind": "MOBILE"
},
"email": "test@mail.com"
},
"warehouseId": "XYZ-1234",
"storeId": "ABC-123"
},
"channel": 12,
"group": [
"61d38e117162b7dba69c3d6d"
],
"fees": [
{
"feeId": "73bc09d0-874a-4c3d-84d0-df1670d03578",
"name": "gift",
"type": "gift_wrap",
"amount": 10.5,
"attributes": "{'from': 'sam', 'to': 'david' }"
}
]
}
],
"createdAt": "2022-02-11T14:09:40.836703",
"updatedAt": "2022-02-22T22:36:40.194293",
"totalItems": 3,
"totalUniqueItems": 2,
"cartState": "PENDING",
"tenantId": "5f689caa4216e7000750d1ef",
"accountId": "5f689caa4216e7000750d1ef",
"userId": "61b8e921d0cf2e000882b09f",
"configuration": {
"allowAnonymousUser": true,
"orderNumberSource": "CART_ID",
"softReserve": true,
"addItemBySkuEnabled": true
},
"customer": {
"id": "d7e78a21-bee3-4448-bf1c-d5b5461dbda2",
"type": "EMPLOYEE",
"attributes": {
"goldMember": [
false
]
},
"segments": {
"age": 23,
"gender": "female"
}
},
"totalAmount": 95,
"subTotal": 120,
"totalDiscount": 25,
"totalFees": 25,
"currency": "USD",
"attributes": [
{
"attributeId": "60c2a358eb2ec30008ae70a1",
"name": "gift wrapping (small)",
"description": "Gift wrapping for a small package",
"mapping": "ITEM",
"type": "GIFT",
"value": "true",
"price": 10,
"level": "order",
"items": [
"1000000001"
]
}
],
"metadata": {
"approver": "620d8896058edb0009385311"
},
"allPromosApplied": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"value": "20",
"unit": "%OFF"
}
],
"sharedUserIds": [
"[\"*\"] or [userId1,userId2]"
],
"fees": [
{
"feeId": "73bc09d0-874a-4c3d-84d0-df1670d03578",
"name": "gift",
"type": "gift_wrap",
"amount": 10.5,
"attributes": "{'from': 'sam', 'to': 'david' }"
}
],
"suggestedProducts": [
{
"promotionId": "fef78121-bee3-4448-bf1c-d5b5461dbda2",
"promotionTitle": "Buy one get one free",
"itemId": 19,
"itemIds": [
19
],
"eligiblePriceLists": [
1000000001
],
"quantity": 1,
"promotionQuantity": 1,
"free": true,
"discountType": "AMOUNT_OFF",
"amount": 10
}
],
"error": {
"price": [
{
"price": {
"sale": 10,
"cost": 20,
"base": 20,
"currency": "USD",
"finalPrice": 10,
"totalPrice": 20,
"kind": "Promotion",
"discount": 5.5
},
"kind": "PROMOTION",
"channel": 12,
"lineItemId": 1,
"discounts": [
{
"promoId": "fza065tdr787",
"promoCode": "coupon123",
"promoTitle": "New Year discount",
"quantity": 1,
"amount": 20,
"value": 20,
"groupId": "new-items",
"promotionType": "PROMOTION",
"priority": 1,
"stackable": false,
"sku": "16B2GS8LD5FDS",
"itemId": "1000000001",
"itemKey": "Key1234",
"message": "New Year Promotion",
"unit": "%OFF",
"proratedQuantity": 1,
"proratedAmount": 3.33
}
]
}
],
"promo": [
{
"itemId": "1000000001",
"sku": "16B2GS8LD5FDS",
"code": "UNKNOWN_ERROR",
"detail": "Item is out of stock",
"lineItemId": 1
}
],
"inventory": [
{
"itemId": "1000000001",
"sku": "16B2GS8LD5FDS",
"code": "UNKNOWN_ERROR",
"detail": "Item is out of stock",
"lineItemId": 1
}
]
}
}