User Tax Identifiers
Preview
This schema is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
An identifier a government issued to a user, such as their tax identifier. Government identifiers are only available in select projects.
Properties
- Name
- object
- Type
- string
- Description
Type of object is always
governmentIdentifier.Allowed values:governmentIdentifier
- Name
- brCpf
- Type
- nullable BrazilianCpf
- Description
- Fields of a government identifier with the
brCpftype. Only present whentypeisbrCpf.Optional: This property may not always be included.- Name
- cpf
- Type
- string
- Description
The CPF as 11 digits, without dots or dashes, with valid check digits.
Optional: This property may not always be included.Example:"52998224725"
- Name
- type
- Type
- string
- Description
The type of the government identifier. The object with the same name holds the fields of that type.
Example:"brCpf"Allowed values:brCpf
GovernmentIdentifier object
{
"object": "governmentIdentifier",
"brCpf": {
"cpf": "52998224725"
},
"type": "brCpf"
}
Retrieve a user's tax identifier
Retrieves the tax identifier of the given user. Responds with a 404 error when the user has no tax identifier.
Tax identifiers are only available in select projects.
Preview
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
Path Parameters
Responses
Returns the user's tax identifier.
- Name
- object
- Type
- string
- Description
Type of object is always
governmentIdentifier.Allowed values:governmentIdentifier
- Name
- brCpf
- Type
- nullable BrazilianCpf
- Description
- Fields of a government identifier with the
brCpftype. Only present whentypeisbrCpf.Optional: This property may not always be included.- Name
- cpf
- Type
- string
- Description
The CPF as 11 digits, without dots or dashes, with valid check digits.
Optional: This property may not always be included.Example:"52998224725"
- Name
- type
- Type
- string
- Description
The type of the government identifier. The object with the same name holds the fields of that type.
Example:"brCpf"Allowed values:brCpf
Request
curl https://api.gigs.com/projects/${GIGS_PROJECT}/users/{user}/taxIdentifier \
-X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
Response 200
{
"object": "governmentIdentifier",
"brCpf": {
"cpf": "52998224725"
},
"type": "brCpf"
}
Create or replace a user's tax identifier
Sets the tax identifier of the given user. A user has one tax identifier at a time, so this replaces the one they have and responds with a 200. If they have none, it creates one and responds with a 201. If the new one is invalid, the user keeps their current one.
Tax identifiers are only available in select projects.
Preview
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
Body
- Name
- type
- Type
- string
- Description
The type of the government identifier. The object with the same name holds the fields of that type.
Example:"brCpf"Allowed values:brCpf
required
Path Parameters
Responses
Returns the user's tax identifier, when they already had one.
- Name
- object
- Type
- string
- Description
Type of object is always
governmentIdentifier.Allowed values:governmentIdentifier
- Name
- brCpf
- Type
- nullable BrazilianCpf
- Description
- Fields of a government identifier with the
brCpftype. Only present whentypeisbrCpf.Optional: This property may not always be included.- Name
- cpf
- Type
- string
- Description
The CPF as 11 digits, without dots or dashes, with valid check digits.
Optional: This property may not always be included.Example:"52998224725"
- Name
- type
- Type
- string
- Description
The type of the government identifier. The object with the same name holds the fields of that type.
Example:"brCpf"Allowed values:brCpf
Request
curl https://api.gigs.com/projects/${GIGS_PROJECT}/users/{user}/taxIdentifier \
-X PUT \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json" \
-d '{
"brCpf": {
"cpf": "52998224725"
},
"type": "brCpf"
}'
Response 200
{
"object": "governmentIdentifier",
"brCpf": {
"cpf": "52998224725"
},
"type": "brCpf"
}
Delete a user's tax identifier
Deletes the tax identifier of the given user. The user has none until a new one is set. Responds with a 404 error when the user has no tax identifier.
Tax identifiers are only available in select projects.
Preview
This endpoint is currently in preview and might change in the future.
We’re excited to hear your feedback and ideas. Please send an email to support@gigs.com to share your thoughts.
Path Parameters
Responses
Returns the tax identifier after a successful deletion.
- Name
- object
- Type
- string
- Description
Type of object is always
governmentIdentifier.Allowed values:governmentIdentifier
- Name
- brCpf
- Type
- nullable BrazilianCpf
- Description
- Fields of a government identifier with the
brCpftype. Only present whentypeisbrCpf.Optional: This property may not always be included.- Name
- cpf
- Type
- string
- Description
The CPF as 11 digits, without dots or dashes, with valid check digits.
Optional: This property may not always be included.Example:"52998224725"
- Name
- type
- Type
- string
- Description
The type of the government identifier. The object with the same name holds the fields of that type.
Example:"brCpf"Allowed values:brCpf
Request
curl https://api.gigs.com/projects/${GIGS_PROJECT}/users/{user}/taxIdentifier \
-X DELETE \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${GIGS_TOKEN}" \
-H "Accept: application/json"
Response 200
{
"object": "governmentIdentifier",
"brCpf": {
"cpf": "52998224725"
},
"type": "brCpf"
}