Create User

User creation endpoint

POST https://vcard.fuspay.finance/api/v1/Merchant/CreateUser

Before creating a user, the merchant must either have an existing Intrapay account or create a new one. To set up an account, visit Intrapay. The merchant will use the merchant ID of their intrapay acct to setup their merchant account which allows them to create their users. Also, A card is mapped to a user therefore you’ve to create a user before you can create card for user.

Request Header

Name
Type
Description

Authorization

Bearer Token

Bearer token ${partner_secret_key}

Content-Type

Application/json

x-partner-id

xxxxxxxx

Your partner ID eg. p602xxx

Request body

Name
Type
Description

merchant_id

String

ID of the merchant from intrapay.

user_id

String

ID of user from your system

full_name

String

the full name of user

email

String

the email of the user

phone

String

the phone number of the user

{
	"merchant_id": "C00012",
	"user_id": "U0001",
	"full_name": "FusPay Demo",
	"email": "[email protected]",
	"phone": "234806464212"
}

If the user has not completed KYC you will have the make two calls, the first call will return a link to initiate the KYC process.

// first response if the user is yet to do KYC
{
    "error": true,
    "message": "Please start user kyc process",
    "data": "https://kyc.fuspay.finance/verification/individual/678fd168e4d8223cf207fc9c"
} 

The second call will return a successful response after the user has completed

Response body

{
    "success": true,
    "message": "User created successfully",
    "data": {
        "merchant_id": "1730000000000_intra_merchant_900000",
        "user_id": "66bded7c0aed078900000000"
    }
}

Last updated