Skip to main content
POST
/
action
/
card
/
user
Create Card User
curl --request POST \
  --url https://getmipay.com/api/v1/action/card/user \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'x-sp-auth-token: <x-sp-auth-token>' \
  --data '{
  "first_name": "John",
  "last_name": "Doe",
  "email": "john@gmail.com",
  "country_code": "CM",
  "contact": "698479723",
  "dob": "2010-01-01",
  "is_business": false,
  "business_name": "NAN",
  "billing_adress": "kotto",
  "billing_city": "DOUALA",
  "billing_country": "CAMEROON",
  "billing_state": "littoral",
  "billing_postal_code": "237",
  "id_number": "00858574849"
}'
{
  "success": true,
  "data": {
    "user_id": "SP6VC",
    "reference": "USR_123456",
    "first_name": "John",
    "last_name": "Doe",
    "email": "john@gmail.com",
    "status": "active",
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-KEY
string
header
required

Headers

Authorization
string
required

Bearer token from authentication

Example:

"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

x-sp-auth-token
string
required

getmipay authentication token

Example:

"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Body

application/json

User creation details

first_name
string
required
Example:

"John"

last_name
string
required
Example:

"Doe"

email
string<email>
required
Example:

"john@gmail.com"

country_code
string
required
Example:

"CM"

contact
string
required
Example:

"698479723"

dob
string<date>
required
Example:

"2010-01-01"

billing_adress
string
required
Example:

"kotto"

billing_city
string
required
Example:

"DOUALA"

billing_country
string
required
Example:

"CAMEROON"

billing_state
string
required
Example:

"littoral"

billing_postal_code
string
required
Example:

"237"

id_number
string
required
Example:

"00858574849"

is_business
boolean
default:false
Example:

false

business_name
string
Example:

"NAN"

Response

User created successfully

success
boolean
Example:

true

data
object