Listar ventas

Usalo para traer el detalle de ventas (producto, monto, plataforma, estado, comprador y atribución) de los últimos 7, 30 o 90 días, por ejemplo para conciliar con tu sistema.

GET
/sales

Permiso requerido: conversations:read

Autorización

http
headerAuthorizationBearer <clave>

Parámetros de consulta

window?integer
Valor en"7""30""90"
page?integer
Rango1 <= value
event_type[]?array<>
perPage?integer
Rango1 <= value <= 100
Por defecto25

Cuerpo de la respuesta

OK

application/json
  1. response
data*array<>
links*
meta*
curl -X GET "https://example.com/sales"
{  "data": [    {      "id": 0,      "occurred_at": "string",      "platform": "string",      "product_name": "string",      "kind": "string",      "event_type": "string",      "amount_minor": 0,      "currency": "string",      "attribution": "string",      "buyer": {        "contact_id": 0,        "name": "string",        "phone": "string"      }    }  ],  "links": {    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  },  "meta": {    "current_page": 0,    "from": 0,    "last_page": 0,    "links": [      {        "url": "string",        "label": "string",        "active": true      }    ],    "path": "string",    "per_page": 0,    "to": 0,    "total": 0  }}