Skip to main content
POST
/
api
/
action
/
card
/
user
Create a new user
curl --request POST \
  --url https://sandbox.soleaspay.com/api/action/card/user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-sp-auth-token: <x-sp-auth-token>' \
  --data '
{
  "first_name": "John",
  "last_name": "Doe",
  "email": "[email protected]",
  "country_code": "CM",
  "contact": "698479723",
  "dob": "2010-01-01",
  "is_business": false,
  "billing_adress": "kotto",
  "billing_city": "DOUALA",
  "billing_country": "CAMEROON",
  "id_number": "00858574849",
  "business_name": "NAN",
  "billing_state": "littoral",
  "billing_postal_code": "237"
}
'
{
  "user_id": "SP6VC",
  "reference": "USR12345"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-sp-auth-token
string
required

Body

application/json
first_name
string
required
Example:

"John"

last_name
string
required
Example:

"Doe"

email
string<email>
required
country_code
string
required
Example:

"CM"

contact
string
required
Example:

"698479723"

dob
string<date>
required
Example:

"2010-01-01"

is_business
boolean
required
Example:

false

billing_adress
string
required
Example:

"kotto"

billing_city
string
required
Example:

"DOUALA"

billing_country
string
required
Example:

"CAMEROON"

id_number
string
required
Example:

"00858574849"

business_name
string
Example:

"NAN"

billing_state
string
Example:

"littoral"

billing_postal_code
string
Example:

"237"

Response

201 - application/json

User created successfully

user_id
string
Example:

"SP6VC"

reference
string
Example:

"USR12345"