Simular pagamentos

Pagar em sandbox

POST/v1/wallet/pay/:chargeId
Base URL Produção:https://api.validapay.com.br
Base URL Sandbox:https://sandbox.validapay.com.br

Authorizations

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

NameTypeRequiredDescription
chargeIdstringRequiredIdentificador 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));