Skip to main content
POST
Get Withholding Rates

Authorizations

Authorization
string
header
required

B2B’s White Label API uses OAuth2. Currently there is only one supported authentication flow:

  • clientCredentials allows you to access your own B2B account (First-Party Integration) and performs transactions against the public API. This oauth2 flow is well suited for this API, as it allows machine-to-machine communication.

Every call to the API has to be authenticated with an OAuth2 Token. In order to request this token, you will need to have sandbox or production API Keys (client id and client secret) that will be needed to generate a credential in order to negotiate an ephemeral access token.

Every request must be accompianed by an Authorization header with a value that follows the following schema: Bearer ACCESS_TOKEN

Scopes

read

Default scope to read all resources.

write

Default scope to performe write operations on certain resources.

Body

application/json
end_user_id
string
required

The end_user_id of the end user who will sell.

Response

The withholding rates for the end user.

end_user_id
string
required

The end user that was queried.

withholdings_enabled
boolean
required

Whether a SELL by this end user is withheld.

period
string | null
required

Registry period (YYYYMM) the rates belong to.

total_rate
string | null
required

Sum of the rates, as a percentage (6.00 is 6%).

withholdings
object[]
required

One rate per jurisdiction. Empty when nothing would be withheld.