ご注文 API

ご注文の取得

正式運用エンドポイント:
https://transact.ti.com/v2/store/orders/

ご注文の検索取得型 API を使用して、ご注文履歴のコピーを取得します。このリストのデフォルト (初期設定) は、過去 30 日間に作成された注文です。特定の日付範囲内に作成された一連の注文を指定するには、クエリ パラメータ「startDate」と「endDate」を追加します。例:https://transact.ti.com/v2/store/orders?startDate=2021-05-01&endDate=2025-05-31。ご注文の詳細情報を検索取得するには、ご注文番号を指定して注文 API へのクエリを実行します。例:https://transact.ti.com/v2/store/orders/T999999999
 

ご注文の検索取得フロー

  1. 貴社への割り当て済み API キーとシークレットを使用して、認証を受けます。
  2. 注文を送信して TI がそのご注文を確認した後、API はステータス コード「201 OK」を応答として返します。
  3. ご注文 API への問い合わせを行い、ご注文のステータスと追加の詳細を取得します。
  4. この API は、「200 OK」 ステータス コードと、注文の詳細を保持する JSON を作成して応答します。
  5. 詳細については、「ご注文 API」の仕様をご覧ください。

注文番号を使用した問い合わせの例:

curl --request GET \ --url 'https://transact.ti.com/v2/store/orders/{orderNumber}' --header 'Authorization: Bearer {access_token}' \ Example response: { "orderNumber": 0, "orderStatus": "string","customerPurchaseOrderNumber": "string","subTotal": 0, "totalPrice": 0, "lineItems": [ { "tiPartNumber": "string","tiPartDescription": "string","quantity": "string","status": "string","unitPrice": 0, "customReelIndicator": true } ], "shippingAddress": [ { "addressType": "string","firstName": "string","lastName": "string","company": "string","addressLine1": "string","addressLine2": "string","town": "string","state": "string","postalCode": "string","country": "string","email": "string","phoneNumber": "string","companyURL": "string" } ], "billingAddress": [ { "addressType": "string","firstName": "string","lastName": "string","company": "string","addressLine1": "string","addressLine2": "string","town": "string","state": "string","postalCode": "string","country": "string","email": "string","phoneNumber": "string","companyURL": "string" } ], "orderMessages": [ { "code": "string","type": "string","Message": "string" } ], "customerOrderAttributes": [ { "attribute": "string" } ], "orderPlacedTime": "string","paymentType": "string","currencyISO": "string","totalTax": 0, "checkoutProfileIdentifier": "string","totalDeliveryCost": 0, "totalDiscount": 0, "couponCodes": "string" }