VamPay
VamPay
GET/splits

Listar Splits

Retorna os splits que você envia (outgoing) e os que você recebe de outras contas (incoming).

Exemplo de Request

curlbash
curl -X GET "https://api.vampay.com.br/splits" \
  -H "X-API-Key: vampay_sua_api_key"

Resposta de Sucesso

200 OKjson
{
  "success": true,
  "data": {
    "outgoing": [
      {
        "id": "6711f0c2a1b2c3d4e5f60718",
        "percent": 30,
        "active": true,
        "label": "Sócio",
        "totalSent": 1520.40,
        "lastSplitAt": "2026-10-15T14:02:11.000Z",
        "recipient": {
          "name": "João Silva",
          "email": "joao@email.com",
          "avatarUrl": null
        }
      }
    ],
    "incoming": [
      {
        "id": "6711f2d9a1b2c3d4e5f60720",
        "percent": 10,
        "active": true,
        "totalReceived": 87.30,
        "lastSplitAt": "2026-10-14T21:40:05.000Z",
        "owner": { "name": "Loja Exemplo", "avatarUrl": null }
      }
    ]
  }
}

Campos

CampoTipo
idstring
percentnumber
activeboolean
labelstring | null
totalSent / totalReceivednumber
lastSplitAtstring | null
recipientobject
ownerobject