Skip to content

Exportar datos de ingresos por tiempo

get

/purchases/revenue_series

Utilice este punto final para devolver el dinero total gastado en su aplicación durante un intervalo de tiempo.

Requisitos previos

Para utilizar este punto final, necesitarás una clave de API con el permiso purchases.revenue_series.

Límite de velocidad

Parámetros de la solicitud

Ejemplo de solicitud

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

Respuesta

1
2
3
4
5
6
7
8
9
10
11
12
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
{
  "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
      },
    ...
  ]
}
¿QUÉ TAN ÚTIL FUE ESTA PÁGINA?
New Stuff!