Skip to main content
POST
/
v1
/
auth
/
google
/
register
Register company with Google
curl --request POST \
  --url https://sgjm-api.vohoangphuc.com/v1/auth/google/register \
  --header 'Content-Type: application/json' \
  --cookie auth_token= \
  --data '
{
  "companyName": "<string>",
  "email": "jsmith@example.com",
  "country": "<string>",
  "phoneNumber": "<string>",
  "city": "<string>",
  "address": "<string>"
}
'
{
  "success": true,
  "message": "<string>",
  "data": {}
}

Authorizations

auth_token
string
cookie
required

JWE token stored in HttpOnly cookie

Body

application/json
companyName
string
required
email
string<email>
required
Maximum string length: 255
country
string
required
phoneNumber
string
city
string
address
string

Response

200 - application/json

Registration successful

success
boolean
message
string
data
object