機械翻訳について

すべてのスケジュールの取得

get

/fscmRestApi/resources/11.13.18.05/purchaseOrderSchedules

リクエスト

問合せパラメータ
  • この問合せパラメータは、指定した開始日時点で有効なリソースをフェッチするために使用されます。 この問合せパラメータの値は、yyyy-MM-dd形式の日付を持つ文字列です
  • このパラメータを指定すると、指定した子がリソース・ペイロードに含まれます(リンクのみでなく)。 この問合せパラメータの値は"all"または""です。 カンマをセパレータとして使用して、複数の子を指定できます。 例: ?expand=Employees,Localizations. ネストされた子は、"Child.NestedChild"の書式に従って指定することもできます(例): ?expand=Employees.Managers). ネストされた子が指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?expand=Employees.Managers"は"?expand=Employees、Employees.Managers"と同じです(これにより、従業員とマネージャが展開されます)。
  • このパラメータは、リソース・フィールドをフィルタします。 指定されたフィールドのみが返されます。つまり、フィールドが指定されていない場合、フィールドは返されません(リンクのみを取得する場合に便利です)。 間接子リソースが指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?fields=Employees.Managers:Empname"は"?fields=;Employees:;Employees.Managers:Empname" (これはマネージャの"Empname"フィールドのみを返す)と同じです。この問合せパラメータの値は、リソース・フィールドのリストです。 属性は直接にすることができます(例): 従業員または間接(例): Employees.Managers) child. 拡張問合せパラメータと組み合せることはできません。 両方を指定した場合、フィールドのみが考慮されます。

    フォーマット : ?fields=Attribute1,Attribute2

    子リソースのフィールドの書式 : ?fields=Accessor1:Attribute1,Attribute2
  • コレクションを検索するための事前定義済ファインダとして使用されます。

    フォーマット : ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>

    使用可能なファインダ名および対応するファインダ変数を次に示します:

    • PrimaryKey : 主キーとして明細事業所識別子に従って、購買オーダー・スケジュールを検索します。
      ファインダ変数:
      • LineLocationId; integer; 購買オーダー・スケジュールを一意に識別する値。
    • findPOSchedules : 指定した値に従って購買オーダー・スケジュールを検索します。
      ファインダ変数:
      • Intent; string; インテントを一意に識別する値。 有効な値は、APUserおよびPOUserです。
      • POHeaderId; integer; 購買オーダーを一意に識別する値。
      • ScheduleStatus; string; 購買オーダー・スケジュールのステータス。
      • SysEffectiveDate; object.
  • このパラメータは、リソース・コレクション内で返されるリソースの数を制限します。 制限がリソース数を超えると、フレームワークは使用可能なリソースのみを返します。
  • このパラメータは、単一のリソースまたはリソース・コレクションへのアクセス中に特定のリンクのみを表示するために使用できます。 パラメータ値書式は、次のカンマ区切りリストです : <link_relation>

    例:
    self,canonical
  • リソース・コレクションの開始位置を定義するために使用します。 オフセットがリソース数を超えると、リソースは返されません。 デフォルト値は0です。
  • データのみを含めるために(リンク・セクションなしなど)、リソース品目ペイロードがフィルタ処理されます。
  • このパラメータは、指定されたフィールドに基づいてリソース・コレクションを順序付けます。 パラメータ値は、属性名のカンマ区切りの文字列で、それぞれオプションでコロンと「asc」または「desc」が続きます。 昇順の場合は「asc」、降順の場合は「desc」を指定します。 デフォルト値は「asc」です。 たとえば、?orderBy=field1:asc,field2:desc
  • この問合せパラメータは、where句を定義します。 リソース・コレクションは、指定された式を使用して問い合せられます。 この問合せパラメータの値は、1つ以上の式です。 例 : ?q=部門番号>=10および<= 30;事業所=NY

    フォーマット : ?q=expression1;expression2

    次の問合せ可能な属性を使用して、q問合せパラメータを使用してこの収集リソースをフィルタできます:
    • AnticipatedArrivalDate; string; 現在の予測出荷日に基づいてオーダーされた商品が配送される予定の日付。
    • BilledAmount; number; 購入価格に基づく照合済請求書明細に相当する金額。
    • BilledQuantity; number; 購買オーダー・スケジュールに対して請求された数量。
    • Buyer; string; 購買オーダーの管理を担当する個人。
    • BuyerId; integer; バイヤーを一意に識別する値。
    • CreationDate; string; バイヤーまたはアプリケーションが購買オーダー・スケジュールを作成した日時。
    • DocumentStatus; string; 購買オーダー・ライフ・サイクルに関連する購買オーダーのステータス。
    • DocumentStyle; string; 購買文書形式の名前。 この属性を使用すると、組織は、購買文書の使用と一致するように、アプリケーションに表示されるパラメータおよび値を制御できます。
    • FundsStatus; string; スケジュールの残余予算チェックまたは残余予算引当検証結果のステータス。
    • InvoiceMatchOption; string; 請求書を購買オーダーと照合するか受入と照合するかを決定する値。 購買オーダー明細が委託されている場合は、各請求書を消費通知と照合します。
    • LineLocationId; integer; 購買オーダー・スケジュールを一意に識別する値。
    • LineNumber; number; 購買オーダー明細を一意に識別する番号。
    • OrderNumber; string; 販売先法的エンティティの購買オーダーを一意に識別する番号。
    • POHeaderId; integer; 購買オーダーを一意に識別する値。
    • ProcurementBU; string; 購買オーダーを管理および所有するビジネス・ユニット。
    • RequestedDeliveryDate; string; バイヤーが仕入先が品目を搬送するように要求した日付。
    • RequisitioningBU; string; 購買依頼を作成するビジネス・ユニット。
    • ScheduleNumber; integer; 購買オーダー明細の購買オーダー・スケジュールを一意に識別する番号。
    • ScheduleStatus; string; 購買オーダー・スケジュールのステータス。
    • SoldToLegalEntity; string; 購買オーダーで購買を財務的に担当する法的エンティティ。
    • Supplier; string; 品目を履行する仕入先の名前。
    • SupplierSite; string; サプライヤが品目を購入するために使用する事業所。
  • "?totalResults=true"の場合、リソース・コレクション表現には"推定行数"が含まれます。それ以外の場合、カウントは含まれません。 デフォルト値はfalseです。
