DotsDocs
Users

Add a Card Payout Method

Add an eligible Visa or Mastercard payout method for a verified user. Send requests to `https://cards.dots.dev` using your Dots API credentials. Only one active card payout method is allowed per user. Remove the existing card through the Dots payout flow before adding a replacement. Card removal is not available through the v2 API. Customers collecting raw card numbers on their own servers are responsible for their own PCI compliance.

POST
/v2/users/{user_id}/payout-methods/cards

Add an eligible Visa or Mastercard payout method for a verified user. Send requests to https://cards.dots.dev using your Dots API credentials.

Only one active card payout method is allowed per user. Remove the existing card through the Dots payout flow before adding a replacement. Card removal is not available through the v2 API.

Customers collecting raw card numbers on their own servers are responsible for their own PCI compliance.

Authorization

api_key
headerAuthorizationBasic <token>

Path Parameters

user_id*string
Formatuuid

Request Body

application/json
  1. body
card*
billing_address*

Response Body

Card payout method created.

application/json
  1. response
type*string
payout_method_id*string
Formatuuid
card*
Example Request
curl -X POST 'https://cards.dots.dev/v2/users/497f6eca-6276-4993-bfeb-53cbbbba6f08/payout-methods/cards' \  -H 'Content-Type: application/json' \  -d '{  "card": {    "number": "4658584009000001",    "expiry_month": 12,    "expiry_year": 2035,    "cvv": "257",    "first_name": "John",    "last_name": "Doe"  },  "billing_address": {    "line1": "123 Main St",    "city": "New York",    "state": "NY",    "postcode": "10001",    "country": "US"  }}'
Example Response
{  "type": "push_to_card",  "payout_method_id": "ec4c9578-6718-4d77-b850-74b3ea0bf0cd",  "card": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "token": "string",    "fingerprint": "string",    "exp_month": 0,    "exp_year": 0,    "scheme": "string",    "last4": "string",    "type": "string",    "category": "string",    "country": "string"  }}