Get All Users
Endpoint
/3p/api/v1/users
Example with query parameter
/3p/api/v1/users?per_page=1&role=business,person&created_at_from=2024-03-01&created_at_to=2024-03-31
Query Parameter
Fields | Type | Is Required | Description |
---|---|---|---|
per_page | integer | ||
role | string | Possible Value: business person | |
created_at_from | string | Date format: Y-m-d | |
created_at_to | string | Date format: Y-m-d | |
created_at | string | Date format: Y-m-d |
Response
{
"status": true,
"message": "",
"data": [
{
"uuid": "1874a4e0-ab7b-4ea3-a7ff-fde712b88cd6",
"first_name": "Andrew",
"last_name": "test",
"email": null,
"phone": null,
"status": "APPROVED",
"address": {
"street_address": "Elm Street",
"additional_address": "Third flore",
"city": "New",
"state": "NY",
"country": "USA",
"zip": "12345"
},
"created_at": "2024-01-04 16:02:08",
"updated_at": "2024-01-04 16:02:08"
},
{
"uuid": "7ddd38b2-110e-4163-a966-818a95a0163e",
"first_name": null,
"last_name": "test",
"email": null,
"phone": null,
"status": "APPROVED",
"address": {
"street_address": "Elm Street",
"additional_address": "Third flore",
"city": "New",
"state": "NY",
"country": "USA",
"zip": "12345"
},
"created_at": "2024-01-04 16:05:39",
"updated_at": "2024-01-04 16:05:39"
},
........
],
"errors": null,
"error_code": null
}
Errors & Warnings
Code | Message |
---|---|
401 | |
403 | |
422 |
Updated 2 months ago