共用方式為


使用客戶訂單建立購物車

適用於:合作夥伴中心 |由 21Vianet 營運的合作夥伴中心 |美國政府Microsoft雲端合作夥伴中心

您可以在購物車中新增客戶的訂單。 如需目前可供銷售之專案的詳細資訊,請參閱 雲端解決方案提供者計劃中的合作夥伴供應專案

備註

購物車自初始建立日起七天後失效。

先決條件

  • 合作夥伴中心身份驗證中所述的憑證。 此案例支援使用獨立應用程式和 App+使用者認證進行驗證。

  • 客戶 ID (customer-tenant-id)。 如果您不知道客戶的識別碼,您可以選取 [客戶] 工作區,然後選取客戶清單中的客戶,然後選取 [帳戶],在合作夥伴中心進行查詢。 在客戶的 [帳戶] 頁面上,在 [客戶帳戶資訊] 區段中尋找 Microsoft ID。 Microsoft ID 與客戶 ID (customer-tenant-id) 相同。

C#

若要為客戶建立訂單:

  1. 實例化 Cart 物件。

  2. 建立 CartLineItem 物件的清單,並將清單指派給購物車的 LineItems 屬性。 每個購物車明細項目都包含一個產品的購買資訊。 您必須至少有一個購物車委刊項。

  3. 使用客戶識別碼呼叫 IAggregatePartner.Customers.ById 方法來識別客戶,然後從 Cart 屬性擷取介面,以取得購物車作業的介面。

  4. 呼叫 CreateCreateAsync 方法來建立購物車。

  5. 若要完成證明並包含其他轉銷商,請參閱下列範例要求和回應範例:

索取樣品


{
    "PartnerOnRecordAttestationAccepted":true,     "lineItems": [
        {
            "id": 0,
            "catalogItemId": "CFQ7TTC0LH0Z:0001:CFQ7TTC0K18P",
            "quantity": 1,
            "billingCycle": "monthly",
            "termDuration": "P1M",
            "renewsTo": null,
            "provisioningContext": {},
            "customTermEndDate": "2022-02-19T00:00:00Z"
        },
        {
            "id": 1,
            "catalogItemId": "CFQ7TTC0LFLS:0002:CFQ7TTC0KDLJ",
            "quantity": 2,
            "billingCycle": "monthly",
            "termDuration": "P1Y",
            "participants": [
                {
                    "key": "transaction_reseller",
                    "value": "5357564"
                },
                 {
                    "key": "additional_transaction_reseller",                     
                    "value": "517285"
                },
                 {
                    "key": "additional_transaction_reseller", 
                    "value": "5357563"
                }
            ]
        }
    ]
}


回應範例


{
    "id": "3e22b548-647d-4223-9675-1fcb6cb57665",
    "creationTimestamp": "2021-08-18T17:29:52.3517492Z",
    "lastModifiedTimestamp": "2021-08-18T17:29:52.3517553Z",
    "expirationTimestamp": "2021-08-25T17:30:11.2406416Z",
    "lastModifiedUser": "da62a0dc-35e9-4601-b48e-a047bd3ec7c1",
    "status": "Active",
    "lineItems": [
        {
            "id": 0,
            "catalogItemId": "CFQ7TTC0LH0Z:0001:CFQ7TTC0K18P",
            "quantity": 1,
            "currencyCode": "USD",
            "billingCycle": "monthly",
            "termDuration": "P1M",
	    "customTermEndDate": "2022-02-19T00:00:00Z";
            "provisioningContext": {},
            "orderGroup": "0"
        },
        {
            "id": 1,
            "catalogItemId": "CFQ7TTC0LFLS:0002:CFQ7TTC0KDLJ",
            "quantity": 2,
            "currencyCode": "USD",
            "billingCycle": "monthly",
            "termDuration": "P1Y",
            "participants": [
                {
                    "key": "transaction_reseller",
                    "value": "5357564"
                },
                {
                    "key": "additional_transaction_reseller", 
                    "value": "517285"
                },
                {
                    "key": "additional_transaction_reseller", 
                    "value": "5357563"
                }
            ],
            "provisioningContext": {},
            "orderGroup": "0"
        }
    ],
    "links": {
        "self": {
            "uri": "/customers/f81d98dd-c2f4-499e-a194-5619e260344e/carts/3e22b548-647d-4223-9675-1fcb6cb57665",
            "method": "GET",
            "headers": []
        }
    },
    "attributes": {
        "objectType": "Cart"
    }
}


