curl --request POST \
--url https://api.dots.dev/api/v2/transfer-batches \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"amount": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_exempt": true,
"allow_debit": true,
"idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {}
}
],
"idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"metadata": {},
"items": [
{
"transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_exempt": true,
"allow_debit": true,
"metadata": {},
"error": "<string>"
}
]
}
Create a transfer batch
curl --request POST \
--url https://api.dots.dev/api/v2/transfer-batches \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"amount": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_exempt": true,
"allow_debit": true,
"idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {}
}
],
"idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {}
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"metadata": {},
"items": [
{
"transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tax_exempt": true,
"allow_debit": true,
"metadata": {},
"error": "<string>"
}
]
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
OK
The response is of type object
.
Was this page helpful?