Saltar para o conteúdo principal
POST
/
public
/
v1
/
billing-service
/
vendors
/
{external-vendor-id}
/
wallets
/
{wallet-id}
/
adjust
Adjust Wallet Balance
curl --request POST \
  --url https://api.topsort.com/public/v1/billing-service/vendors/{external-vendor-id}/wallets/{wallet-id}/adjust \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 123,
  "description": "<string>"
}
'
{
  "balance": 123
}

Autorizações

Authorization
string
header
obrigatório

A valid API key generated in Topsort's UI.

Parâmetros de caminho

external-vendor-id
string
obrigatório

The External ID of the Vendor to retrieve.

Minimum string length: 1
wallet-id
string<uuid>
obrigatório

The ID of the wallet to retrieve.

Corpo

application/json
amount
integer
obrigatório

Amount to add to the balance. This value must be non-zero. ISO 4217 standard.

Exemplo:

100

description
string
obrigatório

Reason given to adjust the amount

Minimum string length: 1
Exemplo:

"Vendor used the money for other ads"

Resposta

Successful Response

balance
integer
obrigatório

Resulting balance of an adjustment. ISO 4217 standard