ヘッダー・パラメータ
  • このヘッダーは文字列値を受け入れます。 この文字列は、セミコロンで区切られた=のリストです。 有効日範囲操作の実行に使用されます。 受け入れられるパラメータは、RangeMode、RangeSpan、RangeStartDate、RangeEndDate、RangeStartSequenceおよびRangeEndSequenceです。 パラメータ値は常に文字列です。 RangeModeに指定できる値は、SET_LOGICAL_START、SET_LOGICAL_END、END_DATE、SET_EFFECTIVE_START、SET_EFFECTIVE_END、REPLACE_CORRECTION、REPLACE_UPDATE、RECONCILE_CORRECTION、CORRECTION、RECONCILE_UPDATE、UPDATE、ZAPおよびDELETE_CHANGESです。 RangeSpanに指定できる値は、PHYSICAL_ROW_END_DATEおよびLOGICAL_ROW_END_DATEです。 RangeStartDateおよびRangeEndDateの値は、yyyy-MM-dd形式の日付の文字列表現である必要があります。 RangeStartSequenceおよびRangeEndSequenceの値は、解析時に正の整数が生成されるように文字列である必要があります。
  • REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
  • RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。

この操作にはリクエスト本文がありません。

トップに戻る

レスポンス

サポートされているメディア・タイプ

デフォルトのレスポンス

次の表では、このタスクに対するデフォルトのレスポンスについて説明します。
ヘッダー
  • REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
  • RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
