# Approve a payable
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/approve-a-payable
/v2.yaml post /v2/accounts-payable/payables/{payable_id}/approve
Approve a payable
# Cancel a payable
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/cancel-a-payable
/v2.yaml post /v2/accounts-payable/payables/{payable_id}/cancel
Cancel a payable that has not been submitted for approval
# Create a payable
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/create-a-payable
/v2.yaml post /v2/accounts-payable/payables
Create a payable in your app for accounts payable. The minimum required details to create a payable is the payable number. Remaining fields can be added later by updating the payable before submission.
# Create a payable from a file
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/create-a-payable-from-a-file
/v2.yaml post /v2/accounts-payable/payables/upload-from-file
Create a payable from a file. The contents of the file will be processed and the payable will be created.
# Create a payment method for a vendor
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/create-a-payment-method-for-a-vendor
/v2.yaml post /v2/accounts-payable/vendors/{vendor_id}/payment-methods
Create a payment method for a vendor to pay to
# Create a vendor
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/create-a-vendor
/v2.yaml post /v2/accounts-payable/vendors
Create a vendor in your app for accounts payable
# Create an approval policy
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/create-an-approval-policy
/v2.yaml post /v2/accounts-payable/approval-policies
Create an approval policy that will apply approval steps to payables in your app. It will only apply to policies that match the `approval_conditions` and are in state `submitted_for_approval`. Policies that already have approval steps will not be overwritten.
# Delete a vendor
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/delete-a-vendor
/v2.yaml delete /v2/accounts-payable/vendors/{vendor_id}
Delete a vendor
# Delete a vendor payment method
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/delete-a-vendor-payment-method
/v2.yaml delete /v2/accounts-payable/vendors/{vendor_id}/payment-methods/{payment_method_id}
Delete a vendor payment method
# Delete an approval policy
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/delete-an-approval-policy
/v2.yaml delete /v2/accounts-payable/approval-policies/{approval_policy_id}
Delete an approval policy by its ID
# Delete file from the payable
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/delete-file-from-the-payable
/v2.yaml delete /v2/accounts-payable/payables/{payable_id}/file
Delete a file from the payable
# Get payable details
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/get-payable-details
/v2.yaml get /v2/accounts-payable/payables/{payable_id}
Get details of a payable
# Get vendor details
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/get-vendor-details
/v2.yaml get /v2/accounts-payable/vendors/{vendor_id}
Get details of vendor
# Get vendor payment method details
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/get-vendor-payment-method-details
/v2.yaml get /v2/accounts-payable/vendors/{vendor_id}/payment-methods/{payment_method_id}
Get details of vendor payment method
# List all approval policies
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/list-all-approval-policies
/v2.yaml get /v2/accounts-payable/approval-policies
List all approval policies
# List all approvers for api app
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/list-all-approvers-for-api-app
/v2.yaml get /v2/accounts-payable/approvers
List all approvers for api app
# List all payables
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/list-all-payables
/v2.yaml get /v2/accounts-payable/payables
List all payables
# List all payment methods for a vendor
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/list-all-payment-methods-for-a-vendor
/v2.yaml get /v2/accounts-payable/vendors/{vendor_id}/payment-methods
List all payment methods for a vendor
# List all vendors
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/list-all-vendors
/v2.yaml get /v2/accounts-payable/vendors
List all vendors
# Pay a payable
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/pay-a-payable
/v2.yaml post /v2/accounts-payable/payables/{payable_id}/pay
Pay a payable that has been approved.
# Reject a payable
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/reject-a-payable
/v2.yaml post /v2/accounts-payable/payables/{payable_id}/reject
Reject a payable
# Submit a payable for approval
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/submit-a-payable-for-approval
/v2.yaml post /v2/accounts-payable/payables/{payable_id}/submit-for-approval
Submit a payable for approval
# Update a payable
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/update-a-payable
/v2.yaml patch /v2/accounts-payable/payables/{payable_id}
Update a payable that has not been submitted for approval. To upload/delete the file, use the `/file` endpoint.
# Update priority of an approval policy
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/update-priority-of-an-approval-policy
/v2.yaml patch /v2/accounts-payable/approval-policies/{approval_policy_id}
Update the priority of an approval policy by its ID
# Upload file to the payable
Source: https://dotsdev.mintlify.app/apireference/accounts-payable/upload-file-to-the-payable
/v2.yaml post /v2/accounts-payable/payables/{payable_id}/file
Upload a file to be attached to the payable
# Add App ACH Account
Source: https://dotsdev.mintlify.app/apireference/apps/add-app-ach-account
/v2.yaml put /v2/apps/{app_id}/ach-account
Add an ACH account to an app. The account's owner must match the compliance information submitted.
# Create a KYB flow
Source: https://dotsdev.mintlify.app/apireference/apps/create-a-kyb-flow
/v2.yaml post /v2/apps/{app_id}/kyb-flow
Create a hosted KYB flow for an app in a multi-tenant organization. Share the returned URL with the app's owner so they can submit the business and beneficial-owner information required for verification.
The URL expires after 72 hours. Calling this endpoint again creates a new URL and immediately invalidates the previous one. The endpoint is only available for apps configured for individual business verification that have not already reached a terminal or review state.
# Create an App
Source: https://dotsdev.mintlify.app/apireference/apps/create-an-app
/v2.yaml post /v2/apps
Create an app in your organization
# Deposit Funds into App Wallet
Source: https://dotsdev.mintlify.app/apireference/apps/deposit-funds-into-app-wallet
/v2.yaml post /v2/apps/{app_id}/deposit
Deposit funds into App wallet by endpoint.
# Get App ACH Account
Source: https://dotsdev.mintlify.app/apireference/apps/get-app-ach-account
/v2.yaml get /v2/apps/{app_id}/ach-account
Get the App's ach account information.
# List all Apps
Source: https://dotsdev.mintlify.app/apireference/apps/list-all-apps
/v2.yaml get /v2/apps
List all apps created by your organization
# Retrieve an App
Source: https://dotsdev.mintlify.app/apireference/apps/retrieve-an-app
/v2.yaml get /v2/apps/{app_id}
Retrieve an app in your organization by its ID
# Retrieve an App's Compliance Information
Source: https://dotsdev.mintlify.app/apireference/apps/retrieve-an-apps-compliance-information
/v2.yaml get /v2/apps/{app_id}/compliance
Retrieve the compliance information for an app in your organization
# Update an application's settings
Source: https://dotsdev.mintlify.app/apireference/apps/update-an-applications-settings
/v2.yaml post /v2/apps/{app_id}/change_settings
Update an application's payout and refill settings.
# Update an App's Compliance Information
Source: https://dotsdev.mintlify.app/apireference/apps/update-an-apps-compliance-information
/v2.yaml put /v2/apps/{app_id}/compliance
Add or update compliance information for an app in your organization
# Withdraw Funds From App Wallet
Source: https://dotsdev.mintlify.app/apireference/apps/withdraw-funds-from-app-wallet
/v2.yaml post /v2/apps/{app_id}/withdraw
Withdraw funds from app wallet into app bank account.
# Create a Flow
Source: https://dotsdev.mintlify.app/apireference/flows/create-a-flow
/v2.yaml post /v2/flows
Create a new Flow.
# List all Flows
Source: https://dotsdev.mintlify.app/apireference/flows/list-all-flows
/v2.yaml get /v2/flows
List all Flows.
# Retrieve a Flow
Source: https://dotsdev.mintlify.app/apireference/flows/retrieve-a-flow
/v2.yaml get /v2/flows/{flow_id}
Get a Flow by its id.
# Copy compliance information between applications
Source: https://dotsdev.mintlify.app/apireference/organizations/copy-compliance-information-between-applications
/v2.yaml put /v2/organizations/copy-compliance-information-between-apps
# Retrieve Organization Details
Source: https://dotsdev.mintlify.app/apireference/organizations/retrieve-organization-details
/v2.yaml get /v2/organizations
Get details about the authenticated organization, including its current balance.
# Create a Payment Customer
Source: https://dotsdev.mintlify.app/apireference/payment-customers/create-a-payment-customer
/v2.yaml post /v2/payment-customers
Create a Payment Customer
# List all Payment Customers
Source: https://dotsdev.mintlify.app/apireference/payment-customers/list-all-payment-customers
/v2.yaml get /v2/payment-customers
List all payment customers
# Retrieve a Payment Customer
Source: https://dotsdev.mintlify.app/apireference/payment-customers/retrieve-a-payment-customer
/v2.yaml get /v2/payment-customers/{payment_customer_id}
Get a payment customer by ID.
# Create a Payment
Source: https://dotsdev.mintlify.app/apireference/payments/create-a-payment
/v2.yaml post /v2/payments
Creates a transaction from a user or a payment customer to the app. User the `/users/{user_id}/payout-methods` route to get a user's stored payment methods.
# Create a Payout Batch
Source: https://dotsdev.mintlify.app/apireference/payout-batches/create-a-payout-batch
/v2.yaml post /v2/payout-batches
Create a batch of payouts to multiple users. Each payout in the batch is processed independently with its own idempotency key. The batch itself can also have an idempotency key to prevent duplicate batch submissions. All payouts in a batch must have `fund=true`.
# List all Payout Batches
Source: https://dotsdev.mintlify.app/apireference/payout-batches/list-all-payout-batches
/v2.yaml get /v2/payout-batches
List all payout batches created by your application.
# Retrieve a Payout Batch
Source: https://dotsdev.mintlify.app/apireference/payout-batches/retrieve-a-payout-batch
/v2.yaml get /v2/payout-batches/{payout_batch_id}
Get a payout batch by its id including status and optional metadata
# Retrieve a Payout Batch with detailed results
Source: https://dotsdev.mintlify.app/apireference/payout-batches/retrieve-a-payout-batch-with-detailed-results
/v2.yaml get /v2/payout-batches/{payout_batch_id}/results
Get a payout batch by its id. Returns detailed results for each item in the batch, including transfer information for successful payouts and error messages for failed ones.
# Create a Payout Link
Source: https://dotsdev.mintlify.app/apireference/payout-links/create-a-payout-link
/v2.yaml post /v2/payout-links
Create a Payout Link.
# Delete a Payout Link
Source: https://dotsdev.mintlify.app/apireference/payout-links/delete-a-payout-link
/v2.yaml delete /v2/payout-links/{payout_link_id}
Cancel a payout link
# List all Payout Links
Source: https://dotsdev.mintlify.app/apireference/payout-links/list-all-payout-links
/v2.yaml get /v2/payout-links
List all created Payout Links.
# Redeliver Payout Link
Source: https://dotsdev.mintlify.app/apireference/payout-links/redeliver-payout-link
/v2.yaml post /v2/payout-links/{payout_link_id}/redeliver
Redeliver a payout link. Payout links will be delivered up to 5 times.
# Retrieve a Payout Link
Source: https://dotsdev.mintlify.app/apireference/payout-links/retrieve-a-payout-link
/v2.yaml get /v2/payout-links/{payout_link_id}
Get a payout link by its id.
# Create a Payout Request
Source: https://dotsdev.mintlify.app/apireference/payout-requests/create-a-payout-request
/v2.yaml post /v2/payout-requests
Submit a payout request from a person when you know their phone number or user id. Once the payout request is approved, they will be sent a Payout Link to onboard and recieve funds.
# List all Payout Requests
Source: https://dotsdev.mintlify.app/apireference/payout-requests/list-all-payout-requests
/v2.yaml get /v2/payout-requests
List all payout requests.
# Retrieve a Payout Request
Source: https://dotsdev.mintlify.app/apireference/payout-requests/retrieve-a-payout-request
/v2.yaml get /v2/payout-requests/{payout_request_id}
Get a payout request by its id.
# Create a Payout
Source: https://dotsdev.mintlify.app/apireference/payouts/create-a-payout
/v2.yaml post /v2/payouts
Create a payout for an existing user that has a payout method saved to their account.
# Send a Payout
Source: https://dotsdev.mintlify.app/apireference/payouts/send-a-payout
/v2.yaml post /v2/payouts/send-payout
Send a payout to a person when you know their phone number or user id. If the user has a Dots acconut, the funds will delivered according to their saved prefernces. Otherwise, they will be sent a Payout Link to onboard and recieve funds.
# List all Transactions
Source: https://dotsdev.mintlify.app/apireference/transactions/list-all-transactions
/v2.yaml get /v2/transactions
List all transactions.
# Retrieve a Transaction
Source: https://dotsdev.mintlify.app/apireference/transactions/retrieve-a-transaction
/v2.yaml get /v2/transactions/{transaction_id}
Get a transaction by its id.
# Create a Transfer Batch
Source: https://dotsdev.mintlify.app/apireference/transfer-batches/create-a-transfer-batch
/v2.yaml post /v2/transfer-batches
Create a transfer batch
# List all Transfer Batches
Source: https://dotsdev.mintlify.app/apireference/transfer-batches/list-all-transfer-batches
/v2.yaml get /v2/transfer-batches
Get a transfer batch
# Retrieve a Transfer Batch
Source: https://dotsdev.mintlify.app/apireference/transfer-batches/retrieve-a-transfer-batch
/v2.yaml get /v2/transfer-batches/{transfer_batch_id}
Get a transfer batch by id
# Create a Transfer
Source: https://dotsdev.mintlify.app/apireference/transfers/create-a-transfer
/v2.yaml post /v2/transfers
Create a transfer.
# Create an Organization Transfer
Source: https://dotsdev.mintlify.app/apireference/transfers/create-an-organization-transfer
/v2.yaml post /v2/organization-transfers
Create a transfer for the organization's wallet to an api app.
# Get a Transfer
Source: https://dotsdev.mintlify.app/apireference/transfers/get-a-transfer
/v2.yaml get /v2/transfers/{transfer_id}
Get a transfer by its id.
# Get an Organization Transfer
Source: https://dotsdev.mintlify.app/apireference/transfers/get-an-organization-transfer
/v2.yaml get /v2/organization-transfers/{transfer_id}
Get an organization transfer by its id.
# List all Organization Transfers
Source: https://dotsdev.mintlify.app/apireference/transfers/list-all-organization-transfers
/v2.yaml get /v2/organization-transfers
List all transfers to and from an Organization's wallet.
# List all Transfers
Source: https://dotsdev.mintlify.app/apireference/transfers/list-all-transfers
/v2.yaml get /v2/transfers
List all transfers.
# Add a Payout Method
Source: https://dotsdev.mintlify.app/apireference/users/add-a-payout-method
/v2.yaml put /v2/users/{user_id}/payout-methods
Add a payout method to the user. Payout method can be one of `paypal`, `venmo`, `ach`, or `cash_app`. Each method has different required parameters.
# Add User Address
Source: https://dotsdev.mintlify.app/apireference/users/add-user-address
/v2.yaml put /v2/users/{user_id}/addresses
Add an address to the user
# Create a User
Source: https://dotsdev.mintlify.app/apireference/users/create-a-user
/v2.yaml post /v2/users
Create a user.
# Delete a User
Source: https://dotsdev.mintlify.app/apireference/users/delete-a-user
/v2.yaml delete /v2/users/{user_id}
Delete a user.
# List all Users
Source: https://dotsdev.mintlify.app/apireference/users/list-all-users
/v2.yaml get /v2/users
List all users connected to your application.
# List Payout Methods
Source: https://dotsdev.mintlify.app/apireference/users/list-payout-methods
/v2.yaml get /v2/users/{user_id}/payout-methods
Get a user's connected payout methods.
# Retrieve a User
Source: https://dotsdev.mintlify.app/apireference/users/retrieve-a-user
/v2.yaml get /v2/users/{user_id}
Get a user by their id.
# Send a Verification Token
Source: https://dotsdev.mintlify.app/apireference/users/send-a-verification-token
/v2.yaml post /v2/users/{user_id}/send-verification-token
Send a user a verification token.
# Submit Compliance Information
Source: https://dotsdev.mintlify.app/apireference/users/submit-compliance-information
/v2.yaml put /v2/users/{user_id}/compliance
Add Compliance information to a user.
# Update a user
Source: https://dotsdev.mintlify.app/apireference/users/update-a-user
/v2.yaml patch /v2/users/{user_id}
Update mutable fields of a user object.
# Verify a User
Source: https://dotsdev.mintlify.app/apireference/users/verify-a-user
/v2.yaml post /v2/users/{user_id}/verify
Verify a user with a token.
# Batch Payouts
Source: https://dotsdev.mintlify.app/guides/batch-payouts
Issue payouts to many users in a single API request and reconcile the results.
Batch Payouts let you create up to 5,000 payouts for different users with one request. The batch executes each payout independently, giving every item its own transfer, status, and idempotency guarantees while still letting you manage the workflow as a unit.
## Requirements
* A Dots account with an App and API credentials.
* Each user in the batch must already exist in your workspace and be allowed to receive payouts on the selected rail.
* Every batch item must set `fund=true`, which moves funds before the payout is issued.
* Plan to handle partial failures by inspecting each item's `error_code` and `error_message`.
## 1. Build the batch payload
Each batch contains a shared `metadata` object and a list of payout items. Every item must use a unique `idempotency_key`; duplicates are rejected during validation.
### Batch-level fields
| Field | Required | Description |
| ----------------- | -------- | ---------------------------------------------------------------- |
| `items` | ✅ | Array of payout requests. Min 1, max 5,000 items. |
| `idempotency_key` | Optional | UUID to prevent duplicate batch submissions. |
| `metadata` | Optional | Attach custom context (string or key/value object) to the batch. |
### Item fields
| Field | Required | Description |
| ------------------ | ---------- | ---------------------------------------------------------------------------------- |
| `user_id` | ✅ | Target user's ID. |
| `amount` | ✅ | Amount in cents to pay the user. |
| `platform` | ✅ | Rail to use (for example `ach`, `paypal`, `venmo`, `default`). |
| `account_id` | Optional | ACH / bank account to use when a user has multiple accounts on the same rail. |
| `idempotency_key` | ✅ | UUID to deduplicate this specific payout. Must be unique within the batch. |
| `fund` | ✅ (`true`) | Batch payouts currently require `true`. Transfers funds before issuing the payout. |
| `tax_exempt` | Optional | Exclude the payout from 1099 calculations. |
| `payout_fee_party` | Optional | Override who pays fees (`user` or `platform`). |
| `metadata` | Optional | Custom context specific to the item. Returned in results for easy reconciliation. |
## 2. Create the batch
Use [`POST /v2/payout-batches`](/apireference/payout-batches/create-a-payout-batch) with your App credentials. Reuse the same `idempotency_key` to safely retry the request.
```sh Request theme={null}
curl --request POST \
--url https://api.senddotssandbox.com/api/v2/payout-batches \
--header 'Authorization: Basic ' \
--header 'Content-Type: application/json' \
--data '{
"idempotency_key": "a7bb54d2-7342-4d13-a8aa-9d999753128b",
"metadata": {
"batch_type": "weekly_payouts",
"week": "2024-08"
},
"items": [
{
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"amount": 1000,
"platform": "paypal",
"idempotency_key": "c3d4e5f6-g7h8-i9j0-k1l2-m3n4o5p6q7r8",
"fund": true,
"tax_exempt": false,
"metadata": {
"invoice_id": "INV-123"
}
},
{
"user_id": "b269451c-9625-5452-c9db-171ee559b2b6",
"amount": 2500,
"platform": "ach",
"account_id": "c369451c-a725-6552-d0ec-272ff669c3c7",
"idempotency_key": "d4e5f6g7-h8i9-j0k1-l2m3-n4o5p6q7r8s9",
"fund": true,
"tax_exempt": false
}
]
}'
```
```json Response theme={null}
{
"id": "e5d5863a-498d-4551-a3dc-e31012503f23",
"created": "2024-08-03T16:02:11.581Z",
"status": "created",
"idempotency_key": "a7bb54d2-7342-4d13-a8aa-9d999753128b",
"metadata": {
"batch_type": "weekly_payouts",
"week": "2024-08"
}
}
```
The batch is queued for execution immediately. Statuses progress from `created` → `processing` → `paying_out` → `completed` as transfers are issued.
## 3. Track batch processing
### Check the batch summary
Poll [`GET /v2/payout-batches/{payout_batch_id}`](/apireference/payout-batches/retrieve-a-payout-batch) to monitor the batch-level status and metadata.
```sh theme={null}
curl --request GET \
--url https://api.senddotssandbox.com/api/v2/payout-batches/e5d5863a-498d-4551-a3dc-e31012503f23 \
--header 'Authorization: Basic '
```
### Retrieve per-item results
Call `GET /v2/payout-batches/{payout_batch_id}/results` for detailed outcomes. Set `include_request=true` to echo the original request payload for each item.
```sh Request theme={null}
curl --request GET \
--url "https://api.senddotssandbox.com/api/v2/payout-batches/e5d5863a-498d-4551-a3dc-e31012503f23/results?include_request=true" \
--header 'Authorization: Basic '
```
```json Response theme={null}
{
"id": "e5d5863a-498d-4551-a3dc-e31012503f23",
"created": "2024-08-03T16:02:11.581Z",
"status": "completed",
"items": [
{
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"idempotency_key": "c3d4e5f6-g7h8-i9j0-k1l2-m3n4o5p6q7r8",
"transfer": {
"id": "ad83f472-0505-4a4c-82c6-46686034a6d2",
"status": "settled"
},
"metadata": {
"invoice_id": "INV-123"
},
"error_code": null,
"error_message": null,
"request": {
"user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
"amount": 1000,
"platform": "paypal",
"idempotency_key": "c3d4e5f6-g7h8-i9j0-k1l2-m3n4o5p6q7r8",
"fund": true,
"tax_exempt": false,
"metadata": {
"invoice_id": "INV-123"
}
}
},
{
"user_id": "b269451c-9625-5452-c9db-171ee559b2b6",
"idempotency_key": "d4e5f6g7-h8i9-j0k1-l2m3-n4o5p6q7r8s9",
"transfer": null,
"metadata": null,
"error_code": "no_such_resource",
"error_message": "User not found: b269451c-9625-5452-c9db-171ee559b2b6",
"request": {
"user_id": "b269451c-9625-5452-c9db-171ee559b2b6",
"amount": 2500,
"platform": "ach",
"account_id": "c369451c-a725-6552-d0ec-272ff669c3c7",
"idempotency_key": "d4e5f6g7-h8i9-j0k1-l2m3-n4o5p6q7r8s9",
"fund": true,
"tax_exempt": false
}
}
],
"metadata": {
"batch_type": "weekly_payouts",
"week": "2024-08"
}
}
```
Use the per-item `transfer.status` to reconcile payouts that succeeded (`settled` / `processing`) versus those that require follow-up. Items that fail keep their `error_code` and can be retried with a new idempotency key once the underlying issue is resolved.
## 4. List historical batches
[`GET /v2/payout-batches`](/apireference/payout-batches/list-all-payout-batches) returns paginated batches created by your App. Use `limit`, `starting_after`, and `ending_before` to page through older entries.
```sh theme={null}
curl --request GET \
--url "https://api.senddotssandbox.com/api/v2/payout-batches?limit=10" \
--header 'Authorization: Basic '
```
## Best practices
* **Use idempotency everywhere:** Provide both batch- and item-level keys so you can safely retry without creating duplicate payouts.
* **Handle partial failures:** Inspect each item's `error_code`/`error_message` and requeue only the failed items with new idempotency keys.
* **Monitor transfers:** Subscribe to payout and transfer webhooks to track asynchronous status changes beyond the initial batch response.
* **Respect rate limits:** Large batches may take time to execute; poll no more than once every few seconds and back off when the batch is still `processing`.
## What's next?
* Configure [webhooks](/references/webhooks) to receive live updates as payouts are processed.
* Review [idempotency guidance](/references/idempotency) to design safe retry logic.
# Advanced Flow Features
Source: https://dotsdev.mintlify.app/guides/flow-advanced-features
## Flow Messages
Flows can send messages to your application using the `postMessage` API. Flows send two kinds of messages, the height of the iFrame and the status of the flow. To listen to these messages, you need to set up an event listener in your application.
```javascript theme={null}
window.addEventListener(
"message",
(event) => {
if (!event.origin.startsWith("https://my.dots.dev")) return;
console.log(event.data);
},
false
);
```
When the flow is loaded for the first time, the height of the iFrame is sent to the parent window. The format of the message is
```JSON theme={null}
{
"height": number
}
```
When each step of the flow is completed, the status of the flow step is sent to the parent window. The format of the message is
```JSON theme={null}
{
"step": "background-check",
"status": "completed"
}
```
The status is `completed` for every step except for `manage-payouts` where it will be `completed-saved` in the case the user saves the settings without updating any settings.
# Create a Flow
Source: https://dotsdev.mintlify.app/guides/flow-payouts
Dots Flows provides a set of drop-in components that can be used to integrate Dots payouts into your mobile or web application easily. Thus, you can integrate various payout-related functionalities into your application using iframes.
Flows can be used to onboard users, collect compliance information, save payout methods, and initiate payouts. When a user interacts with a Flow, Dots can notify your application through webhooks.
This page presents how you can use flows to onboard users and create payouts. To accomplish it, you will:
1. Create a Flow to onboard a user.
2. Retrieve the new `user_id`.
3. Transfer the funds to the new user.
4. Create a Flow for the user to withdraw the funds.
Before starting, check if you fulfill the requirements and check all available steps you can use when creating a Flow in Dots.
## Requirements
Before creating a payout using Flows, you must have:
* A Dots account.
* Created an App using the [Dashboard](https://dashboard.dots.dev/) or the Dots API.
If you haven't completed one of these steps, access the [Getting Started](/guides/getting-started) before continuing.
## Flow Steps
Flow steps can be used individually or chained together. The following table presents all steps that are available to create a Flow.
| **Step** | **Description** | **Options Available** |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `onboard` | Creates a Dots user and verifies their phone number. |
`hide_continue_button` (boolean): Hides the continue button after the flow is completed.
|
| `compliance` | Collects tax information for the user based on their current location. This step will collect the user’s SSN, date of birth, and address if the user is based in the US. |
`hide_continue_button` (boolean): Hides the continue button after the flow is completed.
|
| `id-verification` | Collects and verifies a user’s government-issued ID and matches their facial scan to that ID. |
`hide_continue_button` (boolean): Hides the continue button after the flow is completed.
|
| `background-check` | Only available for U.S. based users who are over 18. Collects the user's information to run a background check including criminal history and sex offender registry. The status can be tracked via `background_check.status`: `not_started`, `started`, `pending`, `consider`, `pass`, `failed`, `canceled`, `expired`, or `information_mismatch`. If the check fails, `user.has_criminal_activity` will be `true`. |
`hide_continue_button` (boolean): Hides the continue button after the flow is completed.
|
| `manage-payouts` | Allows the user to add payout methods, set a default, and enable automatic payouts. |
`require_default_payout_method` (boolean): Require the user to select a default payout method.
`require_auto_payout_method` (boolean): Require the user to set up auto-payout.
`hide_continue_button` (boolean): Hides the continue button after the flow is completed.
|
| `manage-payments` | Enable the user to connect a bank account for ACH payments. |
`hide_continue_button` (boolean): Hides the continue button after the flow is completed.
|
| `payout` | Allows the user to initiate a payout to their preferred payout method. |
`payout_fee_party` (`platform`, `user`): Defines who pays the fee for the payout.
|
| `redirect` | Redirects the user to a URL of your choice. |
`redirect_url` (string): Defines the URL the user will be redirected to at the end of the Flow.
`hide_continue_button` (bollean): Hides the continue button after the flow is completed.
|
| `pdf-form-fill` | Presents the user with a PDF form to fill out. |
`template_id` (string): The ID of the PDF template to use.
|
If a `user_id` is not provided, the `onboarding` step is automatically added to the start of all Flows.
When using the Sandbox environment, the compliance step will always be shown even if tax information has already been collected for the user. This allows testing the form without creating a new user.
## Creating Payouts Using Flows
When using Flows, you can customize the user journey. This guide will use two Flows, to first onboard the user, and then create a payout.
### 1. Onboarding Users
To onboard the user, you have to create the Flow that will create a Dots user, verify their phone number, and collect their tax information. To create the Flow, you'll use the [Create a Flow](/apireference/flows/create-a-flow). For this guide, only the `compliance` step will be added to the onboard flow.
To use the [Create a Flow](/apireference/flows/create-a-flow) endpoint, you have to provide your App credentials for the authentication. Access [API Authentication](/overview/authentication) for additional information.
The following code block presents request and response examples of creating a Flow using the [Create a Flow](/apireference/flows/create-a-flow) endpoint.
```sh Request theme={null}
curl --request POST \
--url https://pls.senddotssandbox.com/api/v2/flows/ \
--header 'Authorization: Basic cGtfZGV2X0g3V0tFOXlTRGhqeW91dFZBNEk3RkxhVkUzaWg1OnNrX2Rldl9lekFPNXA0WUNJeld6RWgwam5ubHFrODRkQ3ZFOQ==' \
--header 'Content-Type: application/json' \
--data '{
"steps": [
"compliance"
],
}'
```
```json Response theme={null}
{
"completed_steps": [],
"created": "2024-07-11T21:10:30.846081",
"id": "b3293101-35ef-451a-aad4-881da3697c2f",
"link": "https://my-sandbox.dots.dev/flow/b3293101-35ef-451a-aad4-881da3697c2f",
"metadata": null,
"payout_link_id": null,
"steps": [
"compliance"
],
"user_id": null
}
```
From the response, use the `link` to embed the onboard process into an iframe within your application. In addition, you'll use the Flow `id` to retrieve the user information after they complete the onboarding.
The GIF below presents the user interface provided by Dots, which is completely responsive, enabling you to integrate into any application.
### 2. Retrieving Flow Information
After the user completes the onboard Flow, you can create the payout. You should use webhooks to avoid checking multiple times to see if your customer has completed the onboarding. When the user completes each Flow step, a webhook will be triggered with the Flow’s `id` received in the previous step. See the [Webhooks](/references/webhooks) documentation page to learn how to configure your webhooks in Dots.
After receiving the confirmation, you can use the [Retrieve Flow Information](/apireference/flows/retrieve-a-flow) endpoint to have access to the new `user_id`. The following code block presents request and response examples of retrieving Flow information.
```sh Request theme={null}
curl --request GET \
--url https://pls.senddotssandbox.com/api/v2/flows/b3293101-35ef-451a-aad4-881da3697c2f \
--header 'Authorization: Basic cGtfZGV2X0g3V0tFOXlTRGhqeW91dFZBNEk3RkxhVkUzaWg1OnNrX2Rldl9lekFPNXA0WUNJeld6RWgwam5ubHFrODRkQ3ZFOQ==' \
```
```json Response theme={null}
{
"completed_steps": [],
"created": "2024-07-11T21:10:30.846081",
"id": "b3293101-35ef-451a-aad4-881da3697c2f",
"link": "https://my-sandbox.dots.dev/flow/b3293101-35ef-451a-aad4-881da3697c2f",
"metadata": null,
"payout_link_id": null,
"steps": [
"compliance"
],
"user_id": "f33919ae-6793-41bd-b512-1ad3c19f4ecb"
}
```
From the response, you have access to the `user_id`, which you'll use to create a payout Flow.
If you don't receive the `user_id`in your response, it means that the user hasn't finished the onboarding Flor.
### 3. Transfering Funds
Now that you have access to the user account information (`user_id`), you can transfer the funds related to the payout to their account. To perform this action, you'll use the [Create a Transfer](/apireference/transfers/create-a-transfer) endpoint, informing the `amount` to transfer and the receiver `user_id`.
The following code block presents request and response examples of creating a transfer using the `user_id` received in the previous step.
The `amount` value must be informed in cents. Use negative values to transfer money from your App to the user.
```sh Request theme={null}
curl --request POST \
--url https://pls.senddotssandbox.com/api/v2/transfers \
--header 'Authorization: Basic cGtfZGV2X0g3V0tFOXlTRGhqeW91dFZBNEk3RkxhVkUzaWg1OnNrX2Rldl9lekFPNXA0WUNJeld6RWgwam5ubHFrODRkQ3ZFOQ==' \
--header 'Content-Type: application/json' \
--data '{
"amount": -1000,
"user_id": "f33919ae-6793-41bd-b512-1ad3c19f4ecb"
}'
```
```json Response theme={null}
{
"amount": "-1000",
"created": "2024-07-11T21:17:33.959976",
"external_data": {},
"id": "847e70b4-e057-457e-aa89-ba0312f159c1",
"metadata": null,
"status": "completed",
"status_history": [
{
"status": "completed",
"timestamp": "Thu, 11 Jul 2024 21:17:33 GMT"
}
],
"transactions": [
{
"amount": "1000.0000000000",
"created": "2024-07-11T21:17:33.950405",
"destination_name": "enamored-education",
"id": 767354,
"metadata": null,
"source_name": "TestWriteChoiceApp",
"type": "balance"
}
],
"type": "balance",
"user_id": "f33919ae-6793-41bd-b512-1ad3c19f4ecb"
}
```
By checking the response `status`, you can see that the transfer was `completed`. Therefore, the funds are in the user account, and now you need to create a Flow to enable them to withdraw these funds.
### 4. Withdrawing Funds
To complete the payout process, you need to enable the user to withdraw the transferred funds using their preferred payment method. To accomplish this, you can create a new Flow, selecting the `payout` step and informing the `user_id` retrieve in Step 2. Since you provide the `user_id`, the onboarding steps won't be presented to your user.
The following code block presents request and response examples of creating a Flow using the [Create a Flow](/apireference/flows/create-a-flow) endpoint with only the `payout` step.
The link will stay authenticated for 15 minutes. If the user takes longer than 15 minutes to complete the Flow, they will need to re-authenticate through an SMS verification code.
```sh Request theme={null}
curl --request POST \
--url https://pls.senddotssandbox.com/api/v2/flows/ \
--header 'Authorization: Basic cGtfZGV2X0g3V0tFOXlTRGhqeW91dFZBNEk3RkxhVkUzaWg1OnNrX2Rldl9lekFPNXA0WUNJeld6RWgwam5ubHFrODRkQ3ZFOQ==' \
--header 'Content-Type: application/json' \
--data '{
"steps": [
"payout"
],
}'
```
```json Response theme={null}
{
"completed_steps": [],
"created": "2024-07-12T11:08:32.486385",
"id": "6ad6b948-422d-4fc4-bd6c-fe1521639a2b",
"link": "https://my-sandbox.dots.dev/flow/6ad6b948-422d-4fc4-bd6c-fe1521639a2b",
"metadata": null,
"payout_link_id": null,
"steps": [
"payout"
],
"user_id": "f33919ae-6793-41bd-b512-1ad3c19f4ecb"
}
```
From the response, use the `link` to embed the payout process into an iframe within your application. The GIF below presents the user interface provided by Dots.
## What's Next?
In addition to customizing the user journey, you can customize the Flow appearance. See [Flow Styles](guides/flow-styles) to learn how to change the Flows' appearance to match your branding.
# Flow Styles
Source: https://dotsdev.mintlify.app/guides/flow-style
The Dots Flow solution supports extensive visual customization, allowing you to align the Flow's appearance with your site's design and brand. You can modify colors, buttons, borders, padding, and more to ensure a seamless user experience.
## Available configurations
You can customize the Flows' appearance by changing the theme and CSS variables. The `theme` parameter controls the overall appearance of elements that cannot be individually configured, such as the Dots logo or the date picker icon. The available themes are:
* `light` (default)
* `dark`
The variables object contains several parameters that work similarly to CSS variables, enabling you to customize specific Flow components. The complete list of customizable variables is presented in the following table:
| Variable | Description |
| ------------------------------- | --------------------------------------------------------------------------------------------------- |
| `backgroundColor` | Background color of the flow. |
| `primaryTextColor` | Color of texts used in titles and labels. |
| `secondaryTextColor` | Color of secondary texts used in sub-labels and buttons. |
| `tertiaryTextColor` | Color of tertiary texts, such as the default payout method indicator or the `Visit dashboard` link. |
| `primaryColor` | Primary color of the flow theme, such as button hovers or highlights. |
| `tabBackgroundColor` | Background color of the rail tab. |
| `tabHoverBackgroundColor` | Background color of the rail tab when the cursor hovers over it. |
| `tabBorderColor` | Border color of the rail tab. |
| `tabHoverBorderColor` | Border color of the rail tab when the cursor hovers over it. |
| `buttonBackgroundColor` | Background color of action buttons located at the bottom of each flow page. |
| `buttonTextColor` | Text color of action buttons located at the bottom of each flow page. |
| `buttonHoverTextColor` | Text color of action buttons when the cursor hovers over them. |
| `buttonHoverBackgroundColor` | Background color of action buttons when the cursor hovers over them. |
| `buttonDisabledBackgroundColor` | Background color of action buttons when they are disabled. |
| `buttonDisabledTextColor` | Text color of action buttons when they are disabled. |
| `inputBackgroundColor` | Background color of inputs such as checkboxes or text fields. |
| `inputBorderColor` | Border color of inputs. |
| `inputPlaceholderColor` | Placeholder color of inputs. |
| `borderRadius` | Border radius of buttons, tabs, icons, and inputs. |
The following code block presents the JSON structure you should use to set the Flow style.
```json theme={null}
{
"theme": "light",
"variables": {
"backgroundColor": "",
"primaryTextColor": "",
"secondaryTextColor": "",
"primaryColor": "",
"tabBackgroundColor": "",
"tabHoverBackgroundColor": "",
"tabBorderColor": "",
"tabHoverBorderColor": "",
"buttonBackgroundColor": "",
"buttonTextColor": "",
"buttonHoverTextColor": "",
"buttonHoverBackgroundColor": "",
"inputBackgroundColor": "",
"inputBorderColor": "",
"tertiaryTextColor": "",
"buttonDisabledBackgroundColor": "",
"buttonDisabledTextColor": "",
"inputPlaceholderColor": "",
"borderRadius": ""
}
}
```
## Customizing a Flow
To apply the custom styling to your Flow, follow the steps:
1. First, you need to stringify the configurations, including `theme` and `variables`, converting the configurations to a JSON string.
2. URL encode the JSON string.
3. Append the encoded string as a `?styles={url_encoded_config}` query parameter to the Flow link when attaching it to an iframe.
The following code block presents an example of how to customize the flow styles with specific configurations:
```javascript theme={null}
// Define the style configuration
const configurations = {
theme: "dark",
variables: {
backgroundColor: "#000000",
primaryTextColor: "#ffffff",
secondaryTextColor: "#9ca3af",
primaryColor: "#c88bc4",
tabBackgroundColor: "#111827",
tabHoverBackgroundColor: "#374151",
tabBorderColor: "#e5e7eb",
tabHoverBorderColor: "#7dd3fc",
buttonBackgroundColor: "#c88bc4",
buttonTextColor: "#ffffff",
buttonHoverTextColor: "#ffffff",
buttonHoverBackgroundColor: "#a672a2",
inputBackgroundColor: "#111827",
inputBorderColor: "#c88bc4",
buttonDisabledBackgroundColor: "#1f2937",
buttonDisabledTextColor: "#d1d5db",
inputPlaceholderColor: "#4b5563",
borderRadius: "8px"
}
};
// Stringify and URL encode the style configuration
const url_encoded_config = encodeURIComponent(JSON.stringify(configurations));
// Add the encoded configuration as a query parameter
const flowURI =
"https://my.senddotssandbox.com/flow/5f0f8f8f-f8f8-f8f8-f8f8-f8f8f8f8f8f8?styles=" +
url_encoded_config;
```
The following image presents the customization result:
# Getting Started
Source: https://dotsdev.mintlify.app/guides/getting-started
To start using one of Dots payout solutions you have to perform two basic steps:
* Create a Dots account.
* Create an App.
This page will walk you through the steps.
If you aren't familiar with the App concept in Dots, see the Applications section on the [Concepts](/overview/concepts#applications-apps) page.
## 1. Creating an Account
To create a Dots account, follow the steps presented below:
1. Visit the [Dots signup page](https://dashboard.dots.dev/signup) and fill out the required information to create your account.
2. Register a phone number to receive the verification code.
3. Use the verification code received on your phone to activate your account.
4. Once verified, log in to the Dots dashboard to find your credentials. For more information on how to access your credentials, see the [API Authentication](/overview/authentication) page.
## 2. Creating an App
After setting up your Dots account, the next step is to create an App. You can create an app through the Dots Dashboard:
1. Access and log in to the [Dashboard](https://dashboard.dots.dev/).
2. Click **+ Create New** on the sidebar to create a new App.
3. Choose the **Organization**, provide an **App name**, and click **Create**.
If you use the Sandbox environment, the new App will be created with a wallet balance of \$1,000,000.00. This enables you to test the payout features provided by Dots.
The new App will be available on the sidebar selector. The App ID will be available right below the selector.
## What's Next?
Now that you have a Dots account and have created an App, you can try one of the payout solutions provided by Dots:
* [Payout Links](/guides/payout-links)
* [Flow Payouts](/guides/flow-payouts)
* [White-labeled Payouts](/guides/white-labeled-payouts)
# Payout Links
Source: https://dotsdev.mintlify.app/guides/payout-links
Payout Links is the most straightforward solution offered by Dots, allowing you to send money without the need to create a user or transfer manually.
You can send a payout link automatically through email or SMS or share the link manually. New payees will be guided through a quick onboarding process and given tons of convenient payment options to receive their payout.
## Requirements
Before creating your first Payout Link, you must have:
* A Dots account.
* Created an App using the [Dashboard](https://dashboard.dots.dev/) or the Dots API.
If you haven't completed one of these steps, access the [Getting Started](/guides/getting-started) before continuing.
## 1. Creating a Payout Link
You can create a Payout Link using the Dashboard or the API. Below you will find the steps to create a Payout Link using each of these options:
To create the Payout Link using the API, you will need to use the **App API Key** and **Client ID**. You can find this information by accessing the Dashboard, selecting the desired App, and then selecting **API Management** on the sidebar.
With your credentials, you can create the Payout Link using the [Create a Payout Link](/apireference/payout-links/create-a-payout-link) endpoint. The only required parameter is the `amount` value. However, you have several other options available, which are described in the following table:
| Parameter | Description |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `user_id` | The user's id. |
| `payee` | The payee. |
| `amount` | **REQUIRED**. Amount to be paid in cents. |
| `delivery` | Delivery information. |
| `delivery.message` | Message to send in the SMS message that is sent to the payee. |
| `delivery.method` | Delivery method. Options: `sms`, `link`, `email`, `all`. |
| `force_collect_compliance_information` | Force the collection of 1099 or W-8 information. |
| `tax_exempt` | Payout links marked as `tax_exempt` will not be counted towards the 1099 threshold. |
| `metadata` | Set of key-value pairs that you can attach to an object. It is useful for storing additional information about the object in a structured format. |
| `memo` | Add a memo to the top of the Payout Link. |
| `idempotency_key` | Unique UUID key that prevents duplicate requests from being processed. |
| `payout_fee_party` | Overrides the setting for which party will pay fees on this payout. |
| `additional_steps` | Array of steps in the onboarding process. Options: `compliance`, `id-verification`, `background-check`, `manage-payments`, `manage-payouts`, `payout`, `redirect`. |
The following code block presents request and response examples of creating a Payout Link using the [Create a Payout Link](/apireference/payout-links/create-a-payout-link) endpoint.
```sh Request theme={null}
curl --request POST \
--url https://pls.senddotssandbox.com/api/v2/payout-links \
--header 'Authorization: Basic ' \
--header 'Content-Type: application/json' \
--data '{
"amount": 123,
"idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
```
```json Response theme={null}
{
"accounting_data": {
"quickbooks_account_id": null
},
"amount": 123,
"claimed_user_id": null,
"created": "2024-07-11T12:31:33.479437",
"delivery": {
"country_code": null,
"email": null,
"method": "link",
"phone_number": null
},
"description": null,
"flow_id": "7c22fd05-147e-48bb-b008-f48f24b76ea4",
"id": "e5d5863a-498d-4551-a3dc-e31012503f23",
"link": "https://my-sandbox.dots.dev/flow/7c22fd05-147e-48bb-b008-f48f24b76ea4",
"memo": null,
"metadata": null,
"payee": {
"country_code": null,
"email": null,
"first_name": null,
"last_name": null,
"phone_number": null
},
"status": "delivered",
"tax_exempt": false,
"transfer_id": "c1d3ec40-e05e-4385-acd6-c587372c4c3a"
}
```
The `link` parameter in the response will provide the Payout Link you can share with the payee.
1. Access and log in to the [Dashboard](https://dashboard.dots.dev/).
2. Select the desired App from the sidebar selector.
3. Access the **Send Payout** tab and select **Payout Links**.
4. Provide the payout information. The only information required at this step is the **Amount** and the delivery method, which can be:
* **Link**: Use this option to share the link manually.
* **SMS**: If you choose this option, you must provide the payees' phone numbers. The link will be automatically shared.
* **Email**: If you choose this option, you must provide the payees' email. The link will be automatically shared.
5. Click **Submit**.
If you choose Link, the Payout Link will appear below the Submit button. If you choose SMS or Email, the link will be automatically shared.
## 2. Using the Payout Link
When the payee receives and uses the Payout Link, they'll be redirected to the Dots portal. The payees will be guided through a quick onboarding process. The payee will complete the following steps:
1. Enter a phone number.
2. Verify the phone number.
3. Submit the IRS Form W-8BEN or W9 depending on location and payout size.
4. Select the payout method.
5. Provide the payout method information.
Payees can retrieve their funds using several payout rails, such as local bank transfers, wire transfers, and PayPal. Access the [Supported Countries](/references/supported-countries) page to see what payment options are available in your country.
The following video presents an example of when the payee doesn't need to submit the IRS Form W-8BEN and selects the Amazon Gift card as the payment method.
## What's Next?
To stay up to date with all updates of your payouts, you can configure webhooks. Access the [Webhooks](/references/webhooks) documentation page to configure your webhooks in Dots.
If you're using Dots API, check the complete list of [error codes](/references/error-codes) you can receive.
# White-Labeled Payouts
Source: https://dotsdev.mintlify.app/guides/white-labeled-payouts
White-labeled payouts give you complete control over the payout experience within your own application. By integrating directly with the Dots API, you can create a fully branded payout flow that minimizes payee friction and keeps users within your ecosystem.
This approach is ideal for businesses with developer teams who want to:
* Maintain full branding and user experience control
* Collect user information through their own UI
* Minimize direct payee interactions with Dots
* Customize the payout flow to match their product
This guide walks through the end-to-end implementation steps for creating white-labeled payouts using the Dots API.
## Requirements
Before creating a payout using the Dots API, you must have:
* A Dots developer dashboard account.
* An App that has been approved.
## 1. Create a User
The first step is to create a user. You must first capture user information through your system, including first name, last name, email, country code, and phone number.
After capturing the user information, you can create a user using the [Create a User](/apireference/users/create-a-user) endpoint. The required parameters are:
* `first_name`
* `last_name`
* `email`
* `country_code`
* `phone_number`
You can add additional information when creating the user or use metadata to store custom data, such as an internal `id`. See the [Metadata](/references/metadata) page for details. You can also update the user later using the [Update a User](/apireference/users/update-a-user) endpoint.
Request and response examples:
```sh Request theme={null}
curl --request POST \
--url https://pls.senddotssandbox.com/api/v2/users \
--header 'Authorization: Basic cGtfZGV2X3lpYXF0aXkwOGdIb3gzR3pvUEo2RlFsaURkSDRnOnNrX2Rldl9nUDBHQjZCd1FmZmt3S2FEVkh0UmdTd0NPT2RNVA==' \
--header 'Content-Type: application/json' \
--data '{
"first_name": "Yizhuo",
"last_name": "Ning",
"email": "sample@dots.dev",
"country_code": "86",
"phone_number": "12345678901",
"metadata": {
"internal_id": "user_121344"
}
}'
```
```json Response theme={null}
{
"email": "sample@dots.dev",
"first_name": "Yizhuo",
"id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4",
"last_name": "Ning",
"metadata": {
"internal_id": "user_121344"
},
"phone_number": {
"country_code": "86",
"phone_number": "12345678901"
},
"status": "unverified",
"verified": false
}
```
The response includes the user `id`.
## 2. Submit Compliance Information
Depending on the user's location, you may need to capture and submit their compliance information:
* For users based in the United States, you must provide W-9 information.
* For international users, you must provide W-8BEN information.
To submit the compliance information to Dots, use the [Submit Compliance Information](/apireference/users/submit-compliance-information) endpoint. You must provide the `user_id`, which is the same `id` received in step 1.
While this step is not strictly required in all cases, we strongly recommend providing compliance information upfront to reduce your integration complexity and facilitate a frictionless, white-labeled payout experience. If this information is not provided upfront, it will need to be collected later if a user triggers a condition that requires collection (e.g., if a U.S.-based user exceeds the annual 1099 threshold for payouts).
## 3. Verify the User
Next, you need to verify the user. First, send a verification code to the user's phone using the [Send a Verification Token](/apireference/users/send-a-verification-token) endpoint. The user will receive a verification code at their registered phone number. The [Send a Verification Token](/apireference/users/send-a-verification-token) endpoint will return a 202 HTTP response for successful requests.
After sending the verification code, you must provide a UI for the user to enter the verification code. Capture the code the user enters and use it to verify their account using the [Verify a User](/apireference/users/verify-a-user) endpoint. Successful requests will return a 200 HTTP response.
## 4. Add a Default Payout Method
To enable users to withdraw their transferred funds, they should set a default payout method. The API doesn't provide a way to determine which payout methods are available for a user to add based on their location. Therefore, before creating the first payout, you should use a Flow to enable the user to set a default payout method. Then you can use the API to create a payout using the default payout method chosen by the user.
To add a default payout method to the user's account, use the [Create a Flow](/apireference/flows/create-a-flow) endpoint to create a Flow with the `manage-payouts` step. You must provide the `user_id` you received in [Step 1](#1-create-a-user). Request and response examples:
```sh Request theme={null}
curl --request POST \
--url https://pls.senddotssandbox.com/api/v2/flows/ \
--header 'Authorization: Basic cGtfZGV2X0g3V0tFOXlTRGhqeW91dFZBNEk3RkxhVkUzaWg1OnNrX2Rldl9lekFPNXA0WUNJeld6RWgwam5ubHFrODRkQ3ZFOQ==' \
--header 'Content-Type: application/json' \
--data '{
"steps": [
"manage-payouts"
],
"user_id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4"
}'
```
```json Response theme={null}
{
"completed_steps": [],
"created": "2024-07-30T13:19:09.438268",
"id": "17f357c1-7f4d-4101-a2c0-8cb9c9947ac8",
"link": "https://my-sandbox.dots.dev/flow/17f357c1-7f4d-4101-a2c0-8cb9c9947ac8",
"metadata": null,
"payout_link_id": null,
"steps": [
"manage-payouts"
],
"user_id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4"
}
```
From the response, use the `link` to embed the Flow into an iframe within your application or redirect the user.
To start the Flow, Dots will send a verification code to the user's phone to confirm their identity. Once verified, all available payout methods will be displayed. The user can then select their preferred payout method and provide the necessary information. At the end of the process, there is an option to set this as the default payment method, which is selected by default. If the user has a default payout method in their account, funds can be transferred automatically using this method.
After the user has set a default payout method, you can proceed to the next step.
## 5. Create a Payout
You can create the payout using one of two methods:
* [Two Steps](#two-steps): Create a transfer from the app wallet to a user wallet, and then create a payout from the user wallet using the default payment method.
* [Single Step](#single-step): Create a payout with `fund: true` to transfer the funds from the app wallet to the user wallet and automatically create a payout from the user wallet using the default payment method.
### Two Steps
For a two-step process, first use the [Create a Transfer](/apireference/transfers/create-a-transfer) endpoint to transfer funds from your app wallet to the user's wallet. You need to provide the `amount` and the `user_id` you received in [Step 1](#1-create-a-user). Request and response examples:
```sh Request theme={null}
curl --request POST \
--url https://api.dots.dev/api/v2/transfers \
--header 'Authorization: Basic cGtfZGV2X0g3V0tFOXlTRGhqeW91dFZBNEk3RkxhVkUzaWg1OnNrX2Rldl9lekFPNXA0WUNJeld6RWgwam5ubHFrODRkQ3ZFOQ==' \
--header 'Content-Type: application/json' \
--data '{
"amount": -1000,
"user_id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4"
}'
```
```json Response theme={null}
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"user_id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4",
"status": "created",
"type": "refill",
"amount": 1000,
"external_data": {
"account_id": "",
"external_id": "",
"platform": "ach"
},
"transactions": [
{
"id": 123,
"amount": 1000,
"created": "2023-11-07T05:31:56Z",
"source_name": "",
"destination_name": "",
"type": "balance",
"metadata": ""
}
],
}
```
After transferring the funds to the user's wallet, you can create the payout using the [Create a Payout](/apireference/payouts/create-a-payout) endpoint. You must provide the `amount`, `user_id`, and `platform`. For the `amount`, you can specify a different value than the one used when creating the transfer. However, if the user doesn't have enough funds, the transaction will fail. For the `platform`, if the user has a default payout method, you can set `platform: default`. If the user hasn't defined a default payout method, you must collect their preferences and payout information and include the information in the request to the [Create a Payout](/apireference/payouts/create-a-payout) endpoint. Request and response examples:
```sh Request theme={null}
curl --request POST \
--url https://api.dots.dev/api/v2/payouts \
--header 'Authorization: Basic cGtfZGV2X0g3V0tFOXlTRGhqeW91dFZBNEk3RkxhVkUzaWg1OnNrX2Rldl9lekFPNXA0WUNJeld6RWgwam5ubHFrODRkQ3ZFOQ==' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4",
"amount": 1000,
"platform": "default"
}'
```
```json Response theme={null}
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"user_id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4",
"status": "created",
"type": "refill",
"amount": 1000,
"external_data": {
"account_id": "",
"external_id": "",
"platform": "ach"
},
"transactions": [
{
"id": 123,
"amount": 1000,
"created": "2023-11-07T05:31:56Z",
"source_name": "",
"destination_name": "",
"type": "balance",
"metadata": ""
}
],
}
```
### Single Step
To create the payout in a single step, use the [Create a Payout](/apireference/payouts/create-a-payout) endpoint. Provide the following parameters:
* `amount`: The payout amount the user will receive.
* `user_id`: The user ID you received in [Step 1](#1-create-a-user).
* `platform`: If the user has a default payout method, you can set `platform: default`. If the user hasn't defined a default payout method, you must collect their preferences and payout information.
* `fund`: Set to `true` to enable Dots to create a transfer for the amount to the user before creating the payout. The funds are returned if the payout does not succeed.
Request and response examples:
```sh Request theme={null}
curl --request POST \
--url https://api.dots.dev/api/v2/payouts \
--header 'Authorization: Basic cGtfZGV2X0g3V0tFOXlTRGhqeW91dFZBNEk3RkxhVkUzaWg1OnNrX2Rldl9lekFPNXA0WUNJeld6RWgwam5ubHFrODRkQ3ZFOQ==' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4",
"amount": 1000,
"platform": "default",
"fund": true
}'
```
```json Response theme={null}
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"user_id": "fc54b468-bbb2-403f-be36-5627a8e3c7a4",
"status": "created",
"type": "refill",
"amount": 1000,
"external_data": {
"account_id": "",
"external_id": "",
"platform": "ach"
},
"transactions": [
{
"id": 123,
"amount": 1000,
"created": "2023-11-07T05:31:56Z",
"source_name": "",
"destination_name": "",
"type": "balance",
"metadata": ""
}
],
}
```
## What's Next?
You can configure webhooks to receive updates about users, transfers, and payouts. See the [Webhooks](/references/webhooks) page for details.
If you're facing errors while using the Dots API, check the complete list of [error codes](/references/error-codes) you can receive.
# API Authentication
Source: https://dotsdev.mintlify.app/overview/authentication
The Dots API uses a Basic token approach to authorize requests. When you perform an API request, you must inform the token created using your `client_id` and `api_key`.
Do not share your secret API keys in public places like Github or Gitlab since this opens space for malicious API calls.
## Basic Token Format
The Basic token is a URL-safe Base64 encoding of a string that contains your `client_id` and optionally your `api_key`. Depending on whether your request comes from a server or the client side, the token will contain different information, as described in the following table.
| Origin | Token composition |
| ----------- | -------------------------------------- |
| Client side | `BASE64_ENCODE({client_id}:)` |
| Server side | `BASE64_ENCODE({client_id}:{api_key})` |
You should include `:` after your `client_id` when generating the token from the client side.
Suppose your `cliend_id = ABC123` and `api_key = DEF456`, you would have the following resulting tokens:
```javascript Client side theme={null}
BASE64_ENCODE(ABC123:) -> QUJDMTIzOg==
```
```javascript Server side theme={null}
BASE64_ENCODE(ABC123:DEF456) -> QUJDMTIzOkRFRjQ1Ng==
```
To authenticate your requests, you'll send the token through the header of your request, following the structure presented below:
```javascript Header format theme={null}
Authorization: Basic {token}
```
## Dots Keys
When working with Dots, you have access to organization and App keys, which you will use in different scenarios to authenticate your requests to the Dots API.
Your organization and App keys change when you toggle between the Sandbox and Production environments. See the [Environments](/overview/environments) page for more information. Therefore, if you're changing from the Sandbox to the Production environment, remember to change the keys in your code.
### App Keys
Dots enables you to create and use [applications (Apps)](/overview/concepts#applications-apps), which is helpful for multi-tenancy applications where you want to logically separate funds and users on your platform.
Every new App has its own App Keys, which you can use to authenticate all operations related to that App.
See [Basic Token Format](#basic-token-format) to learn how to generate the token before sending your requests.
To access your App key, access the [Dots dashboard](https://dashboard.dots.dev/), select the desired App through the sidebar selector, and then select **API Management**. Your App Key will be shown like exemplified below:
### Organization Keys
Organization keys are used to authenticate Dots operations across all the applications in your organization. You can use them to create, update, and delete apps and act on behalf of Apps. When using organization keys to execute App operations, you must inform the organization key and the `Api-App-Id` to identify the App. The following code block presents how to use the organization key to create an App and send a payout.
You will always inform your authentication key in a token format when using the Dots API. See [Basic Token Format](#basic-token-format) on this page to learn how to generate the token before sending your requests.
```curl Create App theme={null}
curl --request POST \
--url https://api.dots.dev/api/v2/apps \
--header 'Authorization: Basic ' \
--header 'Content-Type: application/json' \
--data '{
"name": "",
}'
```
```curl Send Payout theme={null}
https://pls.senddotssandbox.com/api/v2/payouts/send-payout \
-X POST \
-u "CLIENT_ID: " \
-H "Content-Type: application/json" \
-H "Api-App-Id: " \
-d "{
"delivery": {
"message": "My first payout"
},
"amount": 1000,
"payee": {
"country_code": "1",
"phone_number": "2025550139"
}
}"
```
To access your organization keys, you can email [info@dots.dev](mailto:info@dots.dev), or you can access the [Dots dashboard](https://dashboard.dots.dev/), select **Organization** on the sidebar, and then select **API Management**, like exemplified below:
If you're using the organization key to authenticate actions on an App's behalf, you need to include the App's ID with the `Api-App-Id` header in the request. The ID can be retrieved using the [List All Apps](/apireference/users/list-all-users) endpoint or the [Dashboard](https://dashboard.dots.dev/).
# Concepts
Source: https://dotsdev.mintlify.app/overview/concepts
The Dots solutions simplify the process of making payouts. To understand Dots workflows, it's crucial to grasp some key concepts:
## Users
Users represent individuals or businesses onboarded onto Dots, either through your application or another platform.
* **Creation**: You can create users via the Dashboard or API.
* **Verification**: Dots requires the created user to verify its authenticity through a phone number verification before the payout execution.
* **Wallets**: When you create a user, Dots automatically attaches a wallet to the user account, which can be used to store funds or create payins or payout transactions.
* **Compliance**: Dots store all user compliance information, such as tax data, KYC, and ID verification, into an object you can access.
## Applications (Apps)
Applications, also called Apps, are logically separated instances of the Dots platform and are your main interface with the Dots API. You can create as many Apps as necessary to manage different user groups and logically separate instances of the Dots platform.
Apps are useful for multi-tenancy scenarios where you want to separate funds and users on your platform.
* **Creation**: You can create Apps through Dots API or using the [Dots dashboard](https://dashboard.dots.dev/).
* **API Authentication**: Each App has a unique API key and secret for authentication. Every time you create a new App, you will have access to the respective authentication information. Access [API Authentication](/overview/authentication) for more information.
* **User Management**: Use Apps to manage different user groups. You can add as many users as you need to each App.
* **Transaction History**: This option allows you to access each App's transaction history, making it easier to audit and track transactions.
* **Webhooks**: You can configure different [webhook endpoints](/references/webhooks) for each App, enabling you to process the notification distinctly if necessary.
## Transactions
Transactions are the individual records on the Dots ledger, representing money movements between wallets.
* **Creation**: You can't create transactions. Transactions are always created as part of a [transfer](#transfers).
* **Function**: Transactions are used to document wallet-to-wallet fund movements.
## Transfers
Transfers represent the actual movement of money on the Dots platform.
* **Transfer Components**: One transfer can consist of multiple transactions, including the movement of funds from the application's wallet to the user's wallet or fees for a payout or payment.
* **Transfer Types**: There are three types of transfers:
* **Balance Transfer**: Moves funds between an application's wallet and a user's wallet.
* **Payout Transfer**: Moves funds from a user's wallet to their external account.
* **Refill Transfer**: Moves funds from a external bank account to the application or organization's wallet.
* **Tracking Money**: You can use transfer to track the flow of funds within your application.
* **Transfer Lifecycle**: Each transfer goes through a standard lifecycle and can be tracked from creation to completion.
Transfers can only be created to move funds between a user's wallet and your application's wallet in both directions. Direct user-to-user transfers aren't allowed.
The following diagram illustrates all possible statuses a transfer can have throughout its lifecycle. The transfer will always have the `Created` status after its creation.
The following table presents the description for all possible statuses.
| **Status** | **Description** |
| ------------- | -------------------------------------------------------------------------------------------------------- |
| **Created** | The payout transfer has been created but has not yet been processed. |
| **Flagged** | The payout transfer has been flagged for review due to potential issues or discrepancies. |
| **Pending** | The payout transfer is currently being processed and is waiting for completion. |
| **Completed** | The payout transfer has been successfully processed and completed. |
| **Failed** | The payout transfer has failed to process due to an error or issue. |
| **Reversed** | The payout transfer has been manually reversed. This action undoes the payout, typically for correction. |
| **Canceled** | The payout transfer has been manually canceled. This action stops the payout, typically for prevention. |
## Payouts
A payout is a transfer of funds from your account to a user's external account.
* **Creation**: Payouts can be initiated through the Dots API or Dashboard. Dots provides three options to create payouts:
* [Payout Links](#payout-links)
* [Flows](#flows)
* API (Whitelabel)
* **Processing**: Once initiated, Dots processes the payout and ensures the funds are transferred to the user's account using their preferred payment method.
* **Tracking**: You can track the status of payouts in real-time through the Dots Dashboard, API, or using [webhooks](/references/webhooks).
## Payout Links
Payout Links is one of the Dots solutions, which provides a straightforward way to send money without requiring you to create a user or a transfer.
* **Simplicity**: Requires only basic information (phone number or email).
* **Onboarding**: You only need to share the payout. Dots will automatically handle the onboarding process.
* **Reusability**: When a Payout Link is claimed, it's updated with user IDs, allowing you to perform new payouts for the same users in the future
## Flows
Flows are customizable UI components provided by Dots to guide users through the onboarding process.
* **Components**: Flows provide step-by-step guidance for user onboarding.
* **Customization**: You can tailor Flows to fit your brand and application design, maintaining brand consistency.
* **Embedding**: You can embed Flows directly into your application. Thus, users don't need to access another page to execute the onboarding process.
* **Authentication States**: Support both pre-authenticated states, where the user is automatically logged in, and unauthenticated states, where the user must log in or create an account before continuing.
# Dots API Environments
Source: https://dotsdev.mintlify.app/overview/environments
The Dots API provides two environments for integration:
| Environment | Description | Base URL |
| ------------------------------------- | ---------------------------------------------------------------------------- | ------------------------------------- |
| [Sandbox](#sandbox-environment) | Allows you to develop and test the integration without affecting live funds. | `https://pls.senddotssandbox.com/api` |
| [Production](#production-environment) | It's used for live transactions after successfully testing the integration. | `https://api.dots.dev/api` |
You must inform the Dots API version when performing a request. Currently, the V2 Dots API is available. Therefore, when performing a request to the Production environment, for example, you must use the following URL:
* `https://api.dots.dev/api/v2`
## Sandbox Environment
The Sandbox environment simulates the live production environment, enabling you to develop and test your integration safely. Use the Sandbox to build and verify your integration before upgrading to the Production environment.
The Sandbox environment provides the following features:
* Mirrors all production features with minor differences to facilitate testing.
* Allows you to use duplicate phone numbers, unlike the production environment.
* Each new account is pre-funded with \$100, and additional funds can be added as needed.
### Sandbox Setup
To use the Sandbox environment, you should follow the steps presented below:
1. Log in to the Dots Dashboard and toggle the **View Sandbox Environment** in the upper left corner. A **SANDBOX MODE** badge appears on the top of the page.
2. Set up an application and generate API keys.
3. Use [https://pls.senddotssandbox.com/api](https://pls.senddotssandbox.com/api) for Sandbox API requests.
### Sandbox Payouts
When using the Sandbox environment, some of the payout methods present specific behavior. Consider the following characteristics when executing a payout with the following methods:
| Method | Description |
| ---------- | ------------------------------------------------------------------------------------------------------------ |
| **ACH** | Connect live bank accounts via Plaid. Transactions won't go through, but the integration should be verified. |
| **PayPal** | Any email can be connected, and all transactions will return a successful response. |
| **Venmo** | Any phone number can be connected, and all transactions will return a successful response. |
## Production Environment
The Production environment is used for live transactions.
Dots team recommends switching to the Production environment only after completing all necessary integration tests.
To request access to the Production environment, contact us at [info@dots.dev](mailto:info@dots.dev) or through the Dots Dashboard, following the steps presented below:
1. Log in to the Dots Dashboard and toggle off the **View Sandbox Environment** in the upper left corner. A **PRODUCTION MODE** badge appears on the top of the page.
2. You need to set up a new application and generate new API keys.
3. If you're using Dots API, you must update the base API URL to [https://api.dots.dev/api/](https://api.dots.dev/api/).
# How Dots Works
Source: https://dotsdev.mintlify.app/overview/how-dots-works
Dots simplifies the payout process by offering you and your users various payout options. The basic payout process always follows the same sequence of steps. This introductory page explains how the Dots process works, covering the overall process and specific concepts to help you get started.
## Creating an Application (App)
Before starting the payout process, you need to create an [application (App)](/overview/concepts#applications-apps) within the Dots dashboard. You can create multiple Apps to organize your operations according to your business structure. Access the [Getting Started](/guides/getting-started) for additional information.
## Payouts Solutions
Once you have created an App, you can start creating payouts. Dots offers three options for creating payouts:
* **[Payout Link](/guides/payout-links)**: It's the easiest method to send a payout, generating a URL allowing users to onboard onto Dots and withdraw their funds through their preferred method. You can create a Payout Link using the Dots dashboard and send it to the recipient via email or SMS.
* **[Flow Payouts](/guides/flow-payouts)**: Dots provides UI components called Flows that guide users through the payout process. You can specify the steps the user should perform to complete the payouts. Dots delivers the user experience, which you can integrate into your application using iframes.
* **[API Payouts (White-label Payout)](/guides/white-labeled-payouts)**: All Dots operations are available through the Dots API. You create the UI and use the Dots API to perform payouts to your customers. This white-label solution offers maximum customization and control over the process and UX.
## Payout Process
Regardless of the payout method chosen, the overall process follows these steps:
### Step 1: Create the Payout
To create a payout, you typically need to specify:
* The amount to be paid out.
* The recipient's information (such as phone number or user ID).
* Any additional steps or compliance information required.
### Step 2: User Onboarding and Verification
If the user doesn't have a Dots account, you need to create one and verify the user's identity. This process usually involves sending verification codes to the user's phone.
* **Payout Link or Flow Payouts**: Dots handles onboarding and user verification.
* **API Payouts**: You are responsible for creating the user account and verifying the user identity.
### Step 3: Fund Transfer to User Account
Once the user account is created and verified, you can transfer funds from your account to the user's account on Dots.
### Step 4: User Chooses Payout Method
With the funds available in the user's account, the user must choose their preferred payout method and provide the necessary information to register the payout method to their account.
### Step 5: Completion of Payout
To complete the process, the funds in the user's Dots account can be transferred to their bank account or another preferred payout method.
* **Payout Link or Flow Payouts**: Dots manages the transfer of funds to the user's chosen payout method.
* **API Payouts**: You handle the user interface and capture the payout information, then perform the fund transfer.
## Additional Solutions
In addition to the payout operations, Dots offers several other solutions:
* **Payments to Your Account**: Enable your customers to perform payments to your account.
* **Payments with Installments**: Create payments with or without installments.
* **Disputes and Refunds**: Manage disputes and perform refunds.
## What's Next?
To enhance your understanding of the payout process, visit the [Concepts](/overview/concepts) page for a comprehensive overview.
If you are new to Dots solutions, explore the [Environments](/overview/environments) documentation to learn about the Sandbox and Production environments available when using Dots. Additionally, review how [API Authentication Works](/overview/authentication) to securely access the Dots API.
For detailed instructions on creating payouts with Dots, refer to the following guides:
* [Payout Links](/guides/payout-links)
* [Flow Payouts](/guides/flow-payouts)
* [White-labeled Payouts](/guides/white-labeled-payouts)
# Power your Platform with Dots
Source: https://dotsdev.mintlify.app/overview/introduction
Dots is an all-in-one payment infrastructure platform that simplifies the complexities of payments, payouts, onboarding, and compliance. We offer businesses a seamless solution for handling global transactions.
## Benefits of Using Dots
* **Unified Platform:** Manage payments and payouts in one place.
* **Global Reach:** Send payouts to 150+ countries and in 135+ currencies.
* **Simplified Onboarding:** Quickly onboard users with staggered KYC and automated compliance checks.
* **Security and Compliance:** Automate OFAC checks, ID verification, and TIN matching to ensure regulatory compliance.
* **Customizable:** Use prebuilt flows or create custom UIs to integrate Dots smoothly into your application.
## Key Features
* **Payouts:** Offer local and global payouts to contractors and service providers with simple API integration.
* **Flexible Digital Wallets:** Send fast global payouts programmatically with competitive rates.
* **Risk and Identity Management:** Enable instant user onboarding, simplify compliance, and effectively manage risks.
* **Strong Payment Acceptance:** Use Dots' network of payment partners to increase approval rates and lower processing expense/.
## First Steps
To learn about the Dots payout process, you can check how Dots works. This will provide you with an overview of the system. Once you're familiar with the basics, access the Getting Started guide to learn how to create an account and set up an application so you can begin using Dots to perform payouts.
Next, you'll choose one of the three Dots integration options available. If you understand the payout process, select the integration option below that fulfills your company's needs. Otherwise, explore the [Resources](#resources) section to better understand Dots solution.
The simpler way to use Dots. Create and share a link with your user, allowing them to onboard, verify their identity, and choose their payout method.
Customizable and embeddable components that you can use to personalize the user journey in your application, from onboarding to initiating payouts.
Use the Dots API to build a fully customized user interface for the payouts.
## Resources
Take a deeper dive into the concepts related to the Dots solution.
Learn the workflow of how Dots enables you to create and perform payouts.
Explore the available functionalities Dots API provides to you.
Discover all countries where Dots services are offered and the corresponding payouts available.
# Error Codes
Source: https://dotsdev.mintlify.app/references/error-codes
This document provides a detailed list of error codes returned by the Dots API, including descriptions to help you troubleshoot issues effectively. The errors are divided into the following types:
## Authentication Errors
| Code | Description |
| ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `auth-email-already-exists` | The provided email address is already in use. |
| `auth-username-already-exists` | The provided username is already in use. |
| `invalid-input` | The input provided is invalid. |
| `invalid-ssn` | The provided Social Security Number (SSN) is invalid. |
| `invalid-username` | The username is invalid. Usernames may only contain letters, digits, and hyphens (`-`). They must not contain swear words or protected words. |
| `invalid-phone-number` | The phone number provided is invalid. |
| `invalid-email` | The email address provided is invalid. |
| `invalid-phone-number-voip` | VOIP phone numbers are not allowed. |
| `invalid-phone-number-landline` | Landline phone number not allowed. |
## Invoice Errors
| Code | Description |
| --------------------------------------- | -------------------------------------------------------------- |
| `invalid-invoice-requested-information` | The value for requested information in the invoice is invalid. |
| `invalid-invoice-breakdown` | The breakdown of the invoice is invalid. |
| `invalid-invoice-item` | The invoice item is invalid. |
| `invalid-invoice-item-total` | The totals of the invoice items are incorrect. |
## Transaction Errors
| Code | Description |
| -------------------------------- | ------------------------------------------- |
| `invalid-transaction` | The transaction is invalid. |
| `transaction-insufficient-funds` | There are insufficient funds in the wallet. |
## User Information Errors
| Code | Description |
| ---------------------------- | ------------------------------------------------- |
| `user-info-missing` | The user has missing or invalid information. |
| `user-info-missing-cash-app` | The user is missing Cash App account information. |
| `user-info-missing-contact` | The user is missing contact information. |
| `user-info-missing-card` | The user is missing credit card information. |
| `app-info-missing` | The app has missing or invalid information. |
## Service Errors
| Code | Description |
| --------------------- | -------------------------------------------------------------------------------------------- |
| `service-unavailable` | A service was unavailable. |
| `resource-busy` | The resource is unavailable because one or more previous requests are still being processed. |
# Idempotency
Source: https://dotsdev.mintlify.app/references/idempotency
Dots API uses idempotency keys to ensure the reliability and integrity of your requests. Adopting idempotency keys ensures you can retry API requests without the risk of performing the same operation multiple times, which is especially important when performing funds transfers related to payout operations.
An idempotency key is a unique identifier in your API request to guarantee that it will only be processed once, even if the request is sent multiple times. The Dots API uses this key to recognize and ignore duplicate requests, providing a reliable way to manage retries.
## How to Use Idempotency Keys
When making an API request to the Dots API, you should include an `idempotency_key` in the body request. This key should be a UUID for every request that you generate on your end. The code block below presents an example of using the idempotency key to create a payout.
If you send multiple requests with different body content using the same idempotency key, Dots API will provide only one response, considering the content from the first received request.
```sh theme={null}
curl --request POST \
--url https://api.dots.dev/api/v2/payouts \
--header 'Authorization: Basic ' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"platform": "paypal",
"account_id": "",
"fund": true,
"tax_exempt": true,
"idempotency_key": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": ""
}'
```
## Idempotency Keys Persistence
In Dots API, idempotency keys have a 24-hour timeout. Therefore, the Dots team recommends that you store the used idempotency keys and their associated requests in persistent storage to avoid generating duplicates in case of system restarts or failures.
After the 24-hour, you can use an already-used idempotency key to generate a new request. However, the Dots team recommends avoiding reusing idempotency keys.
# IP Address Tracking
Source: https://dotsdev.mintlify.app/references/ip-address-tracking
To improve fraud protection and security, you can now optionally pass in the end user's IP Address to Dots by adding in the Dots-User-IP header to all user related requests like `create-user` and `create-transfer`.
Dots will log all IP addresses related to a user and flag the user based on fraudulent behavior.
## How to Use IP Address Tracking
You can include the `Dots-User-IP` header in your API request. The following example demonstrates a request to create a user where the end user's IP Address is specified.
```sh theme={null}
curl --request POST \
--url https://api.dots.dev/api/v2/users \
--header 'Authorization: ' \
--header 'Dots-User-IP: 192.0.2.0' \
--header 'Content-Type: application/json' \
--data '{
"first_name": "Bob",
"last_name": "Loblaw",
"email": "bob@bobloblaw.com",
"country_code": "1",
"phone_number": "4154332334",
"metadata": {
"internal_id": "user_121344"
}
}'
```
# Metadata
Source: https://dotsdev.mintlify.app/references/metadata
Metadata is a flexible feature in the Dots API that allows you to attach additional information to your API requests. This can include any relevant data specific to your application that will help you to manage and organize your operations.
## What is Metadata?
Metadata in the Dots API is an object that you can include in the body of your request using the `metadata` parameter. It consists of key-value pairs where the key is a string identifier and the value is the data you want to attach.
## How to Use Metadata
You can include a metadata object in your API request and the metadata is returned in the response to your request. The following example demonstrates a request to create a user where the `metadata` is used to store the user's `internal_id`.
Dots team recommends you avoid storing sensitive information such as bank account numbers, card details, or personal identification numbers in metadata.
```sh theme={null}
curl --request POST \
--url https://api.dots.dev/api/v2/users \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data '{
"first_name": "Bob",
"last_name": "Loblaw",
"email": "bob@bobloblaw.com",
"country_code": "1",
"phone_number": "4154332334",
"metadata": {
"internal_id": "user_121344"
}
}'
```
## Sample Use Cases
You're completely free to use the metadata feature in the way it best fits your business. Below are described some possible use cases for metadata.
* **Project ID**: Attach a project ID to each payout to track payments associated with specific projects.
* **Expense Categories**: Tag payments with expense categories for better financial reporting and analysis.
* **Service Levels**: Tag payouts with service level agreements (SLAs) or priority levels for monitoring and reporting.
The following code block presents a `metadata` example for a hypothetical payment for a vendor related to a sale.
```json theme={null}
{
"metadata": {
"vendor_id": "vendor_567",
"order_id": "order_890",
"product_category": "Electronics",
"sales_period": "Q2 2024"
}
}
```
# Supported Countries
Source: https://dotsdev.mintlify.app/references/supported-countries
Dots is constantly expanding its list of supported countries and payout options. This page lists all the countries where our payout services are available, along with the types of payout methods supported in each country. Use the following buttons to navigate to the desired region list.
## Africa
| Country | Local Bank Transfer | Wire Transfer | PayPal | Amazon Gift Card | Venmo | CashApp |
| -------------------------------- | :-----------------: | :-----------: | :----: | :--------------: | :---: | :-----: |
| Algeria | ✔️ | | | | | |
| Angola | ✔️ | | | | | |
| Benin | ✔️ | | | | | |
| Botswana | ✔️ | ✔️ | | | | |
| Burkina Faso | ✔️ | | | | | |
| Burundi | | | | | | |
| Cabo Verde | ✔️ | | | | | |
| Cameroon | ✔️ | | | | | |
| Central African Republic | ✔️ | | | | | |
| Chad | ✔️ | | | | | |
| Comoros | | | | | | |
| Congo (Congo-Brazzaville) | ✔️ | | | | | |
| Côte d'Ivoire | ✔️ | | | | | |
| Democratic Republic of the Congo | | | | | | |
| Djibouti | ✔️ | | | | | |
| Egypt | ✔️ | ✔️ | | | | |
| Equatorial Guinea | | | | | | |
| Eritrea | ✔️ | | | | | |
| Eswatini (fmr. "Swaziland") | | | | | | |
| Ethiopia | ✔️ | | | | | |
| Gabon | ✔️ | | | | | |
| Gambia | ✔️ | | | | | |
| Ghana | ✔️ | | | | | |
| Guinea | ✔️ | | | | | |
| Guinea-Bissau | ✔️ | | | | | |
| Kenya | ✔️ | ✔️ | | | | |
| Lesotho | ✔️ | ✔️ | | | | |
| Liberia | | | | | | |
| Libya | | | | | | |
| Madagascar | ✔️ | | | | | |
| Malawi | ✔️ | | | | | |
| Mali | ✔️ | | | | | |
| Mauritania | | | | | | |
| Mauritius | ✔️ | ✔️ | | | | |
| Morocco | ✔️ | ✔️ | ✔️ | | | |
| Mozambique | ✔️ | | | | | |
| Namibia | ✔️ | | | | | |
| Niger | ✔️ | | | | | |
| Nigeria | ✔️ | | | | | |
| Rwanda | ✔️ | | | | | |
| Sao Tome and Principe | | | | | | |
| Senegal | ✔️ | ✔️ | | | | |
| Seychelles | | | | | | |
| Sierra Leone | ✔️ | | | | | |
| Somalia | | | | | | |
| South Africa | ✔️ | ✔️ | | | | |
| South Sudan | | | | | | |
| Sudan | | | | | | |
| Tanzania | ✔️ | | | | | |
| Togo | ✔️ | | | | | |
| Tunisia | ✔️ | | | | | |
| Uganda | ✔️ | | | | | |
| Zambia | ✔️ | | | | | |
| Zimbabwe | | | | | | |
## America
| Country | Local Bank Transfer | Wire Transfer | PayPal | Amazon Gift Card | Venmo | CashApp |
| -------------------------------- | :-----------------: | :-----------: | :----: | :--------------: | :---: | :-----: |
| Antigua and Barbuda | ✔️ | | | | | |
| Argentina | ✔️ | ✔️ | | | | |
| Aruba | ✔️ | | | | | |
| Bahamas | ✔️ | ✔️ | | | | |
| Barbados | ✔️ | | | | | |
| Belize | ✔️ | | | | | |
| Bermuda | ✔️ | ✔️ | | | | |
| Bolivia | ✔️ | | | | | |
| Brazil | ✔️ | ✔️ | | | | |
| Canada | ✔️ | ✔️ | ✔️ | ✔️ | | |
| Cayman Islands | ✔️ | ✔️ | | | | |
| Chile | ✔️ | ✔️ | | | | |
| Colombia | ✔️ | ✔️ | | | | |
| Costa Rica | ✔️ | ✔️ | | | | |
| Cuba | | | | | | |
| Dominica | ✔️ | | | | | |
| Dominican Republic | ✔️ | ✔️ | | | | |
| Ecuador | ✔️ | | | | | |
| El Salvador | ✔️ | | | | | |
| Grenada | ✔️ | | | | | |
| Guatemala | ✔️ | ✔️ | | | | |
| Guyana | ✔️ | | | | | |
| Haiti | ✔️ | | | | | |
| Honduras | ✔️ | ✔️ | | | | |
| Jamaica | ✔️ | ✔️ | | | | |
| Mexico | ✔️ | ✔️ | ✔️ | | | |
| Nicaragua | ✔️ | ✔️ | | | | |
| Panama | ✔️ | | | | | |
| Paraguay | ✔️ | | | | | |
| Peru | ✔️ | ✔️ | | | | |
| Saint Kitts and Nevis | ✔️ | | | | | |
| Saint Lucia | ✔️ | | | | | |
| Saint Vincent and the Grenadines | ✔️ | | | | | |
| Suriname | ✔️ | | | | | |
| Trinidad and Tobago | ✔️ | | | | | |
| United States of America | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| Uruguay | ✔️ | | | | | |
| Venezuela | ✔️ | | | | | |
## Asia-Pacific
| Country | Local Bank Transfer | Wire Transfer | PayPal | Amazon Gift Card | Venmo | CashApp |
| ------------------------ | :-----------------: | :-----------: | :----: | :--------------: | :---: | :-----: |
| Afghanistan | | | | | | |
| Armenia | ✔️ | | | | | |
| Australia | ✔️ | ✔️ | ✔️ | ✔️ | | |
| Azerbaijan | ✔️ | | | | | |
| Bangladesh | ✔️ | | | | | |
| Bhutan | | | | | | |
| Brunei | | | | | | |
| Cambodia | ✔️ | | | | | |
| China | ✔️ | ✔️ | | | | |
| Fiji | ✔️ | | | | | |
| Georgia | ✔️ | ✔️ | | | | |
| Hong Kong | ✔️ | ✔️ | ✔️ | | | |
| India | ✔️ | ✔️ | | | | |
| Indonesia | ✔️ | ✔️ | | | | |
| Iran | | | | | | |
| Iraq | | | | | | |
| Israel | ✔️ | ✔️ | ✔️ | | | |
| Japan | ✔️ | ✔️ | ✔️ | | | |
| Jordan | ✔️ | ✔️ | | | | |
| Kazakhstan | ✔️ | ✔️ | | | | |
| Kiribati | | | | | | |
| Kuwait | ✔️ | ✔️ | | | | |
| Kyrgyzstan | | | | | | |
| Laos | ✔️ | | | | | |
| Lebanon | | | | | | |
| Macao | ✔️ | | | | | |
| Malaysia | ✔️ | ✔️ | | | | |
| Maldives | | | | | | |
| Mongolia | ✔️ | | | | | |
| Myanmar (formerly Burma) | | | | | | |
| Nepal | ✔️ | | | | | |
| New Zealand | ✔️ | ✔️ | ✔️ | | | |
| Oman | ✔️ | ✔️ | | | | |
| Pakistan | ✔️ | | | | | |
| Palestine State | | | | | | |
| Papua New Guinea | ✔️ | | | | | |
| Philippines | ✔️ | ✔️ | ✔️ | | | |
| Qatar | ✔️ | ✔️ | | | | |
| Saudi Arabia | ✔️ | ✔️ | ✔️ | | | |
| Singapore | ✔️ | ✔️ | ✔️ | ✔️ | | |
| Solomon Islands | ✔️ | | | | | |
| South Korea | ✔️ | ✔️ | | | | |
| Sri Lanka | ✔️ | ✔️ | | | | |
| Syria | | | | | | |
| Taiwan | ✔️ | | | | | |
| Tajikistan | | | | | | |
| Thailand | ✔️ | ✔️ | | | | |
| Timor-Leste | | | | | | |
| Tonga | ✔️ | | | | | |
| Turkey | ✔️ | ✔️ | | | | |
| Turkmenistan | | | | | | |
| Tuvalu | | | | | | |
| United Arab Emirates | ✔️ | ✔️ | | | | |
| Uzbekistan | | | | | | |
| Vanuatu | ✔️ | | | | | |
| Vietnam | ✔️ | ✔️ | ✔️ | | | |
| Yemen | | | | | | |
## Europe
| Country | Local Bank Transfer | Wire Transfer | PayPal | Amazon Gift Card | Venmo | CashApp |
| ------------------------ | :-----------------: | :-----------: | :----: | :--------------: | :---: | :-----: |
| Albania | | | | | | |
| Andorra | ✔️ | | | | | |
| Austria | ✔️ | ✔️ | ✔️ | | | |
| Belarus | | | | | | |
| Belgium | ✔️ | ✔️ | ✔️ | | | |
| Bosnia and Herzegovina | ✔️ | | | | | |
| Bulgaria | ✔️ | ✔️ | ✔️ | | | |
| Croatia | ✔️ | ✔️ | ✔️ | | | |
| Cyprus | ✔️ | ✔️ | ✔️ | | | |
| Czechia (Czech Republic) | ✔️ | ✔️ | | | | |
| Denmark | ✔️ | ✔️ | ✔️ | | | |
| Estonia | ✔️ | ✔️ | ✔️ | | | |
| Finland | ✔️ | ✔️ | ✔️ | | | |
| France | ✔️ | ✔️ | ✔️ | ✔️ | | |
| Germany | ✔️ | ✔️ | ✔️ | ✔️ | | |
| Greece | ✔️ | ✔️ | ✔️ | | | |
| Hungary | ✔️ | ✔️ | ✔️ | | | |
| Iceland | ✔️ | ✔️ | | | | |
| Ireland | ✔️ | ✔️ | ✔️ | | | |
| Italy | ✔️ | ✔️ | ✔️ | ✔️ | | |
| Latvia | ✔️ | ✔️ | ✔️ | | | |
| Liechtenstein | ✔️ | | | | | |
| Lithuania | ✔️ | ✔️ | | | | |
| Luxembourg | ✔️ | ✔️ | ✔️ | | | |
| Malta | ✔️ | ✔️ | ✔️ | | | |
| Moldova | ✔️ | | | | | |
| Monaco | | | | | | |
| Montenegro | | | | | | |
| Netherlands | ✔️ | ✔️ | ✔️ | ✔️ | | |
| North Macedonia | | | | | | |
| Norway | ✔️ | ✔️ | ✔️ | | | |
| Poland | ✔️ | ✔️ | ✔️ | ✔️ | | |
| Portugal | ✔️ | ✔️ | ✔️ | | | |
| Romania | ✔️ | ✔️ | ✔️ | | | |
| Russia | | | | | | |
| San Marino | ✔️ | | | | | |
| Serbia | ✔️ | ✔️ | | | | |
| Slovakia | ✔️ | | | | | |
| Slovenia | ✔️ | ✔️ | ✔️ | | | |
| Spain | ✔️️ | ✔️ | ✔️ | ✔️ | | |
| Sweden | ✔️ | ✔️ | ✔️ | ✔️ | | |
| Switzerland | ✔️ | ✔️ | ✔️ | | | |
| Ukraine | | | | | | |
| United Kingdom | ✔️ | ✔️ | ✔️ | ✔️ | | |
***
# Users
Source: https://dotsdev.mintlify.app/references/users
How to work with the users API
A `user` is a representation of a person or entity in the Dots system. A `user` can be created by a platform or by the `user` themselves but can be connected to any platform.
The platform can add additional data to a `user` such as an SSN and address for tax purposes and add bank accounts and other payment methods.
## Creating a user
Creating users happens through the [/v2/users](/apireference/v2/users/create-user) endpoint. Once hit, a dots user will be created if one does not exist based on phone number. This user must then be verified through a one-time code sent over text-message. This code can be requested through the [/v2/users/\{user\_id}/send-verification-token](/apireference/v2/users/send-verification-token) endpoint and then verified through the [/v2/users/\{user\_id}/verify](/apireference/v2/users/verify-user) endpoint.
## TIN submission and verification
A user's Tax Identification Number (TIN) is either their United States
Social Security Number (SSN), Employer Identification Number (EIN), or
their Individual Tax Identification Number (ITIN). A user's TIN may be
submitted through a [payout link](/guides/payout-links), a
[compliance flow](/guides/flow-payouts), or through
[POST /users/:id/compliance](/apireference/users/submit-compliance-information)
API endpoint.
Once submitted, a user's TIN will automatically be verified. This
usually takes a few seconds, or rarely up to a day. You can check the
status of the TIN verification in the `compliance.w9.tax_id_verification`
field returned the [GET /user/:id](/apireference/users/retrieve-a-user) endpoint.
The possible statuses are:
* `unsubmitted`: The user's TIN has not been submitted yet.
* `pending`: The user's TIN is pending verification.
* `matched`: The user's TIN was successfully verified and matched their name.
* `mismatched`: The user's TIN did not match their name.
A mismatched TIN may be corrected by resubmitting the correct TIN.
## OFAC compliance
Dots verifies that all users are not sanctioned by the US Office of
Foreign Assets Control (OFAC). When a user is created, we query the
OFAC's list of sanctioned individuals. If a user matches an entry on the
list, we flag them and require them to verify their identity. The flag
will be cleared when we confirm they are not a sanctioned individual.
You can check a user's OFAC compliance status by reading the
`compliance.flags.ofac_status` field returned by the
[GET /user/:id](/apireference/users/retrieve-a-user) endpoint. The
possible statuses are:
* `unflagged`: The user is unflagged.
* `id_verification_required`: The user must complete ID verification.
* `in_review`: The user has completed ID verification and requires
a manual review.
* `flagged`: The user is suspected of being a sanctioned individual.
# Webhooks
Source: https://dotsdev.mintlify.app/references/webhooks
## Introduction
Webhooks are how services notify each other of events, so in Dots they let you receive real-time notifications for things like Payout Links, Flows, and Transfers. At their core they are just a POST request to a pre-determined endpoint that you can configure from the dashboard UI. You normally use one endpoint per service, and that endpoint listens to all event types. For example, if you receive webhooks from Acme Inc., you can structure your URL like `https://www.example.com/acme/webhooks/`.
The way to indicate that a webhook has been processed is by returning a 2xx (status code 200-299) response to the webhook message within a reasonable time-frame (15s). It's also important to disable CSRF protection for this endpoint if the framework you use enables it by default.
Another important aspect of handling webhooks is to verify the signature and timestamp when processing them. You can learn more about it in the signature verification section.
## Configuring Webhooks
Dots uses [Svix](https://docs.svix.com/receiving/introduction/) to deliver webhooks. To access the Svix dashboard, follow the instructions below:
1. Access the [Dots dashboard](https://dashboard.dots.dev/).
2. From the sidebar, choose the desired App from your list or head to the Organization settings to configure organization level webhooks.
3. Navigate to the **API Management** tab for the link to the Svix dashboard.
Once in the Svix dashboard do the following:
1. Click on **+ Add Endpoint** to add a new webhook.
2. Provide a URL or use an endpoint generated by Svix. Optionally, add a description to define the purpose of the webhook.
3. Select the event types to which the endpoint should be subscribed. If no event is selected, the webhook will register for all events.
4. Optionally, enable a rate limit for the endpoint.
5. Click **Create**.
6. Note the webhook signing secret.
A new endpoint will be created to group all information from the notification received.
## Available events
When creating an endpoint on Svix, you can subscribe to a wide list of events to receive notifications. The following accordions list the available events and present webhook notifications examples:
Triggered when an App object is updated.
```json theme={null}
{
"app_id": "5d9278aa-ddac-4df6-9063-696d32b3baf9"
}
```
Triggered when ACH transaction details within a flow are updated.
```json theme={null}
{
"event": "flow.transaction_updated",
"flow_id": "d48d42ca-efdf-4b41-b3a7-aa3cdd6c129f"
}
```
Called when a flow has been updated due to a user completing steps.
```json theme={null}
{
"event": "flow.updated",
"flow_id": "d48d42ca-efdf-4b41-b3a7-aa3cdd6c129f"
}
```
Triggered when a payment intent object is updated.
```json theme={null}
{
"payment_intent_id": "0feee270-d3c9-434a-b432-eb6f4ff4a234"
}
```
Occurs when a payout link is claimed by a user.
```json theme={null}
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"link": "",
"amount": 123,
"status": "created",
"payee": {
"first_name": "",
"last_name": "",
"email": "jsmith@example.com",
"country_code": "",
"phone_number": ""
},
"delivery": {
"method": "link",
"email": "jsmith@example.com",
"country_code": "",
"phone_number": ""
},
"tax_exempt": true,
"claimed_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": ""
}
```
Occurs when a user completes a payout through a payout link, either in full or partially.
```json theme={null}
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"link": "",
"amount": 123,
"status": "created",
"payee": {
"first_name": "",
"last_name": "",
"email": "jsmith@example.com",
"country_code": "",
"phone_number": ""
},
"delivery": {
"method": "link",
"email": "jsmith@example.com",
"country_code": "",
"phone_number": ""
},
"tax_exempt": true,
"claimed_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": ""
}
```
Occurs when a payout link is sent out, whether via email, SMS, or direct link.
```json theme={null}
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"link": "",
"amount": 123,
"status": "created",
"payee": {
"first_name": "",
"last_name": "",
"email": "jsmith@example.com",
"country_code": "",
"phone_number": ""
},
"delivery": {
"method": "link",
"email": "jsmith@example.com",
"country_code": "",
"phone_number": ""
},
"tax_exempt": true,
"claimed_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"flow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": ""
}
```
Triggered when there is a change in the status of a payout link.
```json theme={null}
{
"event": "payout_link.updated",
"payout_link_id": "1324f3e4-aa5d-45f0-8128-a77a57c51cb3"
}
```
Occurs when a payout request changes status.
Triggered when a refund object is updated.
```json theme={null}
{
"refund_id": "169a5d87-041b-4d49-ba9d-2e45f8fe9183"
}
```
Triggered when a transfer is completed. This is a terminal state. The complete transfer object will be included in the payload.
```json theme={null}
{
"transfer": {
"amount": 123,
"created": "2023-11-07T05:31:56Z",
"external_data": {
"account_id": "",
"external_id": "",
"platform": "ach"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": "",
"status": "completed",
"transactions": [
{
"amount": 123,
"created": "2023-11-07T05:31:56Z",
"destination_name": "",
"id": 123,
"metadata": "",
"source_name": "",
"type": "balance"
}
],
"type": "refill",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
```
Triggered when a transfer fails. This is a terminal state. The complete transfer object will be included in the payload.
```json theme={null}
{
"transfer": {
"amount": 123,
"created": "2023-11-07T05:31:56Z",
"external_data": {
"account_id": "",
"external_id": "",
"platform": "ach"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": "",
"status": "failed",
"transactions": [
{
"amount": 123,
"created": "2023-11-07T05:31:56Z",
"destination_name": "",
"id": 123,
"metadata": "",
"source_name": "",
"type": "balance"
}
],
"type": "refill",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
```
When there is a change to a transfer status.
```json theme={null}
{
"event": "transfer.updated",
"transfer_id": "68db1237-3953-47b0-86aa-739a201dcb16"
}
```
Triggered when a user's background check is completed.
```json theme={null}
{
"user_id": "some string"
}
```
Triggered when a user's ID is verified.
```json theme={null}
{
"user_id": "some string"
}
```
Triggered when a user's payout method is updated.
```json theme={null}
{
"user_id": "some string"
}
```
## Webhook Signing
Find the instructions to verify webhooks [here](https://docs.svix.com/receiving/verifying-payloads/why)
# Copy organization compliance information to an application
Source: https://dotsdev.mintlify.app/apireference/organizations/copy-organization-compliance-information-to-an-application
/v2.yaml put /v2/organizations/copy-organization-compliance-to-app/{api_app_id}