customers 资源类型

命名空间:microsoft.graph

重要

Microsoft Graph /beta 版本下的 API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。

代表 Dynamics 365 Business Central 中的客户。

方法

方法 返回类型 说明
获取客户 客户 获取客户。
创建客户 客户 创建客户。
更新客户 客户 汇报客户。
删除客户 删除客户。

属性

属性 类型 说明
id GUID 项的唯一 ID。 不可编辑。
number string 客户编号。
displayName string 指定客户的名称。 此名称将显示在客户的所有销售文档中。
type string 指定客户类型,可以是“公司”或“人员”。
address 导航。PostalAddress 指定客户的地址。 此地址将显示在客户的所有销售文档中。
phoneNumber string 指定客户的电话号码。
email string 指定客户的电子邮件地址。
website string 指定客户的主页地址。
税务责任 boolean 指定客户或供应商是否应对销售税负责。 如果客户需要纳税,则设置为 true
taxAreaId GUID 指定客户所属的税区。
taxAreaDisplayName string 指定客户所属税务区域的显示名称。
taxRegistrationNumber 字符串,最大大小为 20 指定客户的税务登记号。
currencyId GUID 指定客户使用的货币。
currencyCode 数字 客户的默认货币代码。
paymentTermsId GUID 指定客户使用的付款术语。
paymentMethodId GUID 指定客户使用的付款方式。
shipmentMethodId GUID 指定客户使用的发货方式。
封锁 string 指定无法过帐与客户的交易。 如果客户被阻止,则设置为 “全部”,如果未阻止,则设置为空白。
平衡 数字 指定客户欠已完成销售的付款金额。 此值也称为客户的余额。 只读。
overdueAmount 数字 指定客户的逾期金额。
totalSalesExcludingTax 数字 指定不包括客户税的总销售额。
lastModifiedDateTime datetime 上次修改客户的日期时间。 只读。

关系

Currencyies 表中必须存在货币 (currencyCode) 。

付款期限表中必须存在付款期限 (付款条款) 。

“发货方法”表中必须存在“发货方法” (“运输方法”“方法”) 。

付款方式表中必须存在付款方式 (paymentMethod) 。

“税区”表中必须存在 (taxArea) 。

JSON 表示形式

以下 JSON 表示形式显示了资源类型。

{
    "id": "GUID",
    "number": "string",
    "displayName": "string",
    "type": "string",
    "address": NAV.PostalAddress,
    "phoneNumber": "string",
    "email": "string",
    "website": "string",
    "taxLiable": "boolean",
    "taxAreaId": "GUID",
    "taxAreaDisplayName": "string",
    "taxRegistrationNumber": "string",
    "currencyCode": "string",
    "paymentTermsId": "GUID",
    "shipmentMethodId": "GUID",
    "paymentMethodId":  "GUID",
    "blocked": "string",
    "balance": "decimal",
    "overdueAmount": "numeric",
    "totalSalesExcludingTax": "numeric",
    "lastModifiedDateTime": "datetime"
}