Skip to content

Número de compras de exportação

get

/purchases/quantity_series

Use esse endpoint para retornar o número total de compras em seu app em um intervalo de tempo.

Pré-requisitos

Para usar esse endpoint, você precisará de uma chave de API com a permissão purchases.quantity_series.

Limite de taxa

For customers who onboarded with Braze on or after September 16, 2021, we apply a shared rate limit of 1,000 requests per hour to this endpoint. This rate limit is shared with the /custom_attributes, /events, and /events/list endpoints, as documented in API rate limits.

Parâmetros de solicitação

Exemplo de solicitação

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

Resposta

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ÃO ÚTIL FOI ESTA PÁGINA?
New Stuff!