C# 範例

// IAggregatePartner partnerOperations;
// string customerId;
// string subscriptionId;

var cart = new Cart()
{
    LineItems = new List<CartLineItem>()
    {
        new CartLineItem()
        {
      /* Microsoft Azure Subscription */
            Id = 0,
            CatalogItemId = "MS-AZR-0145P",
            Quantity = 1,
            BillingCycle = BillingCycleType.Monthly,
            TermDuration = "P1Y"
        },
        new CartLineItem()
        {
      /* Azure Reserved Instance */
            Id = 1,
            CatalogItemId = "DZH318Z0BQ36:004G:DZH318Z08C0S",
            Quantity = 1,
            BillingCycle = BillingCycleType.OneTime,
            TermDuration = "P1Y",
            ProvisioningContext = new Dictionary<string, string>
            {
                { "subscriptionId", subscriptionId },
                { "scope", "shared" }
            }
        },
        new CartLineItem()
        {
      /* Azure Reserved Instance */
            Id = 2,
            CatalogItemId = "DZH318Z0BQ36:004J:DZH318Z08B8X",
            Quantity = 1,
            BillingCycle = BillingCycleType.OneTime,
            TermDuration = "P3Y",
            ProvisioningContext = new Dictionary<string, string>
            {
                { "subscriptionId", subscriptionId },
                { "scope", "shared" }
            }
        },
        new CartLineItem()
        {
      /* Perpetual Software */
            Id = 3,
            CatalogItemId = "DG7GMGF0DWM3:0002:DG7GMGF0DT1M",
            Quantity = 1,
            BillingCycle = BillingCycleType.OneTime
        },
        new CartLineItem()
        {
      /* SaaS */
            Id = 4,
            CatalogItemId = "DZH318Z0BXWC:0002:DZH318Z0BMRV",
            Quantity = 1,
            BillingCycle = BillingCycleType.Monthly,
            TermDuration = "P1M"
        },
        new CartLineItem()
        {
      /* SaaS Free Trial */
            Id = 5,
            CatalogItemId = "DZH318Z0C0WF:0001:DZH318Z0BP69",
            Quantity = 10,
            BillingCycle = BillingCycleType.None,
            TermDuration = "P1M",
            RenewsTo = new RenewsTo
            {
                TermDuration = "P1Y"
            }
        }
    }
};

cart = partnerOperations.Customers.ById(customerId).Carts.Create(cart);

JAVA

合作夥伴中心 Java SDK 可用來管理合作夥伴中心資源。 這是一個由合作夥伴社區維護的開源項目,不受 Microsoft 的正式支持。 如果您遇到問題,可以 從社群取得協助 ,或在 GitHub 上開啟問題

若要為客戶建立訂單:

  1. 實例化 Cart 物件。

  2. 建立 CartLineItem 物件清單,並將清單指派給購物車的明細項目。 每個購物車明細項目都包含一個產品的購買資訊。 您必須至少有一個購物車委刊項。

  3. 使用客戶識別碼呼叫 IAggregatePartner.getCustomers().byId 函式來識別客戶,然後從 getCart 函式擷取介面,以取得購物車作業的介面。

  4. 呼叫 create 函數來建立購物車。

Java 範例

// IAggregatePartner partnerOperations;
// String customerId;
// String subscriptionId;
// String catalogItemId;

CartLineItem lineItem = new CartLineItem();

lineItem.setBillingCycle(BillingCycleType.OneTime);
lineItem.setCatalogItemId(catalogItemId);
lineItem.setFriendlyName("Sample RI Purchase");
lineItem.setQuantity(1);

Map<String, String> provisioningContext = new HashMap<String,String>();

provisioningContext.put("duration", "3Years");
provisioningContext.put("scope", "shared");
provisioningContext.put("subscriptionId", subscriptionId);

lineItem.setProvisioningContext(provisioningContext);

List<CartLineItem> lineItemList = new ArrayList<CartLineItem>();
lineItemList.add(lineItem);

Cart cart = new Cart();
cart.setLineItems(lineItemList);

Cart cartCreated = partnerOperations.getCustomers().byId(customerId).getCarts().create(cart);

PowerShell

合作夥伴中心 PowerShell 模組可用來管理合作夥伴中心資源。 這是一個由合作夥伴社區維護的開源項目,不受 Microsoft 的正式支持。 如果您遇到問題,可以 從社群取得協助 ,或在 GitHub 上開啟問題

