Skip to main content
POST
/
api
/
user
/
distribution
Create distribution
curl --request POST \
  --url https://api.sandbox.bitwage.com/api/user/distribution \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "<string>",
  "symbol": "<string>",
  "distribution_type": "crypto",
  "distribution_data": {}
}
'
{
  "distribution_id": "<string>",
  "allocation": 123
}

Authorizations

Authorization
string
header
required

API key authentication. Include your access token as: Authorization: Basic <ACCESS_TOKEN>

Body

application/json
user_id
string
required
symbol
string
required

Currency symbol (e.g. BTC, ETH, USD, EUR).

distribution_type
enum<string>
required
Available options:
crypto,
fiat
distribution_data
object
required

Destination data. Shape depends on distribution_type and symbol.

Response

200 - application/json

Distribution created.

distribution_id
string
allocation
integer