User
The User endpoint allows you to manage your user details, including getting and editing user details.
GET/user
Get User Details
This endpoint allows you to get your user details.
Request
GET
/usercurl -G POST https://api.puregpu.com/user \
-H "X-API-Key: {token}"
Response
{
"result": "success",
"user": {
"email": "test@test.com",
"firstname": "test",
"lastname": "kk",
"companyname": "test",
"address1": "NA",
"address2": "",
"city": "NA",
"state": "NA",
"postcode": "NA",
"country": "NA",
"phonenumber": "1111111111",
"info_complete": true
}
}
PATCH/user
Edit User Details
This endpoint allows you to edit your user details.
Optional attributes
- Name
email
- Type
- string
- Description
The email address of the user.
- Name
firstname
- Type
- string
- Description
The first name of the user.
- Name
lastname
- Type
- string
- Description
The last name of the user.
- Name
companyname
- Type
- string
- Description
The company name of the user.
- Name
address1
- Type
- string
- Description
The first line of the user's address.
- Name
address2
- Type
- string
- Description
The second line of the user's address.
- Name
city
- Type
- string
- Description
The city of the user's address.
- Name
state
- Type
- string
- Description
The state of the user's address.
- Name
postcode
- Type
- string
- Description
The postcode of the user's address.
- Name
country
- Type
- string
- Description
The country of the user's address.
- Name
phonenumber
- Type
- string
- Description
The phone number of the user.
Request
PATCH
/usercurl -X PATCH https://api.puregpu.com/user \
-H "X-API-Key: {token}"
-H "Content-Type: application/json" \
-d '{
"companyname": "test"
}'
Response
{
"result": "success"
}