---
updatedAt: 2026-05-27T07:01:03.000Z
agentTools:
  projectIndex: https://open-api.docs.shoplineapp.com/llms.txt
---

# Get order transaction by orderIds

To get POS order_transactions of POS orders.

# OpenAPI definition

```json
{
  "info": {
    "title": "SHOPLINE Open API",
    "version": "2.348.2",
    "description": "Welcome to the shopline open-api developer hub. You'll find comprehensive guides and documentation to help you start working with shopline open-api as quickly as possible, as well as support if you get stuck. Let's jump right in!"
  },
  "servers": [
    {
      "url": "https://open.shopline.io/v1",
      "description": "Production"
    }
  ],
  "openapi": "3.0.0",
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "Agent": {
        "type": "object",
        "properties": {
          "id": {
            "description": "Id of the agent<br>員工ID",
            "type": "string",
            "example": "61ee85739fdc3f16a1b9aa07"
          },
          "email": {
            "description": "Email of the agent<br>員工電郵",
            "type": "string",
            "example": "cindy@shopline.com"
          },
          "name": {
            "description": "Name of the agent<br>員工名稱",
            "type": "string",
            "example": "Cindy"
          },
          "phone": {
            "description": "Phone of the agent<br>員工電話號碼",
            "type": "string",
            "example": "0987654321"
          },
          "is_working": {
            "description": "Working status of the agent<br>員工工作狀態（上班/下班）",
            "type": "boolean",
            "example": true
          },
          "channel_ids": {
            "description": "Staff's store IDs<br>員工所有的門市",
            "type": "array",
            "example": [
              "61ee85739fdc3f16a1b9aa07",
              "61ee85739fdc3f16a1b9aa08"
            ]
          }
        }
      },
      "Translatable": {
        "type": "object",
        "properties": {
          "en": {
            "type": "string",
            "description": "Merchant defined English name<br>店家定義英文名稱"
          },
          "zh-hant": {
            "type": "string",
            "description": "Merchant defined Traditional Chinese name<br>店家定義繁體中文名稱"
          },
          "zh-cn": {
            "type": "string",
            "description": "Merchant defined Simplified Chinese name<br>店家定義簡體中文名稱"
          },
          "vi": {
            "type": "string",
            "description": "Merchant defined Vietnamese name<br>店家定義越南文名稱"
          },
          "ms": {
            "type": "string",
            "description": "Merchant defined Malaysian name<br>店家定義馬來西亞文名稱"
          },
          "ja": {
            "type": "string",
            "description": "Merchant defined Japanese name<br>店家定義日文名稱"
          },
          "th": {
            "type": "string",
            "description": "Merchant defined Thai name<br>店家定義泰文名稱"
          },
          "id": {
            "type": "string",
            "description": "Merchant defined Indian name<br>店家定義印度文名稱"
          },
          "de": {
            "type": "string",
            "description": "Merchant defined Deutsch name<br>店家定義德文名稱"
          },
          "fr": {
            "type": "string",
            "description": "Merchant defined France name<br>店家定義法文名稱"
          }
        }
      },
      "Money": {
        "type": "object",
        "properties": {
          "cents": {
            "type": "integer"
          },
          "currency_symbol": {
            "type": "string"
          },
          "currency_iso": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "dollars": {
            "type": "number"
          }
        },
        "example": {
          "cents": 999999999,
          "currency_symbol": "NT$",
          "currency_iso": "TWD",
          "label": "NT$999,999,999",
          "dollars": 999999999
        }
      },
      "OrderTransaction": {
        "type": "object",
        "properties": {
          "invoice_date": {
            "description": "Invoice Created Time",
            "type": "string",
            "example": "2022-01-17T09:04:37.314Z"
          },
          "tax_id": {
            "description": "統一編號",
            "type": "string",
            "example": 3345678
          },
          "invoice_cancelled_at": {
            "description": "Invoice Cancelled Time",
            "type": "string",
            "example": "2022-01-19T09:04:37.314Z"
          },
          "transaction_number": {
            "description": "Transaction Number",
            "type": "string",
            "example": 7468926680549624000
          },
          "created_at": {
            "description": "Transaction Created Time",
            "type": "string",
            "example": "2022-01-17T09:04:36.877Z"
          },
          "payments": {
            "description": "Transaction Payment methods",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PosPayment"
            }
          },
          "invoice_number": {
            "description": "Invoice numbers",
            "type": "array",
            "items": {
              "type": "string",
              "example": "VT02500329"
            }
          },
          "agent": {
            "description": "Transaction Agent <br> 操作人員",
            "type": "object",
            "$ref": "#/components/schemas/Agent"
          },
          "order_number": {
            "description": "Order Number",
            "type": "array",
            "items": {
              "type": "string",
              "example": "20220117090427990"
            }
          },
          "note": {
            "description": "Note",
            "type": "string",
            "example": "Note"
          }
        }
      },
      "PosPayment": {
        "type": "object",
        "properties": {
          "id": {
            "description": "Payment Method ID<br>付款方式ID",
            "type": "string",
            "example": "58d25b9d01cda3475300002d"
          },
          "instructions_translations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Translatable"
              },
              {
                "description": "Payment Instructions<br>付款指示"
              }
            ],
            "example": {
              "en": "pay cash",
              "zh-hant": "現金付款"
            }
          },
          "name_translations": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Translatable"
              },
              {
                "description": "Payment Method Name<br>付款方式名稱"
              }
            ],
            "example": {
              "en": "Cash",
              "zh-hant": "現金"
            }
          },
          "type": {
            "description": "Payment's Type<br>付款方式代碼",
            "type": "string",
            "example": "paypal"
          },
          "amount": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "description": "Paid Amount<br>付款金額"
              }
            ]
          }
        }
      }
    }
  },
  "paths": {
    "/orders/transactions": {
      "get": {
        "summary": "Get order transaction by orderIds",
        "description": "To get POS order_transactions of POS orders.",
        "parameters": [
          {
            "name": "orderIds[]",
            "description": "Order Ids",
            "in": "query",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "61e531144cb9e5eafe1eb0c1"
              ]
            }
          }
        ],
        "tags": [
          "Orders"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "items": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/OrderTransaction"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Orders",
      "description": "Operations about orders"
    }
  ]
}
```