---
title: "MoneyV2"
description: "包含货币单位的金额"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/objects/money-v2'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/objects/money-v2.md'
---
# MoneyV2

包含货币单位的金额

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`MoneyV2`

## Fields

* `amount`

  [Decimal!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/decimal.md)

  包含小数的金额

* `currencyCode`

  [CurrencyCode!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common-objects/enums/currency-code.md)

  货币符号或代码

## Schema Definition

```graphql
type MoneyV2 { 
	amount: Decimal!
	currencyCode: CurrencyCode! 
}
```

## Field from

* [Company](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/b-2-b/objects/company.md).totalSpent

  公司订单金额

* [DiscountMinimumSubtotal](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-minimum-subtotal.md).greaterThanOrEqualToSubtotal

  应用折扣所需的最低小计

* [ProductCompareAtPriceRange](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/objects/product-compare-at-price-range.md).maxVariantCompareAtPrice

  产品变体的最高原价

* [ProductCompareAtPriceRange](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/objects/product-compare-at-price-range.md).minVariantCompareAtPrice

  产品变体的最低原价

* [DiscountCodeBasic](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-basic.md).totalSales

  使用折扣的订单的总销售额。
  

* [DiscountAmount](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-amount.md).amount

  折扣的价值

* [CustomerSegmentMember](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/objects/customer-segment-member.md).amountSpent

  消费累计

* [CompanyLocation](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/b-2-b/objects/company-location.md).totalSpent

  订单金额

* [ProductPriceRange](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/objects/product-price-range.md).maxVariantPrice

  产品变体的最高价

* [ProductPriceRange](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/objects/product-price-range.md).minVariantPrice

  产品变体的最低价

* [Customer](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/objects/customer.md).amountSpent

  总花费金额

* [DiscountAutomaticFreeShipping](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-free-shipping.md).maximumShippingPrice

  有资格享受折扣的最高运费金额

* [DiscountAutomaticFreeShipping](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-free-shipping.md).totalSales

  使用折扣的订单的总销售额。
  

* [DiscountCodeFreeShipping](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-free-shipping.md).maximumShippingPrice

  有资格享受折扣的最高运费金额

* [DiscountCodeFreeShipping](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-free-shipping.md).totalSales

  使用折扣的订单的总销售额

* [DiscountCodeBxgy](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-bxgy.md).totalSales

  使用折扣的订单的总销售额

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