若要為客戶建立訂單:

  1. 實例化 Cart 物件。

  2. 建立 CartLineItem 物件清單,並將清單指派給購物車的明細項目。 每個購物車明細項目都包含一個產品的購買資訊。 您必須至少有一個購物車委刊項。

  3. 執行 New-PartnerCustomerCart 命令以建立購物車。

# $customerId
# $subscriptionId
# $catalogItemId

$lineItem = New-Object -TypeName Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCartLineItem

$lineItem.BillingCycle = 'OneTime'
$lineItem.CatalogItemId = $catalogItemId
$lineItem.FriendlyName = 'Sample RI Purchase'
$lineItem.ProvisioningContext.Add('duration', '1Year')
$lineItem.ProvisioningContext.Add('scope', 'shared')
$lineItem.ProvisioningContext.Add('subscriptionId', $subsciptionId)
$lineItem.Quantity = 10

New-PartnerCustomerCart -CustomerId $customerId -LineItems $lineItem

REST 要求

請求語法

方法 請求網址識別碼 (URI)
貼文 {baseURL}/v1/customers/{customer-id}/carts HTTP/1.1

URI 參數

使用下列路徑參數來識別客戶。

名稱 類型 為必填項目 Description
客戶識別碼 字串 Yes 識別客戶的 GUID 格式客戶識別碼。

請求標頭

如需詳細資訊,請參閱合作夥伴中心 REST 標頭

請求主體

下表說明要求本文中的 購物車 屬性。

房產 類型 為必填項目 Description
識別碼 字串 成功建立購物車時提供的購物車識別碼。
creationTimeStamp DateTime 購物車的建立日期,以日期時間格式。 成功建立購物車時套用。
lastModified時間戳記 DateTime 購物車上次更新的日期,以日期時間格式。 成功建立購物車時套用。
到期時間戳記 DateTime 購物車到期的日期,以日期時間格式。 成功建立購物車時套用。
lastModifiedUser 字串 上次更新購物車的使用者。 成功建立購物車時套用。
明細項目 物件陣列 Yes CartLineItem 資源陣列。
PartnerOnRecordAttestation已接受 布林值 Yes 確認證明完成

下表說明要求本文中的 CartLineItem 屬性。

備註

透過 API 結帳購物車時,行項目會 依照放入購物車的順序處理。 若購物車中有兩款相同類型的商品,一款有促銷編號,另一款沒有(例如條款不同),該訂單可能會影響具有新商品供應限制的促銷資格。 如果你要結帳多件商品,務必將任何符合促銷資格的商品 優先放入購物車

房產 類型 為必填項目 Description
識別碼 字串 購物車委刊項的唯一識別碼。 成功建立購物車時套用。
catalogId 字串 Yes 目錄項目識別碼。 請確定目錄項目的可用性適用於正確的區段。
friendlyName 字串 選擇性。 合作夥伴所定義之專案的易記名稱,以協助消除歧義。
促銷標識符 字串 選擇性。 大多數新商業促銷會自動套用,但對於可選促銷(如 Bridge to the Cloud 2)若要套用到購物車項目,合作夥伴在加入購物車時必須附上促銷 ID。
數量 整數 (int) Yes 授權或執行個體的數目。
貨幣代碼 字串 貨幣代碼。
計費週期 物體 Yes 為目前期間設定的計費週期類型。
customTermEndDate DateTime 您要共同終止新訂用帳戶的現有訂用帳戶的結束日期。
參與者 物件字串配對清單 購買時記錄的 PartnerId 集合 (PartnerID)。
布建內容 字典<字串, 字串> 佈建目錄中某些項目所需的資訊。 SKU 中的 provisioningVariables 屬性會指出目錄中特定專案需要哪些屬性。
orderGroup 字串 一個群組,用於指示哪些項目可以放在一起。
錯誤 物體 如果發生錯誤,則在建立購物車後套用。
renewTo 物件陣列 RenewTo 資源陣列。
認證已接受 布林值 表示同意要約或 SKU 條件。 只有 SkuAttestationProperties 或 OfferAttestationProperties enforceAttestation 為 True 的供應項目或 SKU 才需要。
transaction_reseller 繩子 當間接提供者代表間接轉銷商下訂單時,請只填入此欄位 間接 轉銷商 的 PartnerID (絕不會是間接提供者的識別碼) 。 這確保了激勵措施的正確核算。
additional_transaction_reseller 繩子 當間接供應商代表間接經銷商下單時,請只填寫 Extra 間接經銷 商的 PartnerID(絕不可填入間接供應商的 ID)。 這些其他經銷商不適用優惠。 最多只能輸入五位間接經銷商。 此要求僅適用於在歐洲國家/地區內進行交易的合作夥伴。
scheduledNextTerm指示 物體 定義試用訂閱的下一個期限指示。 合作夥伴可指定該付費訂閱續約時的期限、計費頻率及數量。

