Produtos
Listar Produtos
Lista todos os produtos cadastrados com suporte a filtros por status e paginação.
GET
/v1/productsBase URL Produção:
https://api.validapay.com.brBase URL Sandbox:
https://sandbox.validapay.com.brAuthorizations
bearer
Authorization
string · header · required
Cabeçalho de autenticação Bearer no formato Bearer {{token}} onde {{token}} é o seu token OAuth2.
Escopos requeridos
products/read
Query Parameters
| Name | Type | Value | Required | Description |
|---|---|---|---|---|
| limit | - | 50 | Optional | Quantidade de itens por página (default 50) - optional |
| lastKey | - | - | Required | base64 - optional |
| status | - | - | Required | active | inactive - optional |
| search | - | - | Required | busca por nome - optional |
const url = 'https://sandbox.validapay.com.br/v1/products?limit=50&lastKey=&status=&search=?limit=50';
const options = {
method: 'GET',
headers: {
'Authorization': 'Bearer {{token}}'
},
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));Response Examples
200200
{
"items": [
{
"productId": "prod_xxx",
"name": "Plano Premium"
}
],
"pagination": {
"total": 10,
"hasMore": false,
"lastKey": null
}
}