本文 ()
ルート・スキーマ : purchaseOrderSchedules
タイプ: object
ソースを表示
ネストされたスキーマ : 品目
タイプ: array
タイトル: Items
コレクション内の品目。
ソースを表示
ネストされたスキーマ : purchaseOrderSchedules-item-response
タイプ: object
ソースを表示
  • タイトル: Accepted Amount
    読取り専用: true
    サービス明細に受け入れられた金額。
  • タイトル: Accepted Quantity
    読取り専用: true
    検査後に検収された数量。
  • タイトル: Accrue at Receipt
    読取り専用: true
    最大長: 1
    次のいずれかの値が含まれます: trueまたはfalse。 trueの場合、受入時に購買オーダー・スケジュールを計上します。 falseの場合、受入時に計上しません。
  • タイトル: Ordered
    読取り専用: true
    購買オーダー・スケジュールのサービスの金額。
  • タイトル: Anticipated Arrival Date
    読取り専用: true
    現在の出荷予定日に基づいてオーダー済商品が搬送される予定日。
  • タイトル: Invoiced Amount
    読取り専用: true
    購買価格に基づいた照合済請求書明細に相当する金額。
  • タイトル: Invoiced Quantity
    読取り専用: true
    購買オーダー・スケジュールに対して請求された数量。
  • タイトル: Buyer
    読取り専用: true
    最大長: 240
    購買オーダーの管理を担当する個人。
  • 読取り専用: true
    バイヤーを一意に識別する値。
  • タイトル: Category Name
    読取り専用: true
    最大長: 2400
    購買オーダーがオーダー明細の購買を分類するために使用する購買カテゴリの名前です。
  • 読取り専用: true
    最大長: 820
    購買カテゴリを識別する略称です。
  • 読取り専用: true
    購買カテゴリを一意に識別する値。
  • タイトル: Closed Reason
    読取り専用: true
    最大長: 240
    スケジュールがクローズされた理由を説明するテキスト。
  • タイトル: Creation Date
    読取り専用: true
    バイヤーまたはアプリケーションが購買オーダー・スケジュールを作成した日時。
  • タイトル: Order Status
    読取り専用: true
    最大長: 80
    購買オーダー・ライフ・サイクルに対する購買オーダーのステータス。
  • タイトル: Document Status Code
    読取り専用: true
    最大長: 25
    オーダー・ライフ・サイクルの購買オーダー・ステータスを識別する略称です。
  • タイトル: Document Style
    読取り専用: true
    最大長: 240
    購買文書形式の名前。 この属性を使用すると、組織は、購買文書の使用と一致するように、アプリケーションに表示されるパラメータおよび値を制御できます。
  • 読取り専用: true
    文書の購買形式を一意に識別する値。
  • タイトル: Freight Terms
    読取り専用: true
    最大長: 80
    品目を輸送するための手数料を支払う個人を説明する条件です。
  • タイトル: Freight Terms Code
    読取り専用: true
    最大長: 30
    購買オーダーの運送条件のタイプを識別する略称です。
  • タイトル: Funds Status
    読取り専用: true
    最大長: 80
    スケジュールの資金チェックまたは予算引当検証結果のステータス。
  • タイトル: Funds Status
    読取り専用: true
    最大長: 25
    資金ステータスを識別する略称です。
  • タイトル: Invoice Match Option
    読取り専用: true
    最大長: 80
    請求書を購買オーダーと照合するか受入と照合するかを決定する値。 購買オーダー明細が委託されている場合は、各請求書を消費通知と照合します。
  • タイトル: Invoice Match Option Code
    読取り専用: true
    最大長: 25
    購買オーダー・スケジュールの請求書が、購買オーダーまたは受入と一致する必要があるかどうかを決定します。 値には、消費通知の場合はC、オーダーの場合はP、受入の場合はRがあります。
  • タイトル: Description
    読取り専用: true
    最大長: 240
    購買オーダーが参照する品目の摘要。
  • 読取り専用: true
    購買オーダーの品目を一意に識別する値。
  • タイトル: Item
    読取り専用: true
    購買オーダーの品目を一意に識別する略称です。
  • 読取り専用: true
    購買オーダー・スケジュールを一意に識別する値。
  • タイトル: Line
    読取り専用: true
    購買オーダー明細を一意に識別する番号です。
  • Links
  • タイトル: Order
    読取り専用: true
    最大長: 30
    販売先法的エンティティの購買オーダーを一意に識別する番号です。
  • タイトル: Payment Terms
    読取り専用: true
    最大長: 50
    購買オーダーに対する各請求書の支払をスケジュールし、支払期日、割引日および割引金額を計算するためにアプリケーションで使用される条件。
  • 読取り専用: true
    支払条件を一意に識別する値。
  • 読取り専用: true
    購買オーダーを一意に識別する値。
  • 読取り専用: true
    スケジュールの親明細を一意に識別する値。 この属性は、スケジュールが分割されるときに使用されます。
  • タイトル: Price
    読取り専用: true
    購買オーダー明細の価格です。
  • タイトル: Procurement BU
    読取り専用: true
    最大長: 240
    購買オーダーを管理および所有するビジネス・ユニットです。
  • 読取り専用: true
    購買オーダーを管理および所有するビジネス・ユニットを一意に識別する値。
  • タイトル: Purchase Basis
    読取り専用: true
    最大長: 80
    スケジュールが商品用かサービス用かを示す値。
  • タイトル: Purchase Basis Code
    読取り専用: true
    最大長: 30
    スケジュールが数量ベースの購買用か固定価格サービス用かを示す略称です。
  • タイトル: Quantity
    読取り専用: true
    出荷または搬送が予定されている品目の数量。
  • タイトル: Received Amount
    読取り専用: true
    サービス明細に対する受入済金額。
  • タイトル: Received Quantity
    読取り専用: true
    購買オーダー・スケジュールに対する受入済数量です。
  • タイトル: Requested Delivery Date
    読取り専用: true
    サプライヤが品目を搬送するようにバイヤーがリクエストした日付。
  • タイトル: Requested Ship Date
    読取り専用: true
    サプライヤが品目を出荷するようにバイヤーがリクエストした日付。
  • タイトル: Requisitioning BU
    読取り専用: true
    最大長: 240
    購買依頼を作成するビジネス・ユニットです。
  • 読取り専用: true
    購買依頼を作成するビジネス・ユニットを一意に識別する値。
  • タイトル: Retainage
    読取り専用: true
    スケジュールに対する留保金として源泉徴収された合計金額。
  • タイトル: Retainage Rate
    読取り専用: true
    留保金として源泉徴収できる請求書値のパーセントです。
  • タイトル: Retainage Released
    読取り専用: true
    スケジュールに対してリリースされた留保金額。
  • タイトル: Schedule Description
    読取り専用: true
    最大長: 240
    分割払いスケジュールに関連付けられた作業の摘要。
  • タイトル: Schedule
    読取り専用: true
    購買オーダー明細の購買オーダー・スケジュールを一意に識別する番号です。
  • タイトル: Status
    読取り専用: true
    最大長: 80
    購買オーダー・スケジュールのステータス。
  • タイトル: Status Code
    読取り専用: true
    最大長: 25
    購買オーダー・スケジュールのステータスを識別する略称です。
  • タイトル: Schedule Type
    読取り専用: true
    最大長: 80
    作業単位または総額のどちらに基づいて支払をリリースするかを識別する値。
  • 読取り専用: true
    最大長: 30
    スケジュール・タイプを識別する略称です。
  • タイトル: Shipped Amount
    読取り専用: true
    サービス明細用に出荷された金額。
  • タイトル: Shipped Quantity
    読取り専用: true
    購買オーダー・スケジュールに対して出荷された数量。
  • タイトル: Ship-to Party
    読取り専用: true
    最大長: 360
    サプライヤが出荷する品目を受け入れるパーティの名前です。
  • 読取り専用: true
    品目を受け取る第三者を一意に識別する値です。
  • タイトル: Ship-to Location
    読取り専用: true
    最大長: 240
    サプライヤが品目を出荷する事業所の名前です。
  • タイトル: Ship-to Location Code
    読取り専用: true
    最大長: 60
    サプライヤが品目を出荷するロケーションを識別する略称です。
  • 読取り専用: true
    サプライヤが品目を出荷する事業所を一意に識別する値です。
  • タイトル: Sold-to Legal Entity
    読取り専用: true
    最大長: 240
    購買オーダーの購買を財務的に担当する法的エンティティです。
  • 読取り専用: true
    購買オーダーの購買を財務的に担当する法的エンティティを一意に識別する値。
  • タイトル: Supplier
    読取り専用: true
    最大長: 360
    品目を履行するサプライヤの名前。
  • 読取り専用: true
    サプライヤを一意に識別する値。
  • タイトル: Supplier Item
    読取り専用: true
    最大長: 300
    サプライヤが購買オーダー明細の品目を識別するために使用する番号。
  • タイトル: Supplier Site
    読取り専用: true
    最大長: 240
    サプライヤが品目の購入に使用する事業所。
  • 読取り専用: true
    サプライヤ・サイトを一意に識別する値。
  • タイトル: Total
    読取り専用: true
    購買オーダー明細のオーダー金額と外税金額の合計。
  • タイトル: Total Tax
    読取り専用: true
    購入者が購買オーダー明細に対して控除および控除できない税抜金額の合計です。
  • タイトル: UOM
    読取り専用: true
    最大長: 25
    品目数量の単位。
  • 読取り専用: true
    最大長: 3
    単位を識別する略語。
