ここでは、新しいアカウントを作成するためのリクエストを投稿しているときにエラーが発生する完全なシナリオを提供しています。
テスト用に Intuit OAuth Access と OAuth API コンソールを使用しています (すべてのセキュリティ トークンを使用しています) (https://appcenter.intuit.com/Playground/OAuth)。
URL とリクエスト:
URL: https://services.intuit.com/sb/account/v2/570357960
方法 : ポスト
フォーマット: XML/JSON
Request:
<?xml version="1.0" encoding="UTF-16"?><Add xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" RequestId="4df87bw2-916a-
4r95-h5d6-06dce3667562"
xmlns="http://www.intuit.com/sb/cdm/v2"><ExternalRealmId>570357960</ExternalRealmId><Objectxsi:type="Account"><Name>CurrentAccount</Name><Active>true</Active><Type>Expense<
/Type><Subtype>Expense</Subtype><AcctNum>1111</AcctNum></Object></Add>
そして応答を取得します(htmlのエラー):
<div class="content-container"><fieldset>
<h2>500 - Internal server error.</h2>
<h3>There is a problem with the resource you are looking for, and it cannot be displayed.</h3>
また、RESTClient ユーティリティでも確認しましたが、上記と同じエラーが発生します。
同じセキュリティ トークンを持つ同じ URL (https://services.intuit.com/sb/account/v2/570357960) が GET データに対して正常に機能していることに注意してください。QB デスクトップからオンライン アプリケーションにデータを取得しています。