すべてのスケジュールの取得
get
/fscmRestApi/resources/11.13.18.05/purchaseOrderSchedules
リクエスト
問合せパラメータ
- effectiveDate: string
この問合せパラメータは、指定した開始日時点で有効なリソースをフェッチするために使用されます。 この問合せパラメータの値は、yyyy-MM-dd形式の日付を持つ文字列です
- expand: string
このパラメータを指定すると、指定した子がリソース・ペイロードに含まれます(リンクのみでなく)。 この問合せパラメータの値は"all"または""です。 カンマをセパレータとして使用して、複数の子を指定できます。 例: ?expand=Employees,Localizations. ネストされた子は、"Child.NestedChild"の書式に従って指定することもできます(例): ?expand=Employees.Managers). ネストされた子が指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?expand=Employees.Managers"は"?expand=Employees、Employees.Managers"と同じです(これにより、従業員とマネージャが展開されます)。
- fields: string
このパラメータは、リソース・フィールドをフィルタします。 指定されたフィールドのみが返されます。つまり、フィールドが指定されていない場合、フィールドは返されません(リンクのみを取得する場合に便利です)。 間接子リソースが指定されている場合(例): Employees.Managers)。欠落している子は暗黙的に処理されます。 たとえば、"?fields=Employees.Managers:Empname"は"?fields=;Employees:;Employees.Managers:Empname" (これはマネージャの"Empname"フィールドのみを返す)と同じです。この問合せパラメータの値は、リソース・フィールドのリストです。 属性は直接にすることができます(例): 従業員または間接(例): Employees.Managers) child. 拡張問合せパラメータと組み合せることはできません。 両方を指定した場合、フィールドのみが考慮されます。
フォーマット : ?fields=Attribute1,Attribute2
子リソースのフィールドの書式 : ?fields=Accessor1:Attribute1,Attribute2 - finder: string
コレクションを検索するための事前定義済ファインダとして使用されます。
フォーマット : ?finder=<finderName>;<variableName>=<variableValue>,<variableName2>=<variableValue2>
使用可能なファインダ名および対応するファインダ変数を次に示します:- PrimaryKey : 主キーとして明細事業所識別子に従って、購買オーダー・スケジュールを検索します。
ファインダ変数:- LineLocationId; integer; 購買オーダー・スケジュールを一意に識別する値。
- findPOSchedules : 指定した値に従って購買オーダー・スケジュールを検索します。
ファインダ変数:- Intent; string; インテントを一意に識別する値。 有効な値は、APUserおよびPOUserです。
- POHeaderId; integer; 購買オーダーを一意に識別する値。
- ScheduleStatus; string; 購買オーダー・スケジュールのステータス。
- SysEffectiveDate; object.
- PrimaryKey : 主キーとして明細事業所識別子に従って、購買オーダー・スケジュールを検索します。
- limit: integer
このパラメータは、リソース・コレクション内で返されるリソースの数を制限します。 制限がリソース数を超えると、フレームワークは使用可能なリソースのみを返します。
- links: string
このパラメータは、単一のリソースまたはリソース・コレクションへのアクセス中に特定のリンクのみを表示するために使用できます。 パラメータ値書式は、次のカンマ区切りリストです : <link_relation>
例:
self,canonical
- offset: integer
リソース・コレクションの開始位置を定義するために使用します。 オフセットがリソース数を超えると、リソースは返されません。 デフォルト値は0です。
- onlyData: boolean
データのみを含めるために(リンク・セクションなしなど)、リソース品目ペイロードがフィルタ処理されます。
- orderBy: string
このパラメータは、指定されたフィールドに基づいてリソース・コレクションを順序付けます。 パラメータ値は、属性名のカンマ区切りの文字列で、それぞれオプションでコロンと「asc」または「desc」が続きます。 昇順の場合は「asc」、降順の場合は「desc」を指定します。 デフォルト値は「asc」です。 たとえば、?orderBy=field1:asc,field2:desc
- q: string
この問合せパラメータは、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: boolean
"?totalResults=true"の場合、リソース・コレクション表現には"推定行数"が含まれます。それ以外の場合、カウントは含まれません。 デフォルト値はfalseです。
ヘッダー・パラメータ
- Effective-Of:
このヘッダーは文字列値を受け入れます。 この文字列は、セミコロンで区切られた
= 有効日範囲操作の実行に使用されます。 受け入れられるパラメータは、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の値は、解析時に正の整数が生成されるように文字列である必要があります。のリストです。 - Metadata-Context:
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version:
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
この操作にはリクエスト本文がありません。
トップに戻るレスポンス
サポートされているメディア・タイプ
- application/json
デフォルトのレスポンス
次の表では、このタスクに対するデフォルトのレスポンスについて説明します。
ヘッダー
- Metadata-Context(required):
REST APIがランタイム・カスタマイズをサポートしている場合、サービスのシェイプはランタイム中に変更される可能性があります。 RESTクライアントは、これらの変更から自身を分離したり、このヘッダーを指定して最新バージョンのAPIと対話することを選択できます。 たとえば: Metadata-Context:sandbox="TrackEmployeeFeature".
- REST-Framework-Version(required):
RESTクライアントとサービスの間のプロトコル・バージョン。 クライアントがリクエストでこのヘッダーを指定しない場合、サーバーはAPIのデフォルト・バージョンを選択します。
ルート・スキーマ : purchaseOrderSchedules
タイプ:
ソースを表示
object
-
count(required): integer
現在の範囲内で返されるリソース・インスタンス数。
-
hasMore(required): boolean
サーバーで使用可能なリソースが、レスポンスで返されたサブセットより多いかどうかを示します。 値がtrueの場合、サーバーから取得するリソースが増えます。 デフォルト値はfalseです。
-
items: array Items
タイトル:
Items
コレクション内の品目。 -
limit(required): integer
サーバーで使用される実際のページング・サイズ。
-
links(required): array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
offset(required): integer
現在のページで使用されるオフセット値。
-
totalResults: integer
"?totalResults=true"の場合、推定行数は含まれません。
ネストされたスキーマ : purchaseOrderSchedules-item-response
タイプ:
ソースを表示
object
-
AcceptedAmount: number
タイトル:
Accepted Amount
読取り専用:true
サービス明細に受け入れられた金額。 -
AcceptedQuantity: number
タイトル:
Accepted Quantity
読取り専用:true
検査後に検収された数量。 -
AccrueAtReceiptFlag: boolean
タイトル:
Accrue at Receipt
読取り専用:true
最大長:1
次のいずれかの値が含まれます: trueまたはfalse。 trueの場合、受入時に購買オーダー・スケジュールを計上します。 falseの場合、受入時に計上しません。 -
Amount: number
タイトル:
Ordered
読取り専用:true
購買オーダー・スケジュールのサービスの金額。 -
AnticipatedArrivalDate: string (date)
タイトル:
Anticipated Arrival Date
読取り専用:true
現在の出荷予定日に基づいてオーダー済商品が搬送される予定日。 -
BilledAmount: number
タイトル:
Invoiced Amount
読取り専用:true
購買価格に基づいた照合済請求書明細に相当する金額。 -
BilledQuantity: number
タイトル:
Invoiced Quantity
読取り専用:true
購買オーダー・スケジュールに対して請求された数量。 -
Buyer: string
タイトル:
Buyer
読取り専用:true
最大長:240
購買オーダーの管理を担当する個人。 -
BuyerId: integer (int64)
読取り専用:
true
バイヤーを一意に識別する値。 -
Category: string
タイトル:
Category Name
読取り専用:true
最大長:2400
購買オーダーがオーダー明細の購買を分類するために使用する購買カテゴリの名前です。 -
CategoryCode: string
読取り専用:
true
最大長:820
購買カテゴリを識別する略称です。 -
CategoryId: integer (int64)
読取り専用:
true
購買カテゴリを一意に識別する値。 -
ClosedReason: string
タイトル:
Closed Reason
読取り専用:true
最大長:240
スケジュールがクローズされた理由を説明するテキスト。 -
CreationDate: string (date-time)
タイトル:
Creation Date
読取り専用:true
バイヤーまたはアプリケーションが購買オーダー・スケジュールを作成した日時。 -
DocumentStatus: string
タイトル:
Order Status
読取り専用:true
最大長:80
購買オーダー・ライフ・サイクルに対する購買オーダーのステータス。 -
DocumentStatusCode: string
タイトル:
Document Status Code
読取り専用:true
最大長:25
オーダー・ライフ・サイクルの購買オーダー・ステータスを識別する略称です。 -
DocumentStyle: string
タイトル:
Document Style
読取り専用:true
最大長:240
購買文書形式の名前。 この属性を使用すると、組織は、購買文書の使用と一致するように、アプリケーションに表示されるパラメータおよび値を制御できます。 -
DocumentStyleId: integer (int64)
読取り専用:
true
文書の購買形式を一意に識別する値。 -
FreightTerms: string
タイトル:
Freight Terms
読取り専用:true
最大長:80
品目を輸送するための手数料を支払う個人を説明する条件です。 -
FreightTermsCode: string
タイトル:
Freight Terms Code
読取り専用:true
最大長:30
購買オーダーの運送条件のタイプを識別する略称です。 -
FundsStatus: string
タイトル:
Funds Status
読取り専用:true
最大長:80
スケジュールの資金チェックまたは予算引当検証結果のステータス。 -
FundsStatusCode: string
タイトル:
Funds Status
読取り専用:true
最大長:25
資金ステータスを識別する略称です。 -
InvoiceMatchOption: string
タイトル:
Invoice Match Option
読取り専用:true
最大長:80
請求書を購買オーダーと照合するか受入と照合するかを決定する値。 購買オーダー明細が委託されている場合は、各請求書を消費通知と照合します。 -
InvoiceMatchOptionCode: string
タイトル:
Invoice Match Option Code
読取り専用:true
最大長:25
購買オーダー・スケジュールの請求書が、購買オーダーまたは受入と一致する必要があるかどうかを決定します。 値には、消費通知の場合はC、オーダーの場合はP、受入の場合はRがあります。 -
ItemDescription: string
タイトル:
Description
読取り専用:true
最大長:240
購買オーダーが参照する品目の摘要。 -
ItemId: integer (int64)
読取り専用:
true
購買オーダーの品目を一意に識別する値。 -
ItemNumber: string
タイトル:
Item
読取り専用:true
購買オーダーの品目を一意に識別する略称です。 -
LineLocationId: integer (int64)
読取り専用:
true
購買オーダー・スケジュールを一意に識別する値。 -
LineNumber: number
タイトル:
Line
読取り専用:true
購買オーダー明細を一意に識別する番号です。 -
links: array Links
タイトル:
Links
リソース・インスタンスに関連付けられたリンク関係。 -
OrderNumber: string
タイトル:
Order
読取り専用:true
最大長:30
販売先法的エンティティの購買オーダーを一意に識別する番号です。 -
PaymentTerms: string
タイトル:
Payment Terms
読取り専用:true
最大長:50
購買オーダーに対する各請求書の支払をスケジュールし、支払期日、割引日および割引金額を計算するためにアプリケーションで使用される条件。 -
PaymentTermsId: integer (int64)
読取り専用:
true
支払条件を一意に識別する値。 -
POHeaderId: integer (int64)
読取り専用:
true
購買オーダーを一意に識別する値。 -
POLineId: integer (int64)
読取り専用:
true
スケジュールの親明細を一意に識別する値。 この属性は、スケジュールが分割されるときに使用されます。 -
Price: number
タイトル:
Price
読取り専用:true
購買オーダー明細の価格です。 -
ProcurementBU: string
タイトル:
Procurement BU
読取り専用:true
最大長:240
購買オーダーを管理および所有するビジネス・ユニットです。 -
ProcurementBUId: integer (int64)
読取り専用:
true
購買オーダーを管理および所有するビジネス・ユニットを一意に識別する値。 -
PurchaseBasis: string
タイトル:
Purchase Basis
読取り専用:true
最大長:80
スケジュールが商品用かサービス用かを示す値。 -
PurchaseBasisCode: string
タイトル:
Purchase Basis Code
読取り専用:true
最大長:30
スケジュールが数量ベースの購買用か固定価格サービス用かを示す略称です。 -
Quantity: number
タイトル:
Quantity
読取り専用:true
出荷または搬送が予定されている品目の数量。 -
ReceivedAmount: number
タイトル:
Received Amount
読取り専用:true
サービス明細に対する受入済金額。 -
ReceivedQuantity: number
タイトル:
Received Quantity
読取り専用:true
購買オーダー・スケジュールに対する受入済数量です。 -
RequestedDeliveryDate: string (date)
タイトル:
Requested Delivery Date
読取り専用:true
サプライヤが品目を搬送するようにバイヤーがリクエストした日付。 -
RequestedShipDate: string (date)
タイトル:
Requested Ship Date
読取り専用:true
サプライヤが品目を出荷するようにバイヤーがリクエストした日付。 -
RequisitioningBU: string
タイトル:
Requisitioning BU
読取り専用:true
最大長:240
購買依頼を作成するビジネス・ユニットです。 -
RequisitioningBUId: integer (int64)
読取り専用:
true
購買依頼を作成するビジネス・ユニットを一意に識別する値。 -
RetainageAmount: number
タイトル:
Retainage
読取り専用:true
スケジュールに対する留保金として源泉徴収された合計金額。 -
RetainageRate: number
タイトル:
Retainage Rate
読取り専用:true
留保金として源泉徴収できる請求書値のパーセントです。 -
RetainageReleasedAmount: number
タイトル:
Retainage Released
読取り専用:true
スケジュールに対してリリースされた留保金額。 -
ScheduleDescription: string
タイトル:
Schedule Description
読取り専用:true
最大長:240
分割払いスケジュールに関連付けられた作業の摘要。 -
ScheduleNumber: integer
タイトル:
Schedule
読取り専用:true
購買オーダー明細の購買オーダー・スケジュールを一意に識別する番号です。 -
ScheduleStatus: string
タイトル:
Status
読取り専用:true
最大長:80
購買オーダー・スケジュールのステータス。 -
ScheduleStatusCode: string
タイトル:
Status Code
読取り専用:true
最大長:25
購買オーダー・スケジュールのステータスを識別する略称です。 -
ScheduleType: string
タイトル:
Schedule Type
読取り専用:true
最大長:80
作業単位または総額のどちらに基づいて支払をリリースするかを識別する値。 -
ScheduleTypeCode: string
読取り専用:
true
最大長:30
スケジュール・タイプを識別する略称です。 -
ShippedAmount: number
タイトル:
Shipped Amount
読取り専用:true
サービス明細用に出荷された金額。 -
ShippedQuantity: number
タイトル:
Shipped Quantity
読取り専用:true
購買オーダー・スケジュールに対して出荷された数量。 -
ShipToCustomer: string
タイトル:
Ship-to Party
読取り専用:true
最大長:360
サプライヤが出荷する品目を受け入れるパーティの名前です。 -
ShipToCustomerId: integer (int64)
読取り専用:
true
品目を受け取る第三者を一意に識別する値です。 -
ShipToLocation: string
タイトル:
Ship-to Location
読取り専用:true
最大長:240
サプライヤが品目を出荷する事業所の名前です。 -
ShipToLocationCode: string
タイトル:
Ship-to Location Code
読取り専用:true
最大長:60
サプライヤが品目を出荷するロケーションを識別する略称です。 -
ShipToLocationId: integer (int64)
読取り専用:
true
サプライヤが品目を出荷する事業所を一意に識別する値です。 -
SoldToLegalEntity: string
タイトル:
Sold-to Legal Entity
読取り専用:true
最大長:240
購買オーダーの購買を財務的に担当する法的エンティティです。 -
SoldToLegalEntityId: integer (int64)
読取り専用:
true
購買オーダーの購買を財務的に担当する法的エンティティを一意に識別する値。 -
Supplier: string
タイトル:
Supplier
読取り専用:true
最大長:360
品目を履行するサプライヤの名前。 -
SupplierId: integer (int64)
読取り専用:
true
サプライヤを一意に識別する値。 -
SupplierItem: string
タイトル:
Supplier Item
読取り専用:true
最大長:300
サプライヤが購買オーダー明細の品目を識別するために使用する番号。 -
SupplierSite: string
タイトル:
Supplier Site
読取り専用:true
最大長:240
サプライヤが品目の購入に使用する事業所。 -
SupplierSiteId: integer (int64)
読取り専用:
true
サプライヤ・サイトを一意に識別する値。 -
Total: number
タイトル:
Total
読取り専用:true
購買オーダー明細のオーダー金額と外税金額の合計。 -
TotalTax: number
タイトル:
Total Tax
読取り専用:true
購入者が購買オーダー明細に対して控除および控除できない税抜金額の合計です。 -
UOM: string
タイトル:
UOM
読取り専用:true
最大長:25
品目数量の単位。 -
UOMCode: string
読取り専用:
true
最大長:3
単位を識別する略語。
ネストされたスキーマ : リンク
タイプ:
ソースを表示
object
-
href: string
タイトル:
hyperlink reference
関連リソースへのURI。 -
kind: string
タイトル:
kind
許可された値:[ "collection", "item", "describe", "other" ]
関連リソースの種類。 -
name: string
タイトル:
name
関連リソースへのリンクの名前。 -
properties: object properties
-
rel: string
タイトル:
relation
許可された値:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]
リソース・インスタンスとの関係の名前。 例: self.
例
この例では、すべてのスケジュールを取得する方法について説明します。
例 | 説明 |
---|---|
例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" } ] }