下表說明 Microsoft Marketplace 供應專案要求本文中的 RenewTo 屬性。

房產 類型 為必填項目 Description
termDuration 字串 續約期限持續時間的 ISO 8601 表示。 目前支援的值為 P1M (1 個月)和 P1Y (1 年)。
ScheduledNextTerm說明

下表說明 NCE 授權型試用供應專案要求本文中的 scheduledNextTermInstructions 屬性。 若未指定數值,試用將續訂為付費訂閱,享有年度期限、月費計費及25個授權。

房產 類型 為必填項目 Description
產品 陣列 一個陣列,指定試用訂閱轉換為付費訂閱時的優惠,以及付費訂閱的期限和計費頻率。
數量 整數 (int) 試用服務續約後,對應的付費訂閱的授權數量。
Product

下表描述 NCE 授權型試用供應專案要求本文中的 productTerm 屬性。 若此陣列中未指定數值,試用期將續訂為付費訂閱,並以年度期限、月費計費。

房產 類型 為必填項目 Description
產品ID 字串 試用期轉換為的付費訂閱產品所代表的 GUID 格式。
skuId 字串 一個格式化為代表試用續訂的付費訂閱 SKU 的 GUID。
可用性標識碼 字串 格式化的 GUID 用來表示試用期過後續約為付費訂閱時的可用性。
計費週期 字串 付費訂閱在試用期間續約後的計費頻率。
termDuration 字串 對應的付費訂閱在試用優惠續約後的期限長度。

範例請求

POST /v1/customers/d6bf25b7-e0a8-4f2d-a31b-97b55cfc774d/carts HTTP/1.1
Authorization: Bearer <token>
Accept: application/json
MS-RequestId: 4fa6dad6-a89f-4875-8247-8294a10ae1cf
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd
X-Locale: en-US
MS-PartnerCenter-Client: Partner Center .NET SDK
Content-Type: application/json
Host: api.partnercenter.microsoft.com
Content-Length: 496
Expect: 100-continue

{
  "lineItems": [
    {
    /* Microsoft Azure Subscription */
      "id": 0,
      "catalogItemId": "MS-AZR-0145P",
      "quantity": 1,
      "billingCycle": "monthly",
      "termDuration": "P1Y"
    },
    {
    /* Azure Reserved Instance */
      "id": 1,
      "catalogItemId": "DZH318Z0BQ36:004G:DZH318Z08C0S",
      "quantity": 1,
      "billingCycle": "one_time",
      "termDuration": "P1Y",
      "provisioningContext": {
        "subscriptionId": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
        "scope": "shared"
      }
    },
    {
    /* Azure Reserved Instance */
      "id": 2,
      "catalogItemId": "DZH318Z0BQ36:004J:DZH318Z08B8X",
      "quantity": 1,
      "billingCycle": "one_time",
      "termDuration": "P3Y",
      "provisioningContext": {
        "subscriptionId": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
        "scope": "single"
      }
    },
    {
    /* Perpetual Software */
      "id": 3,
      "catalogItemId": "DG7GMGF0DWTL:0001:DG7GMGF0DSFM",
      "quantity": 1,
      "billingCycle": "one_time"
    },
    {
    /* SaaS */
      "id": 4,
      "catalogItemId": "DZH318Z0BXWC:0002:DZH318Z0BMRV",
      "quantity": 1,
      "billingCycle": "monthly",
      "termDuration": "P1M"
    },
  {
    /* SaaS Free Trial */
       "id": 5,
       "catalogItemId": "DZH318Z0C0WF:0001:DZH318Z0BP69",
       "quantity": 10,
       "billingCycle": "none",
       "termDuration": "P1M",
       "renewsTo": {
         "termDuration": "P1Y"
       }
    }
  ]
}

這很重要