トップに戻る

この例では、すべてのスケジュールを取得する方法について説明します。

説明
例1 複数のオーダーにわたるすべてのスケジュールを取得
例2 オーダー内のすべての明細のすべてのスケジュールを取得
例3 オーダーの明細の特定のスケジュールを取得
例4 最終クローズ済のすべてのスケジュールの取得

例1 cURLコマンド

次のcURLコマンドを使用して、RESTリソースに対するリクエストを発行し、複数のオーダーにわたるすべてのスケジュールを取得します:

curl -u username:password "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules"

例1 レスポンス本文

JSON形式のレスポンス本文の例を次に示します。

{
	"items": [
	{
		"SoldToLegalEntityId": 1036,
		"POHeaderId": 300100182700591,
		"OrderNumber": "80",
		"BuyerId": 100010026863783,
		"POLineId": 300100182700592,
		"ItemDescription": "Drop Ship Item 01 for DS as Seller flow",
		"ItemId": 300100182698836,
		"Price": 100,
		"LineNumber": 1,
		"UOMCode": "Ea",
		"SupplierItem": null,
		"CategoryId": 1,
		"LineLocationId": 300100182700593,
		"ScheduleNumber": 1,
		"ShipToLocationId": null,
		"RequestedDeliveryDate": "2019-09-06T00:00:00+00:00",
		"ScheduleStatusCode": "OPEN",
		"ClosedReason": null,
		"InvoiceMatchOptionCode": "P",
		"BilledQuantity": 0,
		"ShippedQuantity": 0,
		"ReceivedQuantity": 0,
		"AcceptedQuantity": 0,
		"BilledAmount": null,
		"ShippedAmount": null,
		"ReceivedAmount": null,
		"AcceptedAmount": null,
		"ShipToCustomerId": 300100059769352,
		"SoldToLegalEntity": "Vision Brazil",
		"UOM": "Each",
		"ShipToLocationCode": null,
		"ScheduleStatus": "Open",
		"PaymentTermsId": 10001,
		"FreightTermsCode": "Due",
		"Category": "Miscellaneous_1",
		"CategoryCode": "MISC.MISC",
		"Buyer": "Furey,Clare",
		"InvoiceMatchOption": "Order",
		"PaymentTerms": "Immediate",
		"FreightTerms": "Due",
		"ShipToCustomer": "BR Fusion S.A.",
		"PurchaseBasisCode": "GOODS",
		"ItemNumber": "BRDS01",
		"Total": 1000,
		"TotalTax": 0,
		"PurchaseBasis": "Quantity",
		"Quantity": 10,
		"Amount": 1000,
		"ShipToLocation": null,
		"DocumentStatusCode": "OPEN",
		"DocumentStatus": "Open",
		"AnticipatedArrivalDate": null,
		"CreationDate": "2019-09-06T20:45:39+00:00",
		"RequestedShipDate": null,
		"Supplier": "Brazil DS Ltda.",
		"SupplierId": 300100182014594,
		"SupplierSiteId": 300100182014808,
		"SupplierSite": "MAIN",
		"RetainageRate": null,
		"Retainage": null,
		"RetainageReleased": null,
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100182700593",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100182700593",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "action",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100182700593/action/close",
			"name": "close",
			"kind": "other"
		}
		]
	},
	{
		"SoldToLegalEntityId": 1036,
		"POHeaderId": 300100127172094,
		"OrderNumber": "57",
		"BuyerId": 100010026863783,
		"POLineId": 300100127172096,
		"ItemDescription": "AS88871 - Lot Item",
		"ItemId": 300100127166055,
		"Price": 80,
		"LineNumber": 1,
		"UOMCode": "Ea",
		"SupplierItem": null,
		"CategoryId": 1,
		"LineLocationId": 300100127172097,
		"ScheduleNumber": 1,
		"ShipToLocationId": null,
		"RequestedDeliveryDate": "2018-01-16T00:00:00+00:00",
		"ScheduleStatusCode": "OPEN",
		"ClosedReason": null,
		"InvoiceMatchOptionCode": "P",
		"BilledQuantity": 0,
		"ShippedQuantity": 0,
		"ReceivedQuantity": 0,
		"AcceptedQuantity": 0,
		"BilledAmount": null,
		"ShippedAmount": null,
		"ReceivedAmount": null,
		"AcceptedAmount": null,
		"ShipToCustomerId": 300100127998527,
		"SoldToLegalEntity": "Vision Brazil",
		"UOM": "Each",
		"ShipToLocationCode": null,
		"ScheduleStatus": "Open",
		"PaymentTermsId": 10134,
		"FreightTermsCode": "Due",
		"Category": "Miscellaneous_1",
		"CategoryCode": "MISC.MISC",
		"Buyer": "Furey,Clare",
		"InvoiceMatchOption": "Order",
		"PaymentTerms": "Net 30",
		"FreightTerms": "Due",
		"ShipToCustomer": "Brazil_Customer1",
		"PurchaseBasisCode": "GOODS",
		"ItemNumber": "AS88871",
		"Total": 8000,
		"TotalTax": 0,
		"PurchaseBasis": "Quantity",
		"Quantity": 100,
		"Amount": 8000,
		"ShipToLocation": null,
		"DocumentStatusCode": "OPEN",
		"DocumentStatus": "Open",
		"AnticipatedArrivalDate": null,
		"CreationDate": "2018-01-16T13:19:31+00:00",
		"RequestedShipDate": null,
		"Supplier": "Marcopolo",
		"SupplierId": 300100093494034,
		"SupplierSiteId": 300100093494050,
		"SupplierSite": "Rio Branco",
		"RetainageRate": null,
		"Retainage": null,
		"RetainageReleased": null,
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100127172097",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100127172097",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "action",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100127172097/action/close",
			"name": "close",
			"kind": "other"
		}
		]
	}
	],
	"count": 2,
	"hasMore": true,
	"limit": 25,
	"offset": 0,
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules",
		"name": "purchaseOrderSchedules",
		"kind": "collection"
	}
	]
}

