Skip to main content
Attach a Payment Method to a Payment Customer
curl --request POST \
  --url https://api.dots.dev/api/v2/payment-methods/{payment_method_id}/attach \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "<string>"
}'
{
  "id": "<string>",
  "platform": "ach",
  "description": "<string>",
  "mask": "<string>",
  "email": "<string>",
  "phone_number": "<string>",
  "cash_tag": "<string>",
  "country": "<string>",
  "currency": "<string>",
  "rtp_enabled": true,
  "meta": "<any>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

payment_method_id
string
required

The ID of the payment method.

Body

application/json
customer_id
string
required

ID of the payment customer

Response

200 - application/json

OK

platform
enum<string>
required
Available options:
ach,
paypal,
venmo,
cash_app,
intl_transfer,
airtm,
payoneer
id
string

ID of the payment-method.

description
string
mask
string
email
string
phone_number
string
cash_tag
string
country
string<iso3166>
currency
string<iso4217>
rtp_enabled
boolean

Indicates if RTP is enabled for the payment method (applies to ach only).

meta
any

Optional metadata for the payout method. Can be any valid JSON value (object, string, number, boolean, array, or null).