自 2023 年 6 月起,最新的合作夥伴中心 .NET SDK 版本 3.4.0 現已封存。 您可以 從 GitHub 下載 SDK 版本,以及包含有用資訊的 讀我檔案

建議合作夥伴繼續使用 合作夥伴中心 REST API

REST 響應

如果成功,這個方法會在回應內文中傳回填入的 Cart 資源。

回應成功和錯誤碼

每個回應都附帶一個HTTP狀態碼,指示成功或失敗和偵錯資訊。 使用網路追蹤工具讀取此程式碼、錯誤類型和其他參數。 如需完整清單,請參閱 錯誤碼

回應範例

HTTP/1.1 201 Created
Content-Length: 764
Content-Type: application/json; charset=utf-8
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd
MS-RequestId: 4fa6dad6-a89f-4875-8247-8294a10ae1cf
X-Locale: en-US,en-US
MS-CV: sF/wRa2ih0CzbABc.0
MS-ServerId: 000001
Date: Thu, 15 Mar 2018 17:15:01 GMT
{
  "id": "3655b1a0-b1c9-4268-9824-577fdbc4d0be",
  "creationTimestamp": "2019-01-16T00:45:41.6062996Z",
  "lastModifiedTimestamp": "2019-01-16T00:45:41.6062996Z",
  "expirationTimestamp": "2019-01-16T01:00:54.4188497Z",
  "lastModifiedUser": "1824b7fc-2fac-4478-b177-66823c40ab75",
  "status": "Active",
  "lineItems": [
    {
      "id": 0,
      "catalogItemId": "MS-AZR-0145P",
      "quantity": 1,
      "currencyCode": "USD",
      "billingCycle": "monthly",
      "termDuration": "P1Y",
      "orderGroup": "OMS-0"
    },
    {
      "id": 1,
      "catalogItemId": "DZH318Z0BQ36:004G:DZH318Z08C0S",
      "quantity": 1,
      "currencyCode": "USD",
      "billingCycle": "one_time",
      "termDuration": "P1Y",
      "provisioningContext": {
        "subscriptionId": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
        "scope": "shared"
      },
      "orderGroup": "0"
    },
    {
      "id": 2,
      "catalogItemId": "DZH318Z0BQ36:004J:DZH318Z08B8X",
      "quantity": 1,
      "currencyCode": "USD",
      "billingCycle": "one_time",
      "termDuration": "P3Y",
      "provisioningContext": {
        "subscriptionId": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
        "scope": "shared"
      },
      "orderGroup": "0"
    },
    {
      "id": 3,
      "catalogItemId": "DG7GMGF0DWM3:0002:DG7GMGF0DT1M",
      "quantity": 1,
      "currencyCode": "USD",
      "billingCycle": "one_time",
      "orderGroup": "0"
    },
    {
      "id": 4,
      "catalogItemId": "DZH318Z0BXWC:0002:DZH318Z0BMRV",
      "quantity": 1,
      "currencyCode": "USD",
      "billingCycle": "monthly",
      "termDuration": "P1M",
      "orderGroup": "1"
    },
  {
      "id": 5,
      "catalogItemId": "DZH318Z0C0WF:0001:DZH318Z0BP69",
      "quantity": 10,
      "currencyCode": "USD",
      "billingCycle": "none",
      "termDuration": "P1M",
      "renewsTo": {
  "termDuration": "P1Y"
      },
    "orderGroup": "2"
    }
  ],
  "links": {
    "self": {
      "uri": "/customers/28045616-f6b9-462f-9701-0d89b5e65c44/carts/3655b1a0-b1c9-4268-9824-577fdbc4d0be",
      "method": "GET",
      "headers": []
    }
  },
  "attributes": {
    "objectType": "Cart"
  }
}

新商務授權型服務的範例

備註

授權型服務的新商務體驗包含許多新功能,並可供所有 雲端解決方案提供者 (CSP) 使用。 如需詳細資訊,請參閱 新的商務體驗概觀

範例請求

POST /v1/customers/932c4101-dc08-461b-b4c1-75d80e905775/carts HTTP/1.1
Host: api.partnercenter.microsoft.com
Content-Type: application/json
Content-Length: 165

{
	"LineItems": [
		{
			"CatalogItemId":"CFQ7TTC0LFLZ:0002:CFQ7TTC0K4TS",
			"Quantity": 1,
			"TermDuration": "P1M",
			"BillingCycle": "Monthly"
		}
	]
}

