curl --request POST \
  --url https://api.dots.dev/api/v2/payments \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "account_id": "<string>",
  "ach_info": {
    "account_number": "<string>",
    "account_type": "checking",
    "routing_number": "<string>"
  },
  "amount": 123,
  "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": "<any>",
  "platform": "ach",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "amount": 123,
  "created": "2023-11-07T05:31:56Z",
  "external_data": {
    "account_id": "<string>",
    "external_id": "<string>",
    "platform": "ach"
  },
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": "<string>",
  "status": "created",
  "transactions": [
    {
      "amount": 123,
      "created": "2023-11-07T05:31:56Z",
      "destination_name": "<string>",
      "id": 123,
      "metadata": "<string>",
      "source_name": "<string>",
      "type": "balance"
    }
  ],
  "type": "refill",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
  • Option 1

  • Option 2

account_id
string | null

The user's ACH account ID.

ach_info
object

Specifies the bank account to draw the payment from. This can be used as an alternative to a stored account ID.

amount
integer
required
customer_id
string
metadata
any
platform
enum<string>
required
Available options:
ach
user_id
string
required

Response

201 - application/json
amount
number
created
string
external_data
object
id
string
metadata

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

status
enum<string>
Available options:
created,
pending,
failed,
completed,
flagged
transactions
object[]
type
enum<string>
Available options:
refill,
payout,
balance
user_id
string