curl --request POST \
--url https://api.dots.dev/api/v2/payment-customers \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"country_code": "<string>",
"phone_number": "<string>",
"first_name": "<string>",
"middle_name": "<string>",
"last_name": "<string>",
"business_name": "<string>",
"address": {
"country": "<string>",
"city": "<string>",
"state": "<string>",
"postcode": "<string>",
"line_1": "<string>",
"line_2": "<string>"
},
"metadata": {},
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"country_code": "<string>",
"phone_number": "<string>"
}
Create a Payment Customer
curl --request POST \
--url https://api.dots.dev/api/v2/payment-customers \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"country_code": "<string>",
"phone_number": "<string>",
"first_name": "<string>",
"middle_name": "<string>",
"last_name": "<string>",
"business_name": "<string>",
"address": {
"country": "<string>",
"city": "<string>",
"state": "<string>",
"postcode": "<string>",
"line_1": "<string>",
"line_2": "<string>"
},
"metadata": {},
"created": "2023-11-07T05:31:56Z",
"updated": "2023-11-07T05:31:56Z"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"country_code": "<string>",
"phone_number": "<string>"
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
OK
The response is of type object
.
Was this page helpful?