Sign Up

Sign up a customer

Create Customer.

The /thirdparty/customer/

Field

Required

Description

api_key String

yes

The same as your secret token

Create customer request

POST /thirdparty/customer/checkUserExistance

Customer request

curl -X POST https://tapway-api.herokuapp.com//thirdparty/customer/checkUserExistance
-H 'Content-Type: application/json' 
-H 'Authorization: Bearer <api_key>'

Customer response

http code 200
  [
    {
        "id": "5e20cc06f2fd232b50a1e50e",
        "validated": true,
       "phone": 08067749834
        "created_at": "2020-01-16T20:48:06.055Z",
        "last_updated": "2020-01-16T20:48:06.055Z"
    }, ...
  ]

Verify customer

The /thirdparty/customer/ endpoint allows you to complete a Customer registration.

Field

Required

Description

api_key String

yes

The same as your secret token

Retrieve Transactions request

POST /thirdparty/customer/otpVerification/register

Retrieve transactions request

curl -X POST https://tapway-api.herokuapp.com/thirdparty/customer/checkUserExistance \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api_key>'

Retrieve transactions response

http code 200
  {
    success : true,
    message : 'User Created',
    data : {
            jwtAccessToken,
            savedUser: {
                    _id,
                    fullName,
                    firstName,
                    lastName,
                    address,
                    gpsLocation,
                    savedAddresses,
                    phoneNumber,
                    email,
                    profileImage
                    }
          }
}

Last updated