Sigma と Data Pipeline を使用すると、Stripe API を介してアクセスできますが、インターフェイスが異なる同じ基になるデータを分析およびエクスポートできます。Stripe API では、データへのプログラムによるアクセスを提供しますが、Sigma は SQL ベースのインターフェイスを提供し、カスタムクエリと分析に利用できます。また、Data Pipeline はデータの一括エクスポートを行えます。
さらに、Sigma と Data Pipeline は、レポートなど、Stripe API では利用できない特定のデータへのアクセスを提供します。
データの鮮度
Sigma と Data Pipeline を使用すると、ほとんどの取引データを 1 日以内にクエリできるようになります。
Sigma makes most of your Stripe transaction data available to query within three hours. All API activity is available to query approximately three hours after it occurs. For example, data from 12:00am UTC is available by 3:00am UTC on the same day.
クエリデータの読み込み時間
The interface in the Dashboard displays the date and time of the last payments data. You can use data_load_time as a value in your queries to represent when data is most recently processed on your account. For example, if payment tables were last updated on , the data_load_time is interpreted as 00:00:00 +0000. At times, Sigma might reflect activity that is more recent than data_load_time. For example, a charge authorized just before midnight, but captured soon after, might show as captured.
select
id,
amount,fee,
currency
from balance_transactions -- this table is the canonical record of changes to your Stripe balancewhere
created < data_load_time and
created >= data_load_time - interval '1' month
orderby created desclimit10
select
ic.charge_id,
ic.billing_currency,
ic.billing_amount,
ic.balance_transaction_id,
ic.balance_transaction_created_at
from icplus_fees as ic
join balance_transactions as bt
on ic.balance_transaction_id = bt.id
where bt.created >= data_load_time - interval '1' month
and bt.created < data_load_time
API 規則に厳密に従った完全な スキーマを、テーブル関係性の詳細を示す分割ビュー形式で表示することができます。クエリで使用できるすべてのデータが、カテゴリー別に整理されて表示されます。各カテゴリーには、使用可能なデータを表す一連のテーブルが含まれています。多くのテーブルは、特定の API オブジェクトに対応しており、各列は報告された属性を表します。たとえば、charges テーブルは、Chargeオブジェクトに関する情報を表示します。また、ダッシュボードの支払いセクションに表示されます。