Skip to content

账户流水

查询账户的交易记录,支持分页和筛选。

端点

GET /api/external/statement

请求头

类型必填描述
AuthorizationStringApiKey {client_id}:{client_secret}

查询参数

参数类型必填描述默认值
pageInteger页码1
per_pageInteger每页条数(最大 100)20
statusString按状态筛选(pendingcompletedfailed--
typeString按类型筛选(pixtedinternal--
date_fromString起始日期(格式 YYYY-MM-DD--
date_toString截止日期(格式 YYYY-MM-DD--

示例

bash
curl -X GET "https://api.owem.com.br/api/external/statement?page=1&per_page=20&status=completed&date_from=2026-03-01&date_to=2026-03-07" \
  -H "Authorization: ApiKey $CLIENT_ID:$CLIENT_SECRET"

成功响应 (200)

json
{
  "worked": true,
  "data": [
    {
      "id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
      "transaction_id": "7popu57v6us7p6pcicgq12345",
      "end_to_end_id": "E37839059202603071530000001",
      "external_id": "order-9876",
      "type": "pix",
      "status": "completed",
      "amount": 300000,
      "fee_amount": 0,
      "net_amount": 300000,
      "description": "Pedido #1234",
      "direction": "inbound",
      "counterparty_name": "Maria Santos",
      "created_at": "2026-03-07T15:30:00Z",
      "completed_at": "2026-03-07T15:30:02Z"
    },
    {
      "id": "f7e8d9c0-b1a2-4c3d-9e8f-7a6b5c4d3e2f",
      "transaction_id": "PIXOUT20260306x9y8z7w6v5u4",
      "end_to_end_id": "E37839059202603061200000005",
      "external_id": "invoice-4521",
      "type": "pix",
      "status": "completed",
      "amount": 500000,
      "fee_amount": 350,
      "net_amount": 500350,
      "description": "Pagamento fornecedor",
      "direction": "outbound",
      "counterparty_name": "Joao Silva",
      "recipient_key": "12345678901",
      "created_at": "2026-03-06T12:00:00Z",
      "completed_at": "2026-03-06T12:00:03Z"
    }
  ],
  "page": 1,
  "per_page": 20
}
字段类型描述
workedBooleantrue 表示操作成功
dataArray交易列表
pageInteger当前页码
per_pageInteger每页条数

每笔交易的字段

字段类型描述
idString交易内部 UUID
transaction_idString交易公开标识
end_to_end_idStringBACEN 的 E2E ID
external_idString您系统中的标识符。未提供时为 null
typeString类型(pixtedinternal
statusString交易状态
amountInteger金额,以基本单位为单位(/ 10,000 = 雷亚尔)。300000 = R$ 30.00
fee_amountInteger手续费,以基本单位为单位
net_amountInteger净额,以基本单位为单位
descriptionString交易描述
directionStringinbound(收款)或 outbound(付款)
counterparty_nameString对手方姓名
recipient_keyString收款方 PIX 密钥(仅付款交易)
created_atString创建时间(ISO 8601)
completed_atString完成时间(ISO 8601)

错误响应 (401)

json
{
  "error": {
    "status": 401,
    "message": "Missing API key credentials. Use Authorization: ApiKey <client_id>:<client_secret>"
  }
}

分页

per_page 的最大值为 100。要提取大量数据,请递增 page 参数逐页请求,直到 page 达到 total_pages

Owem Pay Instituição de Pagamento — ISPB 37839059