依標識碼取得傳輸詳細數據
必要條件
認證,如合作夥伴中心驗證所述。 此案例支援使用獨立應用程式和 App+使用者認證進行驗證。
客戶識別碼 (
customer-tenant-id
)。 如果您不知道客戶的標識碼,您可以在合作夥伴中心中選取 [客戶] 工作區,然後從客戶清單中查看客戶,然後從 [帳戶]。 在客戶的 [帳戶] 頁面上,尋找 [客戶帳戶資訊] 區段中的 [Microsoft 識別碼]。 Microsoft 識別碼與客戶識別碼 (customer-tenant-id
) 相同。現有傳輸的傳輸標識碼。
適當的角色:管理員 代理程式
REST 要求
要求語法
方法 | 要求 URI |
---|---|
GET | {baseURL}/v1/customers/{customer-id}/transfer/{transfer-id} HTTP/1.1 |
URI 參數
使用下列路徑參數來識別客戶,並指定要接受的轉移。
名稱 | 類型 | 必要 | 描述 |
---|---|---|---|
customer-id | 字串 | Yes | 識別客戶的 GUID 格式客戶識別碼。 |
transfer-id | 字串 | Yes | 識別傳輸的 GUID 格式傳輸識別碼。 |
要求標頭
如需詳細資訊,請參閱合作夥伴中心 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: aaaa0000-bb11-2222-33cc-444444dddddd
Accept: application/json
REST 回應
如果成功,這個方法會在回應本文中傳回填入 的 TransferEntity 資源。
回應成功和錯誤碼
每個回應都隨附 HTTP 狀態碼,會指出成功與否以及其他的偵錯資訊。 請使用網路追蹤工具來讀取此錯誤碼、錯誤類型和其他參數。 如需完整清單,請參閱錯誤碼。
進行中的回應範例
HTTP/1.1 200 OK
Content-Length: 1501
Content-Type: application/json; charset=utf-8
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd
MS-RequestId: 0d61b5ce-b396-4f5e-a50b-e8779d0d23cc
X-Locale: en-US
Date: Fri, 17 May 2024 18:25:25 GMT
{
"id": "96978f5b-ee35-486f-96e9-a17ed4a1d87d",
"status": "InProgress",
"transferType": 3,
"customerEmailId": "",
"createdTime": "2024-04-09T22:45:06.7851706Z",
"lastModifiedTime": "2024-04-10T17:26:56Z",
"customerName": "legacytomodern09022021",
"customerTenantId": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
"partnertenantid": "bbbbcccc-1111-dddd-2222-eeee3333ffff",
"sourcePartnerName": "test",
"sourcePartnerTenantId": "bbbbcccc-1111-dddd-2222-eeee3333ffff",
"targetPartnerName": "TEST_TEST_CSPIntegrationTest2T19Q3",
"targetPartnerTenantId": "ccccdddd-2222-eeee-3333-ffff4444aaaa",
"targetPartnerEmailId": "ccccdddd-2222-eeee-3333-ffff4444aaaa",
"transferDirection": 2,
"ignoreEligibilityCheck": false,
"lastModifiedUser": "fec7ff82-163d-4763-afb1-6947d2b0db28",
"lineItems": [
{
"id": 0,
"subscriptionId": "aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
"billingCycle": "unknown",
"quantity": 0,
"productType": 0,
"status": "InProgress"
},
{
"id": 0,
"subscriptionId": "bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f",
"billingCycle": "unknown",
"quantity": 0,
"productType": 5,
"status": "InProgress"
}
],
"links": {
"self": {
"uri": "/customers/aaaabbbb-0000-cccc-1111-dddd2222eeee/transfers/96978f5b-ee35-486f-96e9-a17ed4a1d87d",
"method": "GET",
"headers": []
}
},
"attributes": {
"objectType": "TransferEntity"
}
}
進行中的回應範例
HTTP/1.1 200 OK
Content-Length: 1501
Content-Type: application/json; charset=utf-8
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd
MS-RequestId: 0d61b5ce-b396-4f5e-a50b-e8779d0d23cc
X-Locale: en-US
Date: Fri, 17 May 2024 18:25:25 GMT
{
"id": "2d9a20f4-532d-438d-b694-bb7ab4585508",
"status": "Pending",
"transferType": 3,
"customerEmailId": "",
"createdTime": "2024-05-09T18:53:13.8486497Z",
"lastModifiedTime": "2024-05-09T18:53:14Z",
"customerName": "legacytomodern09022021",
"customerTenantId": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
"partnertenantid": "bbbbcccc-1111-dddd-2222-eeee3333ffff",
"sourcePartnerName": "test",
"sourcePartnerTenantId": "bbbbcccc-1111-dddd-2222-eeee3333ffff",
"targetPartnerName": "TEST_TEST_CSPIntegrationTest2T19Q3",
"targetPartnerTenantId": "ccccdddd-2222-eeee-3333-ffff4444aaaa",
"targetPartnerEmailId": "ccccdddd-2222-eeee-3333-ffff4444aaaa",
"transferDirection": 2,
"ignoreEligibilityCheck": false,
"lastModifiedUser": "35ebf490-ac97-44af-9048-d3cdac1e4c84",
"links": {
"self": {
"uri": "/customers/aaaabbbb-0000-cccc-1111-dddd2222eeee/transfers/2d9a20f4-532d-438d-b694-bb7ab4585508",
"method": "GET",
"headers": []
}
},
"attributes": {
"objectType": "TransferEntity"
}
}
已完成的回應範例
HTTP/1.1 200 OK
Content-Length: 1501
Content-Type: application/json; charset=utf-8
MS-CorrelationId: aaaa0000-bb11-2222-33cc-444444dddddd
MS-RequestId: 0d61b5ce-b396-4f5e-a50b-e8779d0d23cc
X-Locale: en-US
Date: Fri, 17 May 2024 18:25:25 GMT
{
"id": "1c53f090-7a5d-454f-bffa-696650863e79",
"status": "Complete",
"transferType": 3,
"customerEmailId": "",
"createdTime": "2024-04-24T19:29:58.4656093Z",
"lastModifiedTime": "2024-04-24T19:38:22Z",
"completedTime": "2024-04-24T19:36:12.7197415Z",
"customerName": "legacytomodern09022021",
"customerTenantId": "aaaabbbb-0000-cccc-1111-dddd2222eeee",
"partnertenantid": "bbbbcccc-1111-dddd-2222-eeee3333ffff",
"sourcePartnerName": "bbbbcccc-1111-dddd-2222-eeee3333ffff",
"sourcePartnerTenantId": "bbbbcccc-1111-dddd-2222-eeee3333ffff",
"targetPartnerName": "TEST_TEST_CSPIntegrationTest2T19Q3",
"targetPartnerTenantId": "ccccdddd-2222-eeee-3333-ffff4444aaaa",
"targetPartnerEmailId": "ccccdddd-2222-eeee-3333-ffff4444aaaa",
"transferDirection": 2,
"ignoreEligibilityCheck": false,
"lastModifiedUser": "f430373f-96d2-4ba5-b3ab-6b5dc69ae44f",
"lineItems": [
{
"id": 0,
"subscriptionId": "cccc2c2c-dd3d-ee4e-ff5f-aaaaaa6a6a6a",
"billingCycle": "unknown",
"quantity": 0,
"productType": 0
},
{
"id": 1,
"orderId": "bc857bb7-45ad-4667-b369-14126df2f74c",
"billingCycle": "unknown",
"quantity": 0,
"productType": 1
}
],
"links": {
"self": {
"uri": "/customers/aaaabbbb-0000-cccc-1111-dddd2222eeee/transfers/1c53f090-7a5d-454f-bffa-696650863e79",
"method": "GET",
"headers": []
}
},
"attributes": {
"objectType": "TransferEntity"
}
}