주문 API

주문 검색

생산 엔드포인트:
https://transact.ti.com/v2/store/orders/

주문 검색 API를 사용하여 주문에 대한 정보를 검색합니다.

수행할 수 있는 작업:

  • 최근 주문 목록을 확인합니다(기본값은 지난 30일).
  • 주문 번호별로 특정 주문에 대한 자세한 정보를 얻을 수 있습니다.

단계:

  1. 인증: API로 인증하려면 할당된 API 키와 암호가 필요합니다.
  2. API 요청: 주문 API에 요청을 보내 주문 상태 및 추가 세부 정보를 가져옵니다.
  3. API 응답: 상태 코드(200 OK)를 포함한 응답과 주문 세부 정보를 포함하는 JSON을 받습니다.
  4. 날짜별 주문 필터링(선택):
  5. 특정 주문 세부 정보 검색:
    • 특정 주문에 대한 자세한 정보를 보려면 주문 API에 주문 번호를 쿼리합니다.
    • 예: "https://transact.ti.com/v2/store/orders/T999999999"

 

주문 번호를 사용한 요청 예:

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"
}