curl --request POST \
  --url https://api.dots.dev/api/v2/payment-intents \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 123,
  "currency": "usd",
  "confirm": false,
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "description": "<string>",
  "payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "payment_method_types": [
    "card"
  ],
  "setup_future_usage": "on_session",
  "metadata": true,
  "transfer_data": {
    "destination_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "application_fee_amount": 1
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": 1,
  "currency": "usd",
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "initialized",
  "transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": {},
  "client_secret": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json
OK

The payment-intent object.