This API will allow you to associate a Firebase UUID, with a customer in our system. A Firebase UUID may already be assigned, or the customer itself already has an assignment which would prevent this.
A successful pairing provides the same information as login, where you can get the JWT token to proceed with login to the API.
POST
api/v1/customer/auth/associate-fb
Request Parameters
Parameter | Value / Type | Required |
|---|---|---|
fb_uuid | STRING | true |
STRING | true | |
password | STRING | true |
Sample Responses
{
"status": true,
"token": "[TOKEN]",
"expiration": 1843652828
}{
"status": false,
"errorCode": "INVALID_FIREBASE_UUID",
"message": "The firebase UUID was not found in the system"
}{
"status": false,
"errorCode": "UUID_ALREADY_SET",
"message": "Cannot pair customer. UUID already configured."
}{
"status": false,
"errorCode": "UUID_ALREADY_ASSIGNED",
"message": "This UUID is already in use by another member"
}{
"status": false,
"errorCode": "INVALID_CUSTOMER",
"message": "Customer could not be found"
}{
"status": false,
"errorCode": "VALIDATION_EXCEPTION",
"messages": {
"username": [
"The email field is required."
]
}
}{
"status": false,
"errorCode": "UPDATE_FAILED",
"message": "Failed to update customer with UUID"
}{
"status": false,
"errorCode": "AUTH_USER_NOT_FOUND",
"message": "The credentials provided did not match any customers in our system."
}