cURL
curl --request POST \ --url https://api.example.com/v1/payers \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "[email protected]", "name": "<string>", "company": "<string>", "country": "<string>", "metadata": {} } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "[email protected]", "name": "<string>", "company": "<string>", "country": "<string>", "active": true, "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "modified_at": "2023-11-07T05:31:56Z", "modified_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Create a new payer associated with a customer
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Associated customer UUID
Payer's email address
Payer's name
Company name
ISO3 country code
Additional metadata
Payer created successfully