DotsDocs
Payout agents

Approve a Recipient

Approve exactly one user ID, email, or country calling code and phone number. Emails are normalized to lowercase; phone numbers are normalized. Repeated approvals return the existing record. Creating an approval does not create a user. The list is enforced only while recipient_restriction_enabled is true.

POST
/v2/payout-agents/{payout_agent_id}/approved-recipients

Approve exactly one user ID, email, or country calling code and phone number. Emails are normalized to lowercase; phone numbers are normalized. Repeated approvals return the existing record. Creating an approval does not create a user. The list is enforced only while recipient_restriction_enabled is true.

Authorization

api_key
headerAuthorizationBasic <token>

Path Parameters

payout_agent_id*string

ID of the payout agent.

Formatuuid

Request Body

application/json
  1. body
user_id*string
Formatuuid
email?string
Formatemail
country_code?string
Match^[0-9]{1,3}$
phone_number?string
Length1 <= length <= 30

Response Body

Created

application/json
  1. response
object?string
user_id?|

ID of the approved user.

Formatuuid
first_name?string|null
last_name?string|null
created?string

When this identifier was approved.

Formatdate-time
id?string

Approval ID. Use this ID to delete an email or phone approval.

Formatuuid
email?string|null
country_code?string|null
phone_number?string|null
Example Request
curl -X POST 'https://api.dots.dev/api/v2/payout-agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/approved-recipients' \  -H 'Content-Type: application/json' \  -d '{  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"}'
Example Response
{  "object": "payout_agent_approved_recipient",  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",  "first_name": "string",  "last_name": "string",  "created": "2019-08-24T14:15:22Z",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "email": "string",  "country_code": "string",  "phone_number": "string"}