共用方式為


取得採購單上傳完整狀態

適當的角色:管理員代理

合作夥伴可能需要提供客戶採購單和/或招標或提案要求 (RFP) 資訊,才能在合作夥伴中心內完成交易。 本文說明合作夥伴如何使用合作夥伴中心,以程序設計方式取得採購單狀態。

必要條件

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

REST 回應

在合作夥伴上傳客戶採購單和/或招標文件之後,可以呼叫「取得訂單詳情」來查看狀態變更為 po_upload_complete

回應成功和錯誤碼

每個回應都有一個 HTTP 狀態代碼,指出成功或失敗,以及更多偵錯資訊。 使用網路追蹤工具來讀取此程式代碼、錯誤類型等等參數。 如需查看完整列表,請參閱錯誤代碼

回應範例

"id": "54be297b70ad",
    "alternateId": "54be297b70ad",
    "referenceCustomerId": "71b277b9-9cc1-4fef-a0df-7355006cb52e",
    "billingCycle": "annual",
    "currencyCode": "USD",
    "currencySymbol": "$",
    "lineItems": [
        {
            …
        }
    ],
    "creationDate": "2022-03-08T17:38:57.5217119Z",
    "status": "po_upload_complete",
    "transactionType": "UserPurchase",
    "links": {
        "self": {
            "uri": "/customers/71b277b9-9cc1-4fef-a0df-7355006cb52e/orders/54be297b70ad",
            "method": "GET",
            "headers": []
        },
        "provisioningStatus": {
            "uri": "/customers/71b277b9-9cc1-4fef-a0df-7355006cb52e/orders/54be297b70ad/provisioningstatus",
            "method": "GET",
            "headers": []
        },
        "patchOperation": {
            "uri": "/customers/71b277b9-9cc1-4fef-a0df-7355006cb52e/orders/54be297b70ad",
            "method": "PATCH",
            "headers": []
        }
    },
    "client": {},
    "attributes": {
        "objectType": "Order"
    }
}