curl --request POST \
--url https://api.topsort.com/public/v1/billing-service/vendors/{external-vendor-id}/balance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"balance": 123,
"description": "Free credits added to the account"
}
'{
"result": true
}Endpoint to add some balance for a vendor.
Will truncate the input to its minimum denomination, e.g. USD 1,000.234 is USD 1,000.23 , as there is no fraction of a cent.
curl --request POST \
--url https://api.topsort.com/public/v1/billing-service/vendors/{external-vendor-id}/balance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"balance": 123,
"description": "Free credits added to the account"
}
'{
"result": true
}A valid API key generated in Topsort's UI.
The External ID of the Vendor to retrieve.
1Successful Response
Result of the Balance Adding. Returns True if the operation was executed correctly.
Was this page helpful?