POST
/
api
/
v1
/
cardholders
/
create
curl 'https://api.sandbox.uqpay.org/api/v1/cardholders/create' \
-H 'content-type: application/json' \
-H 'x-auth-token: Bearer 0e043e2ec6898b3220a0921466d7c203' \
-H 'x-client-id: Up1HIsjiETPXLy7gON9PMG' \
--data-raw '{"email":"[email protected]","phone_number":"373_486188426","first_name":"Emily","last_name":"Johnson","date_birth":"2023-07-12","card_holder_status":1,"residential_address":"uqpay"}'
{
    "code": 200,
    "message": "Success",
    "data": {
    "card_holder_id": "8c1c03ac-c0fa-44d9-9606-38cb41776d32"
}
}
x-client-id
string
required

x-client-id.

x-auth-token
string
required

Bearer YOUR_TOKEN_HERE.

Parameters

email
string
required

Email of the cardholder.

first_name
string
required

First name of the cardholder.
Maximum length 50

last_name
string
required

Last name of the cardholder.
Maximum length 50

date_birth
string
required

Date birth of the cardholder.
Format: YYYY-MM-DD

phone_number
string
required

Phone number of the cardholder.
Maximum length 50

residential_address
string

Residential address of the cardholder.

delivery_address
string

Delivery address of the cardholder.

card_holder_status
number
required

Status of cardholder.
-1=FAILED, 0-PENDING, 1-SUCCESS, 2-INCOMPLETE

Response

code
number

Indicates whether the call was successful. 200 if successful, 400 if not.

message
string

Response Message. “Success” if successful, others not.

data
object
curl 'https://api.sandbox.uqpay.org/api/v1/cardholders/create' \
-H 'content-type: application/json' \
-H 'x-auth-token: Bearer 0e043e2ec6898b3220a0921466d7c203' \
-H 'x-client-id: Up1HIsjiETPXLy7gON9PMG' \
--data-raw '{"email":"[email protected]","phone_number":"373_486188426","first_name":"Emily","last_name":"Johnson","date_birth":"2023-07-12","card_holder_status":1,"residential_address":"uqpay"}'
{
    "code": 200,
    "message": "Success",
    "data": {
    "card_holder_id": "8c1c03ac-c0fa-44d9-9606-38cb41776d32"
}
}