Skip to content

時間別の収益データのエクスポート

get

/purchases/revenue_series

このエンドポイントを使用して、指定した期間にアプリで使われた合計金額を返します。

前提条件

このエンドポイントを使用するには、purchases.revenue_series 権限を持つ API キーが必要です。

レート制限

このエンドポイントには、1時間あたり1,000リクエストの共有レート制限が適用されます。このレート制限は、APIレート制限に記載されているように、/custom_attributes/events、および /events/list エンドポイントと共有されます。

リクエストパラメーター

リクエスト例

1
2
curl --location --request GET 'https://rest.iad-01.braze.com/purchases/revenue_series?length=100' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'

応答

1
2
3
4
5
6
7
8
9
10
{
  "message": (required, string) the status of the export, returns 'success' when completed without errors,
  "data" : [
    {
      "time" : (string) the date as ISO 8601 date,
      "revenue" : (int) amount of revenue for the time period
      },
    ...
  ]
}
New Stuff!