這很重要

Azure 計畫和永續軟體條目不支援 termDuration 屬性。 在查詢這類物品時,請避免包含這些內容。

// request example where several renewal values for an NCE license-based trial are specified
http
POST /v1/customers/932c4101-dc08-461b-b4c1-75d80e905775/carts HTTP/1.1
Host: api.partnercenter.microsoft.com
Content-Type: application/json
Content-Length: 165
{
  "lineItems": [
    {
      "id": 0,
      "catalogItemId": "CFQ7TTC0LCHC:0003:CFQ7TTC0XCQC",
      "quantity": 25,
      "currencyCode": "USD",
      "billingCycle": "none",
      "termDuration": "P1M",
      "promotionId": null,
      "provisioningContext": {},
      "customTermEndDate": null,
      "scheduledNextTermInstructions": {
        "product": {
          "billingCycle": "monthly",
          "termDuration": "P1M" 
        }
      }
    }
  ],
  "partnerOnRecordAttestationAccepted": true
}

REST 響應

如果成功,這個方法會在回應內文中傳回填入的 Cart 資源。

回應成功和錯誤碼

每個回應都附帶一個HTTP狀態碼,指示成功或失敗,以及其他偵錯資訊。 使用網路追蹤工具讀取此程式碼、錯誤類型和其他參數。 如需完整清單,請參閱 錯誤碼

回應範例


{
    "id": "2517c51b-58cd-4abe-87ed-3ab812401ab4",
    "creationTimestamp": "2023-07-11T21:16:11.55149Z",
    "lastModifiedTimestamp": "2023-07-11T21:16:11.5515713Z",
    "expirationTimestamp": "2023-07-18T21:16:17.2480482Z",
    "lastModifiedUser": "9db12087-fbc3-481c-8965-73d44ff88e27",
    "status": "Active",
    "lineItems": [
        {
            "id": 0,
            "catalogItemId": "CFQ7TTC0LF8S:0001:CFQ7TTC0VZW5",
            "quantity": 1,
            "currencyCode": "USD",
            "billingCycle": "monthly",
            "termDuration": "P1Y",
            "provisioningContext": {},
            "orderGroup": "0",
            "pricing": {
                "listPrice": 30.4,
                "discountedPrice": 30.4,
                "proratedPrice": 30.4,
                "price": 30.4,
                "extendedPrice": 364.8
            }
        }
    ],
    "links": {
        "self": {
            "uri": "/customers/ebd8b4c2-4069-46a8-bd70-123d6dec3e39/carts/2517c51b-58cd-4abe-87ed-3ab812401ab4",
            "method": "GET",
            "headers": []
        }
    },
    "attributes": {
        "objectType": "Cart"
    }
}
// response content for an order containing an NCE license-based trial
{
  "id": "99d3777b-61da-4c95-aefa-203c248c4180",
  "creationTimestamp": "2025-02-04T22:22:36.7924103Z",
  "lastModifiedTimestamp": "2025-02-04T22:22:36.7924109Z",
  "expirationTimestamp": "2025-02-11T22:23:34.5190698Z",
  "lastModifiedUser": "b5109661-56c5-45ed-9447-f67463458a97",
  "status": "Active",
  "lineItems": [
    {
      "id": 0,
      "catalogItemId": "CFQ7TTC0LCHC:0003:CFQ7TTC0XCQC",
      "quantity": 25,
      "currencyCode": "USD",
      "billingCycle": "none",
      "termDuration": "P1M",
      "provisioningContext": {},
      "orderGroup": "0",
      "pricing": {
        "listPrice": 0.0,
        "discountedPrice": 0.0,
        "proratedPrice": 0.0,
        "price": 0.0,
        "extendedPrice": 0.0
      },
      "scheduledNextTermInstructions": {
        "product": {
          "productId": "CFQ7TTC0LCHC",
          "skuId": "0002",
          "availabilityId": "CFQ7TTC0XL82",
          "billingCycle": "monthly",
          "termDuration": "P1M"
        },
        "quantity": 25
      }
    }
  ],
  "links": {
    "self": {
      "uri": "/customers/81e78b53-9aa8-44e7-a041-3b15272d8f84/carts/99d3777b-61da-4c95-aefa-203c248c4180",
      "method": "GET",
      "headers": []
    }
  },
  "attributes": {
    "objectType": "Cart"
  }
}