例2 cURLコマンド

次のcURLコマンドを使用して、RESTリソースに対するリクエストを発行し、オーダー内のすべての明細のすべてのスケジュールを取得します:

curl -u username:password "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules?q=OrderNumber='68'"

例2 レスポンス本文

JSON形式のレスポンス本文の例を次に示します。

{
	"items": [
	{
		"SoldToLegalEntityId": 1036,
		"POHeaderId": 300100151188247,
		"OrderNumber": "68",
		"BuyerId": 100010026863783,
		"POLineId": 300100151188249,
		"ItemDescription": "Brazil Cement",
		"ItemId": 300100068025061,
		"Price": 100,
		"LineNumber": 1,
		"UOMCode": "BOX",
		"SupplierItem": null,
		"CategoryId": 1,
		"LineLocationId": 300100151188250,
		"ScheduleNumber": 1,
		"ShipToLocationId": 300100060012091,
		"RequestedDeliveryDate": "2018-04-20T00:00:00+00:00",
		"ScheduleStatusCode": "OPEN",
		"ClosedReason": null,
		"InvoiceMatchOptionCode": "C",
		"BilledQuantity": 0,
		"ShippedQuantity": 0,
		"ReceivedQuantity": 7,
		"AcceptedQuantity": 0,
		"BilledAmount": null,
		"ShippedAmount": null,
		"ReceivedAmount": 0,
		"AcceptedAmount": null,
		"ShipToCustomerId": null,
		"SoldToLegalEntity": "Vision Operations",
		"UOM": "BOX",
		"ShipToLocationCode": "Vision Operations Sao Paulo Site 1",
		"ScheduleStatus": "Open",
		"PaymentTermsId": 10134,
		"FreightTermsCode": "Due",
		"Category": "Miscellaneous_1",
		"CategoryCode": "MISC.MISC",
		"Buyer": "Furey,Clare",
		"InvoiceMatchOption": "Consumption Advice",
		"PaymentTerms": "Net 30",
		"FreightTerms": "Due",
		"ShipToCustomer": null,
		"PurchaseBasisCode": "GOODS",
		"ItemNumber": "BR01",
		"Total": 10000000,
		"TotalTax": 0,
		"PurchaseBasis": "Quantity",
		"Quantity": 100000,
		"Amount": 10000000,
		"ShipToLocation": "Vision Operations Sao Paulo Site 1",
		"DocumentStatusCode": "OPEN",
		"DocumentStatus": "Open",
		"AnticipatedArrivalDate": null,
		"CreationDate": "2018-04-20T09:34:32+00:00",
		"RequestedShipDate": null,
		"Supplier": "Jones",
		"SupplierId": 300100093494034,
		"SupplierSiteId": 300100093494050,
		"SupplierSite": "Rio Branco",
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188250",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188250",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "action",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188250/action/close",
			"name": "close",
			"kind": "other"
		}
		]
	},
	{
		"SoldToLegalEntityId": 1036,
		"POHeaderId": 300100151188247,
		"OrderNumber": "68",
		"BuyerId": 100010026863783,
		"POLineId": 300100151188252,
		"ItemDescription": "Brazil Purchased Item 02",
		"ItemId": 300100068025063,
		"Price": 110,
		"LineNumber": 2,
		"UOMCode": "BOX",
		"SupplierItem": null,
		"CategoryId": 1,
		"LineLocationId": 300100151188253,
		"ScheduleNumber": 1,
		"ShipToLocationId": 300100060012091,
		"RequestedDeliveryDate": "2018-04-20T00:00:00+00:00",
		"ScheduleStatusCode": "OPEN",
		"ClosedReason": null,
		"InvoiceMatchOptionCode": "C",
		"BilledQuantity": 0,
		"ShippedQuantity": 0,
		"ReceivedQuantity": 0,
		"AcceptedQuantity": 0,
		"BilledAmount": null,
		"ShippedAmount": null,
		"ReceivedAmount": null,
		"AcceptedAmount": null,
		"ShipToCustomerId": null,
		"SoldToLegalEntity": "Vision Operations",
		"UOM": "BOX",
		"ShipToLocationCode": "Vision Operations Sao Paulo Site 1",
		"ScheduleStatus": "Open",
		"PaymentTermsId": 10134,
		"FreightTermsCode": "Due",
		"Category": "Miscellaneous_1",
		"CategoryCode": "MISC.MISC",
		"Buyer": "Furey,Clare",
		"InvoiceMatchOption": "Consumption Advice",
		"PaymentTerms": "Net 30",
		"FreightTerms": "Due",
		"ShipToCustomer": null,
		"PurchaseBasisCode": "GOODS",
		"ItemNumber": "BR02",
		"Total": 11000000,
		"TotalTax": 0,
		"PurchaseBasis": "Quantity",
		"Quantity": 100000,
		"Amount": 11000000,
		"ShipToLocation": "Vision Operations Sao Paulo Site 1",
		"DocumentStatusCode": "OPEN",
		"DocumentStatus": "Open",
		"AnticipatedArrivalDate": null,
		"CreationDate": "2018-04-20T09:34:32+00:00",
		"RequestedShipDate": null,
		"Supplier": "Jones",
		"SupplierId": 300100093494034,
		"SupplierSiteId": 300100093494050,
		"SupplierSite": "Rio Branco",
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188253",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188253",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "action",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188253/action/close",
			"name": "close",
			"kind": "other"
		}
		]
	},
	{
		"SoldToLegalEntityId": 300100014516903,
		"POHeaderId": 426036,
		"OrderNumber": "68",
		"BuyerId": 300100024668707,
		"POLineId": 385191,
		"ItemDescription": "Std",
		"ItemId": null,
		"Price": 100.25,
		"LineNumber": 1,
		"UOMCode": "Ea",
		"SupplierItem": null,
		"CategoryId": 1,
		"LineLocationId": 368264,
		"ScheduleNumber": 1,
		"ShipToLocationId": 300100014484337,
		"RequestedDeliveryDate": "2015-12-03T13:53:20+00:00",
		"ScheduleStatusCode": "OPEN",
		"ClosedReason": null,
		"InvoiceMatchOptionCode": "P",
		"BilledQuantity": 0,
		"ShippedQuantity": 0,
		"ReceivedQuantity": 0,
		"AcceptedQuantity": 0,
		"BilledAmount": null,
		"ShippedAmount": null,
		"ReceivedAmount": null,
		"AcceptedAmount": null,
		"ShipToCustomerId": null,
		"SoldToLegalEntity": "Vision City LE",
		"UOM": "Each",
		"ShipToLocationCode": "VC - Vision City",
		"ScheduleStatus": "Open",
		"PaymentTermsId": 10001,
		"FreightTermsCode": null,
		"Category": "Miscellaneous_1",
		"CategoryCode": "MISC.MISC",
		"Buyer": "Jones, Clare",
		"InvoiceMatchOption": "Order",
		"PaymentTerms": "Immediate",
		"FreightTerms": null,
		"ShipToCustomer": null,
		"PurchaseBasisCode": "GOODS",
		"ItemNumber": null,
		"Total": 10025.00,
		"TotalTax": 0,
		"PurchaseBasis": "Quantity",
		"Quantity": 100,
		"Amount": 10025.00,
		"ShipToLocation": "VC - Vision City",
		"DocumentStatusCode": "OPEN",
		"DocumentStatus": "Open",
		"AnticipatedArrivalDate": null,
		"CreationDate": "2015-12-03T13:53:21+00:00",
		"RequestedShipDate": null,
		"Supplier": "Green Corp.",
		"SupplierId": 300100016486100,
		"SupplierSiteId": 300100016486125,
		"SupplierSite": "San Jose",
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/368264",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/368264",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "action",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/368264/action/close",
			"name": "close",
			"kind": "other"
		}
		]
	}
	],
	"count": 3,
	"hasMore": false,
	"limit": 25,
	"offset": 0,
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules",
		"name": "purchaseOrderSchedules",
		"kind": "collection"
	}
	]
}

