Cadastrar um cartão
curl --request POST \
--url https://api.validator.blubash.io/v1/billing/payment-method \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/billing/payment-method', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/billing/payment-method"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"expires_at": "2026-12-01T15:00:00.000Z",
"url": "https://checkout.example.com/c/setup/def456"
}Recargas e cobrança
Cadastrar um cartão
Devolve o link (válido por 1 hora) de uma página segura para cadastrar o cartão. Concluído o cadastro, ele vira o cartão padrão, usado pela recarga automática. Cada chamada gera um link novo. Sem corpo nem query.
Escopo exigido: billing. Bloqueada para workspace suspenso (403 workspace_suspended).
POST
/
v1
/
billing
/
payment-method
Cadastrar um cartão
curl --request POST \
--url https://api.validator.blubash.io/v1/billing/payment-method \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.validator.blubash.io/v1/billing/payment-method', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.validator.blubash.io/v1/billing/payment-method"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"expires_at": "2026-12-01T15:00:00.000Z",
"url": "https://checkout.example.com/c/setup/def456"
}