Skip to content

Exportar cantidad de compras

get

/purchases/quantity_series

Utiliza este endpoint para devolver el número total de compras en tu aplicación durante un intervalo de tiempo.

Requisitos previos

Para utilizar este punto final, necesitarás una clave de API con el permiso purchases.quantity_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/quantity_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,
      "purchase_quantity" : (int) the number of items purchased in the time period
      },
    ...
  ]
}
¿QUÉ TAN ÚTIL FUE ESTA PÁGINA?
New Stuff!