例3 cURLコマンド

次のcURLコマンドを使用して、RESTリソースに対するリクエストを発行し、オーダー内の明細の特定のスケジュールを取得します:

curl -u username:password "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules?q=OrderNumber='68';LineNumber=1;ScheduleNumber=1"

例3 レスポンス本文

JSON形式のレスポンス本文の例を次に示します。

{
	"items": [
	{
		"SoldToLegalEntityId": 1036,
		"POHeaderId": 300100151188247,
		"OrderNumber": "68",
		"BuyerId": 100010026863783,
		"POLineId": 300100151188249,
		"ItemDescription": "Brazil Cement",
		"ItemId": 300100068025061,
		"Price": 100,
		"LineNumber": 1,
		"UOMCode": "BOX",
		"SupplierItem": null,
		"CategoryId": 1,
		"LineLocationId": 300100151188250,
		"ScheduleNumber": 1,
		"ShipToLocationId": 300100060012091,
		"RequestedDeliveryDate": "2018-04-20T00:00:00+00:00",
		"ScheduleStatusCode": "OPEN",
		"ClosedReason": null,
		"InvoiceMatchOptionCode": "C",
		"BilledQuantity": 0,
		"ShippedQuantity": 0,
		"ReceivedQuantity": 7,
		"AcceptedQuantity": 0,
		"BilledAmount": null,
		"ShippedAmount": null,
		"ReceivedAmount": 0,
		"AcceptedAmount": null,
		"ShipToCustomerId": null,
		"SoldToLegalEntity": "Vision Brazil",
		"UOM": "BOX",
		"ShipToLocationCode": "Vision Brazil Sao Paulo Site 1",
		"ScheduleStatus": "Open",
		"PaymentTermsId": 10134,
		"FreightTermsCode": "Due",
		"Category": "Miscellaneous_1",
		"CategoryCode": "MISC.MISC",
		"Buyer": "Jones, Clare",
		"InvoiceMatchOption": "Consumption Advice",
		"PaymentTerms": "Net 30",
		"FreightTerms": "Due",
		"ShipToCustomer": null,
		"PurchaseBasisCode": "GOODS",
		"ItemNumber": "BR01",
		"Total": 10000000,
		"TotalTax": 0,
		"PurchaseBasis": "Quantity",
		"Quantity": 100000,
		"Amount": 10000000,
		"ShipToLocation": "Vision Brazil Sao Paulo Site 1",
		"DocumentStatusCode": "OPEN",
		"DocumentStatus": "Open",
		"AnticipatedArrivalDate": null,
		"CreationDate": "2018-04-20T09:34:32+00:00",
		"RequestedShipDate": null,
		"Supplier": "Marcopolo",
		"SupplierId": 300100093494034,
		"SupplierSiteId": 300100093494050,
		"SupplierSite": "Rio Branco",
		"RetainageRate": null,
		"Retainage": null,
		"RetainageReleased": null,
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188250",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188250",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "action",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/300100151188250/action/close",
			"name": "close",
			"kind": "other"
		}
		]
	},
	{
		"SoldToLegalEntityId": 300100014516903,
		"POHeaderId": 426036,
		"OrderNumber": "68",
		"BuyerId": 300100024668707,
		"POLineId": 385191,
		"ItemDescription": "Std",
		"ItemId": null,
		"Price": 100.25,
		"LineNumber": 1,
		"UOMCode": "Ea",
		"SupplierItem": null,
		"CategoryId": 1,
		"LineLocationId": 368264,
		"ScheduleNumber": 1,
		"ShipToLocationId": 300100014484337,
		"RequestedDeliveryDate": "2015-12-03T13:53:20+00:00",
		"ScheduleStatusCode": "OPEN",
		"ClosedReason": null,
		"InvoiceMatchOptionCode": "P",
		"BilledQuantity": 0,
		"ShippedQuantity": 0,
		"ReceivedQuantity": 0,
		"AcceptedQuantity": 0,
		"BilledAmount": null,
		"ShippedAmount": null,
		"ReceivedAmount": null,
		"AcceptedAmount": null,
		"ShipToCustomerId": null,
		"SoldToLegalEntity": "Vision City LE",
		"UOM": "Each",
		"ShipToLocationCode": "VC - Vision City",
		"ScheduleStatus": "Open",
		"PaymentTermsId": 10001,
		"FreightTermsCode": null,
		"Category": "Miscellaneous_1",
		"CategoryCode": "MISC.MISC",
		"Buyer": "Jones, Clare",
		"InvoiceMatchOption": "Order",
		"PaymentTerms": "Immediate",
		"FreightTerms": null,
		"ShipToCustomer": null,
		"PurchaseBasisCode": "GOODS",
		"ItemNumber": null,
		"Total": 10025.00,
		"TotalTax": 0,
		"PurchaseBasis": "Quantity",
		"Quantity": 100,
		"Amount": 10025.00,
		"ShipToLocation": "VC - Vision City",
		"DocumentStatusCode": "OPEN",
		"DocumentStatus": "Open",
		"AnticipatedArrivalDate": null,
		"CreationDate": "2015-12-03T13:53:21+00:00",
		"RequestedShipDate": null,
		"Supplier": "Office Depot",
		"SupplierId": 300100016486100,
		"SupplierSiteId": 300100016486125,
		"SupplierSite": "San Jose",
		"RetainageRate": null,
		"Retainage": null,
		"RetainageReleased": null,
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/368264",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/368264",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "action",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/368264/action/close",
			"name": "close",
			"kind": "other"
		}
		]
	}
	],
	"count": 2,
	"hasMore": false,
	"limit": 25,
	"offset": 0,
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules",
		"name": "purchaseOrderSchedules",
		"kind": "collection"
	}
	]
}

