api/v1/customer/{id}/join-team

POST

/api/v1/customer/{id}/join-team

This API method will add the logged in customer to the team of referenced customer.

Request Parameters

ParameterValue / TypeRequired
store_idSTRINGtrue
alt_customer_idSTRING|INTEGERtrue

Sample Response

{
    "status": true,
    "message": "You successfully joined the team of Steve at the store Bills Vape Shop"
}
{
    "status": true,
    "message": "You are already registered for this store, you cannot sign up under this member's team"
}
{
    "status": false,
    "message": "The customer was not found"
}
{
    "status": false,
    "message": "Please provide a valid store"
}
{
    "status": false,
    "errorCode": "VALIDATION_EXCEPTION",
    "messages": {
        "store_id": [
            "store id could not be found. Check your ID"
        ]
    }
}
{
    "status": false,
    "message": "The member you are joining does not belongs to this store"
}