Passer au contenu 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
}

Autorisations

Authorization
string
header
requis

A valid API key generated in Topsort's UI.

Paramètres de chemin

external-vendor-id
string
requis

The External ID of the Vendor to retrieve.

Minimum string length: 1
wallet-id
string<uuid>
requis

The ID of the wallet to retrieve.

Corps

application/json
amount
integer
requis

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

Exemple:

100

description
string
requis

Reason given to adjust the amount

Minimum string length: 1
Exemple:

"Vendor used the money for other ads"

Réponse

Successful Response

balance
integer
requis

Resulting balance of an adjustment. ISO 4217 standard