按 ID 获取传输详细信息
先决条件
合作伙伴中心身份验证中所述的凭据。 此方案支持使用独立应用和 App+User 凭据进行身份验证。
客户 ID (
customer-tenant-id
)。 如果不知道客户的 ID,可以通过选择“客户”工作区,然后从客户列表中选择客户,然后选择“帐户”,在合作伙伴中心中查找该 ID。 在客户的“帐户”页上的“客户帐户信息”部分查找 Microsoft ID。 Microsoft ID 与客户 ID (customer-tenant-id
) 相同。现有传输的传输标识符。
相应的角色:全局管理员 | 管理代理 | 销售代理
REST 请求
请求语法
方法 | 请求 URI |
---|---|
GET | {baseURL}/v1/customers/{customer-id}/transfer/{transfer-id} HTTP/1.1 |
URI 参数
使用以下路径参数标识客户并指定要接受的转移。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
customer-id | 字符串 | 是 | 标识客户的 GUID 格式的客户 ID。 |
transfer-id | 字符串 | 是 | 标识传输的 GUID 格式传输 ID。 |
请求标头
有关详细信息,请参阅合作伙伴中心 REST 标头。
请求示例
GET /v1/customers/b67f0b00-f9e8-4c57-bcb5-0b8b95c6ccf0/transfers/46e8ed67-8adf-4f65-b3d8-d31318080556 HTTP/1.1
Authorization: Bearer <token>
Connection: keep-alive
MS-RequestId: 0d61b5ce-b396-4f5e-a50b-e8779d0d23cc
MS-CorrelationId: 68eacc61-971c-43b0-c06f-2622bf79b090
Accept: application/json
REST 响应
如果成功,此方法在响应正文中返回填充 的 TransferEntity 资源。
响应的成功和错误代码
每个响应都带有一个 HTTP 状态代码,用于指示成功或失败以及其他调试信息。 请使用网络跟踪工具来读取此代码、错误类型和其他参数。 有关完整列表,请参阅错误代码。
响应示例
HTTP/1.1 200 OK
Content-Length: 1501
Content-Type: application/json; charset=utf-8
MS-CorrelationId: 68eacc61-971c-43b0-c06f-2622bf79b090
MS-RequestId: 0d61b5ce-b396-4f5e-a50b-e8779d0d23cc
X-Locale: en-US
Date: Fri, 27 Mar 2020 18:25:25 GMT
{
"id": "46e8ed67-8adf-4f65-b3d8-d31318080556",
"status": "Active",
"createdTime": "2020-03-27T18:22:33.2875302Z",
"lastModifiedTime": "2020-03-27T18:22:33Z",
"customerTenantId": "b67f0b00-f9e8-4c57-bcb5-0b8b95c6ccf0",
"partnertenantid": "3a9a35ce-d5be-4814-ab58-4451c36fe157",
"sourcePartnerName": "Test_Test_09092019GBL",
"sourcePartnerTenantId": "7c8db11f-1e5e-4472-8386-f0b627d1f3e1",
"targetPartnerName": "Test_Test_09032019GBL",
"targetPartnerTenantId": "3a9a35ce-d5be-4814-ab58-4451c36fe157",
"lastModifiedUser": "edc0524d-2e42-4619-af7e-349c015cfdfd",
"lineItems": [
{
"id": 0,
"subscriptionId": "75B71186-73C3-45B4-A403-281C0D7EB032",
"offerId": "F72752C8-3E37-4C9B-A1A0-69E8442068DC",
"billingCycle": "annual",
"friendlyName": "Dynamics 365 Business Central Team Member",
"quantity": 1,
"partnerIdOnRecord": "5139005",
"addonItems": [
]
},
{
"id": 1,
"subscriptionId": "1FB4CB0A-EB79-4300-9E87-7D486054888A",
"offerId": "88F9EB8A-0636-45E8-A601-553E0A48AA9E",
"billingCycle": "annual",
"friendlyName": "Dynamics 365 Business Central External Accountant",
"quantity": 1,
"partnerIdOnRecord": "5139005",
"addonItems": [
]
},
{
"id": 2,
"subscriptionId": "08AB3010-B647-402E-8955-B6C0FB364D8F",
"offerId": "4D8F3B90-29B3-4E7B-B37C-4A435DDEF1D9",
"billingCycle": "annual",
"friendlyName": "Common Area Phone",
"quantity": 1,
"partnerIdOnRecord": "5139005",
"addonItems": [
]
}
],
"links": {
"self": {
"uri": "/customers/b67f0b00-f9e8-4c57-bcb5-0b8b95c6ccf0/transfers/46e8ed67-8adf-4f65-b3d8-d31318080556",
"method": "GET",
"headers": [
]
}
},
"attributes": {
"objectType": "TransferEntity"
}
}
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