例4 cURLコマンド

次のcURLコマンドを使用して、RESTリソースに対するリクエストを発行し、最後にクローズされたすべてのスケジュールを取得します:

curl -u username:password "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules?q=ScheduleStatus='Finally+Closed'"

例4 レスポンス本文

JSON形式のレスポンス本文の例を次に示します。

{
	"items": [
	{
		"SoldToLegalEntityId": 300100014516903,
		"POHeaderId": 424995,
		"OrderNumber": "28",
		"BuyerId": 300100024668707,
		"POLineId": 383851,
		"ItemDescription": "POw/oItem",
		"ItemId": null,
		"Price": 10,
		"LineNumber": 2,
		"UOMCode": "Ea",
		"SupplierItem": null,
		"CategoryId": 1,
		"LineLocationId": 367444,
		"ScheduleNumber": 1,
		"ShipToLocationId": 300100014484337,
		"RequestedDeliveryDate": null,
		"ScheduleStatusCode": "FINALLY CLOSED",
		"ClosedReason": null,
		"InvoiceMatchOptionCode": "P",
		"BilledQuantity": 0,
		"ShippedQuantity": 0,
		"ReceivedQuantity": 0.5,
		"AcceptedQuantity": 0,
		"BilledAmount": null,
		"ShippedAmount": null,
		"ReceivedAmount": 0,
		"AcceptedAmount": null,
		"ShipToCustomerId": null,
		"SoldToLegalEntity": "Vision City LE",
		"UOM": "Each",
		"ShipToLocationCode": "VC - Vision City",
		"ScheduleStatus": "Finally Closed",
		"PaymentTermsId": 10001,
		"FreightTermsCode": null,
		"Category": "Miscellaneous_1",
		"CategoryCode": "MISC.MISC",
		"Buyer": "Jones, Clare",
		"InvoiceMatchOption": "Order",
		"PaymentTerms": "Immediate",
		"FreightTerms": null,
		"ShipToCustomer": null,
		"PurchaseBasisCode": "GOODS",
		"ItemNumber": null,
		"Total": 10,
		"TotalTax": 0,
		"PurchaseBasis": "Quantity",
		"Quantity": 1,
		"Amount": 10,
		"ShipToLocation": "VC - Vision City",
		"DocumentStatusCode": "FINALLY CLOSED",
		"DocumentStatus": "Finally Closed",
		"AnticipatedArrivalDate": null,
		"CreationDate": "2014-08-07T15:22:57+00:00",
		"RequestedShipDate": null,
		"Supplier": "Office Depot",
		"SupplierId": 300100016486100,
		"SupplierSiteId": 300100016486125,
		"SupplierSite": "San Jose",
		"RetainageRate": null,
		"Retainage": null,
		"RetainageReleased": null,
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/367444",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/367444",
			"name": "purchaseOrderSchedules",
			"kind": "item"
		},
		{
			"rel": "action",
			"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules/367444/action/close",
			"name": "close",
			"kind": "other"
		}
		]
	}
	],
	"count": 1,
"hasMore": true,
"limit": 25,
"offset": 0,
"links": [
	{
	"rel": "self",
	"href": "https://servername/fscmRestApi/resources/version/purchaseOrderSchedules",
	"name": "purchaseOrderSchedules",
	"kind": "collection"
}
]
}
「トップに戻る」