Simular pagamentos
Pagar em sandbox
POST
/v1/wallet/pay/:chargeIdBase 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
wallet/write
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| chargeId | string | Required | Identificador retornado no ato da geraçao da cobrança |
const url = 'https://sandbox.validapay.com.br/v1/wallet/pay/:chargeId';
const options = {
method: 'POST',
headers: {
'Authorization': 'Bearer {{token}}'
},
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));