User authentication is done through the POST /login endpoint. On success response, payload will contain access_token field. API clients must include the access_token in the Authorization header for further requests that require authentication.
Authenticate the user and responds with access token
| email required | string User email |
| password required | string User password |
{- "email": "example@example.com",
- "password": "Passw0rd!"
}{- "access_token": "eyJz93a...k4laUWw",
- "expires_in": 86400
}Creates a signup form request, return possible existing values from employers file
| email required | string |
| full_name | string |
| social_name | string |
| phone_number | string User current phone number |
| cpf | string |
| date_of_birth | string User date of birth in ISO8601 format |
| subscription_plan_id | string The ID of the chosen subscription plan |
| phone_account_company_id | string The ID of the company that will own the created phone_account |
| area_code | number [ 11 .. 99 ] The desired area code for the new phone number |
object |
{- "email": "john.smith@example.com",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": "+5541999999999",
- "cpf": "111-111-111-11",
- "date_of_birth": "1994-10-29",
- "subscription_plan_id": "4fe9628e-e651-4635-b922-ee1976420570",
- "phone_account_company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "area_code": 41,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "email": "john.smith@example.com",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": "+5541999999999",
- "cpf": "111-111-111-11",
- "date_of_birth": "1994-10-29",
- "subscription_plan_id": "4fe9628e-e651-4635-b922-ee1976420570",
- "phone_account_company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "area_code": 41,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}Updates signup form data, returns signup form data updated
| id required | string The id of the signup form |
string | |
| full_name | string |
| social_name | string |
| phone_number | string User current phone number |
| cpf | string |
| date_of_birth | string User date of birth in ISO8601 format |
| subscription_plan_id | string The ID of the chosen subscription plan |
| phone_account_company_id | string The ID of the company that will own the created phone_account |
| area_code | number [ 11 .. 99 ] The desired area code for the new phone number |
object |
{- "email": "john.smith@example.com",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": "+5541999999999",
- "cpf": "111-111-111-11",
- "date_of_birth": "1994-10-29",
- "subscription_plan_id": "4fe9628e-e651-4635-b922-ee1976420570",
- "phone_account_company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "area_code": 41,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "email": "john.smith@example.com",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": "+5541999999999",
- "cpf": "111-111-111-11",
- "date_of_birth": "1994-10-29",
- "subscription_plan_id": "4fe9628e-e651-4635-b922-ee1976420570",
- "phone_account_company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "area_code": 41,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}Completes signup form data, returns access_token and User created
| id required | string The id of the signup form |
| password | string |
| confirm_password | string |
{- "password": "Passw0rd!",
- "confirm_password": "Passw0rd!"
}{- "access_token": "eyJz93a...k4laUWw",
- "user": {
- "id": "string",
- "email": "string",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": 5511999999999,
- "cpf": "string",
- "date_of_birth": "1994-10-29",
- "address": {
- "zip_code": "string",
- "street_name": "string",
- "street_number": 0,
- "complement": "string",
- "city": "string",
- "state": "string"
}
}, - "phone_account_id": "b1791ea1-f882-49a0-98e5-b14295da73ad"
}Start's the password reset flow for the given user
string |
{- "email": "john.smith@example.com"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Validates a user's password reset request, redirecting them to the password reset form
| id required | string The id of the password reset request |
{- "code": "resource-not-found",
- "message": "Resource not found!"
}Finishes a user's password reset process, effectively changing their password
| id required | string The id of the password reset request |
| new_password | string |
{- "new_password": 123456
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Get all phone accounts of the authenticated user. Phone accounts are automatically created after user completes signup form.
{- "phone_accounts": [
- {
- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "user_id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "phone_number": "+5541999999999",
- "is_portability": false,
- "status": "active"
}
]
}Request portability for an existing phone number to the provided phone account
| id required | string The id of the phone_account |
| phone_number required | string |
{- "phone_number": "+5511123456789"
}Request portability for an existing phone number to the provided phone account
| id required | string The id of the phone_account |
{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "status": "SUCCESSFUL",
- "status_reason": "Deu boa",
- "phone_number": "+5541999999999"
}The context is defined by the authenticated user and phoneAccountId query param (for now)
| phoneAccountId required | string The id of the phoneAccount |
[- "app:stripe-manage-billing"
]Creates a signup form request, return possible existing values from employers file
| email required | string |
| full_name | string |
| social_name | string |
| phone_number | string User current phone number |
| cpf | string |
| date_of_birth | string User date of birth in ISO8601 format |
| subscription_plan_id | string The ID of the chosen subscription plan |
| phone_account_company_id | string The ID of the company that will own the created phone_account |
| area_code | number [ 11 .. 99 ] The desired area code for the new phone number |
object |
{- "email": "john.smith@example.com",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": "+5541999999999",
- "cpf": "111-111-111-11",
- "date_of_birth": "1994-10-29",
- "subscription_plan_id": "4fe9628e-e651-4635-b922-ee1976420570",
- "phone_account_company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "area_code": 41,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "email": "john.smith@example.com",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": "+5541999999999",
- "cpf": "111-111-111-11",
- "date_of_birth": "1994-10-29",
- "subscription_plan_id": "4fe9628e-e651-4635-b922-ee1976420570",
- "phone_account_company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "area_code": 41,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}Updates signup form data, returns signup form data updated
| id required | string The id of the signup form |
string | |
| full_name | string |
| social_name | string |
| phone_number | string User current phone number |
| cpf | string |
| date_of_birth | string User date of birth in ISO8601 format |
| subscription_plan_id | string The ID of the chosen subscription plan |
| phone_account_company_id | string The ID of the company that will own the created phone_account |
| area_code | number [ 11 .. 99 ] The desired area code for the new phone number |
object |
{- "email": "john.smith@example.com",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": "+5541999999999",
- "cpf": "111-111-111-11",
- "date_of_birth": "1994-10-29",
- "subscription_plan_id": "4fe9628e-e651-4635-b922-ee1976420570",
- "phone_account_company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "area_code": 41,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "email": "john.smith@example.com",
- "full_name": "Jhon Smith",
- "social_name": "Jane Smith",
- "phone_number": "+5541999999999",
- "cpf": "111-111-111-11",
- "date_of_birth": "1994-10-29",
- "subscription_plan_id": "4fe9628e-e651-4635-b922-ee1976420570",
- "phone_account_company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "area_code": 41,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}Paginated search through company phone accounts
| id required | string The id of the company |
| searchTerm | string Term to search for in phone accounts |
| limit | number The size limit of each page in response |
| offset | number The number of phone accounts to skip before sending result. |
{- "pagination": {
- "hasMore": true,
- "totalCount": 50
}, - "phone_accounts": [
- {
- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "user_id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "user": {
- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "full_name": "Jhon Doe",
- "email": "test@email.com",
- "social_name": "Jhon"
}, - "company_id": "bf0443ca-18f2-436a-b846-eb2b4fd8b418",
- "provider": "americanet",
- "phone_number": "+5541999999999",
- "is_portability": false,
- "simcard_number": "123",
- "status": "active",
- "subscription_plan_id": "e0483338-15e0-4ec4-aab8-c00e17edd6cf",
- "subscription_plan": {
- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "name": "10GB",
- "availableDataAmountGb": 10
}, - "custom_fields": {
- "Equipamento": "Motorola"
}, - "created_at": "2022-01-01T00:00:00Z",
- "updated_at": "2022-01-01T00:00:00Z"
}
]
}Create a phone account owned by a company
| id required | string The id of the company |
| subscription_plan_id required | string |
| area_code required | number |
| user_id | string |
{- "subscription_plan_id": "e885e8e1-8925-4e2a-a9e1-d6326b719209",
- "area_code": 41,
- "user_id": "8307fddf-2cdc-47f4-bbc1-5bc26fa78fbc"
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "user_id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "company_id": "bf0443ca-18f2-436a-b846-eb2b4fd8b418",
- "provider": "americanet",
- "phone_number": "+5541999999999",
- "is_portability": false,
- "simcard_number": "123",
- "status": "active",
- "subscription_plan_id": "e0483338-15e0-4ec4-aab8-c00e17edd6cf",
- "created_at": "2022-01-01T00:00:00Z",
- "updated_at": "2022-01-01T00:00:00Z"
}Get all the employees for a company
| id required | string The ID of the company |
{- "employees": [
- {
- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "fullName": "Test McTest",
- "socialName": "The Scatman",
- "status": "active",
- "workEmail": "work.email@email.com",
- "personalEmail": "personal.email@email.com",
- "workPhoneNumber": "+5541987654321",
- "personalPhoneNumber": "+5541912345678",
- "cpf": "123.456.789-00",
- "position": "CEO",
- "area": "Marketing",
- "birthDate": "1990-01-01",
- "companyId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "userId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "admittedAt": "2020-01-01T00:00:00Z",
- "terminatedAt": "2021-01-01T00:00:00Z",
- "address": {
- "zipCode": "80000-000",
- "streetName": "Rua da rua",
- "streetNumber": "123",
- "complement": "Apto apartamento",
- "neighborhood": "Bairro do bairro",
- "city": "Cidade da cidade",
- "state": "ST"
}
}
]
}Get all of a company's invoices
| id required | string The id of the company |
{- "invoices": [
- {
- "id": "stripe:53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "items": [
- {
- "description": "Invoice for 1 month of service",
- "amountCents": 1000
}
], - "amountCents": 1000,
- "status": "pending",
- "companyId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "createdAt": "2023-02-01T00:00:00Z",
- "dueAt": "2023-02-06T00:00:00Z"
}
]
}Change the company's registration data
| id required | string The id of the company |
| officialName | string The company's updated official name |
| tradingName | string The company's updated trading name |
| cnpj | string The company's updated CNPJ |
| phoneNumber | string The company's updated phone number |
string The company's updated email | |
| billingEmail | string The company's updated billing email |
object |
{- "officialName": "New Official Name",
- "tradingName": "New Trading Name",
- "cnpj": "97.986.734/0001-23",
- "phoneNumber": "+5541987654321",
- "email": "new@email.com",
- "billingEmail": "new.billing@email.com",
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Sets a company email domain for signup-by-domain (without a signup form)
| id required | string The id of the company |
| email_domain required | string |
| default_subscription_plan_id required | string |
{- "email_domain": "domain.com",
- "default_subscription_plan_id": "e885e8e1-8925-4e2a-a9e1-d6326b719209"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Deletes a company email domain for signup-by-domain (without a signup form)
| id required | string The id of the company |
| email_domain required | string |
{- "email_domain": "domain.com"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Get available subscription plans
| id required | string The id of the company |
{- "subscription_plans": [
- {
- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "name": "Plano WhatsApp",
- "available_data_gb": 0,
- "price_cents_company": 1490
}
]
}Rename the key of all of a company's phone accounts custom field
| id required | string The id of the company |
| currentKey required | string The current key of the custom field |
| newKey | string The new key of the custom field |
{- "currentKey": "Current key",
- "newKey": "New key"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Get all SIM card shipments of a company
| id required | string The id of the company |
{- "shipments": [
- {
- "id": "7b145d46-9d72-467d-aa37-4add0d6d697c",
- "status": "PROCESSING",
- "company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "provider": "Melhor Envio",
- "provider_id": 123456789,
- "tracking_code": 987654321,
- "status_reason": "The shipment is in transit",
- "quantity": 10,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}
]
}Update a subscription plan price for a given company
| companyId required | string The id of the company |
| subscriptionPlanId required | string The id of the subscription plan |
| priceCents required | number |
{- "priceCents": 990
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Change the user attributed to a phone account
| id required | string The id of the phone account |
| user_email required | string The email of the new phone account owner. If no user with the given email exists, a new user will be created with a blank password |
| user_name required | string The full name of the new phone account user |
{- "user_email": "test@mctest.com",
- "user_name": "Test McTest"
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "user_id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "company_id": "bf0443ca-18f2-436a-b846-eb2b4fd8b418",
- "provider": "americanet",
- "phone_number": "+5541999999999",
- "is_portability": false,
- "simcard_number": "123",
- "status": "active",
- "subscription_plan_id": "e0483338-15e0-4ec4-aab8-c00e17edd6cf",
- "created_at": "2022-01-01T00:00:00Z",
- "updated_at": "2022-01-01T00:00:00Z"
}Activate a SIM card
| id required | string The id of the phone account |
| sim_card_number required | string The SIM card number that will be activated (all 20 digits or only the last 7) |
{- "sim_card_number": "89552600000001234567"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Provision new random phone number
| id required | string The id of the phone account |
| area_code | string The area code for the new number |
{- "area_code": "41"
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "user_id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "company_id": "bf0443ca-18f2-436a-b846-eb2b4fd8b418",
- "provider": "americanet",
- "phone_number": "+5541999999999",
- "is_portability": false,
- "simcard_number": "123",
- "status": "active",
- "subscription_plan_id": "e0483338-15e0-4ec4-aab8-c00e17edd6cf",
- "created_at": "2022-01-01T00:00:00Z",
- "updated_at": "2022-01-01T00:00:00Z"
}Updates phone account simcard
| id required | string The id of the phone account |
| newSimCard required | string The new simcard to be assigned to the phone account |
{- "newSimCard": "1233211"
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "user_id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "company_id": "bf0443ca-18f2-436a-b846-eb2b4fd8b418",
- "provider": "americanet",
- "phone_number": "+5541999999999",
- "is_portability": false,
- "simcard_number": "123",
- "status": "active",
- "subscription_plan_id": "e0483338-15e0-4ec4-aab8-c00e17edd6cf",
- "created_at": "2022-01-01T00:00:00Z",
- "updated_at": "2022-01-01T00:00:00Z"
}Request portability for an existing phone number to the provided phone account
| id required | string The id of the phone account |
| phone_number required | string The phone number that will be ported to the provided phone account |
{- "phone_number": "+5511123456789"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Change the contract owner of a phone account
| id required | string The id of the phone account |
| company_id required | string The ID of the company that will own the phone account contract |
{- "company_id": "e885e8e1-8925-4e2a-a9e1-d6326b719209"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Assign a tag to a phone account
| id required | string The id of the phone account |
| tag required | string The tag that will be assigned to the phone account. If the tag is not sent or an empty tag is sent (""), the current tag will be removed |
{- "tag": "Support team"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Add data to phone account
| id required | string The id of the phone account |
| quantity_gb required | number Quantity of data to be available to the user in Gigabytes. |
| unit_amount_cents required | number Amount paid for a unit of quantity. Eg, for unit_amount_cents = 10000 and quantity_gb = 1.5 the total price will be 15000 |
{- "quantity_gb": 1.5,
- "unit_amount_cents": 10000
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Block phone account
| id required | string The id of the phone account |
| reason required | string Enum: "theft" "loss" "misuse" "no-pay" Block reason |
{- "reason": "theft"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Change the subscription plan of a phone account
| id required | string The id of the phone account |
| planId required | string The id of the new subscription plan |
{- "code": "resource-not-found",
- "message": "Resource not found!"
}Set the custom field value of a phone account
| id required | string The id of the phone account |
| fieldName required | string The name of the custom field |
| fieldValue required | string The value of the provided field |
{- "fieldValue": "Some value"
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}Remove a custom field from a phone account
| id required | string The id of the phone account |
| fieldName required | string The name of the custom field |
{- "code": "resource-not-found",
- "message": "Resource not found!"
}Create a new SIM card shipment
| status | string Current status of the shipment. Possible values are: PROCESSING, LABELED, IN TRANSIT, DELIVERED, FAILED |
| companyId | string The ID of the company that owns the shipment |
| provider | string The provider of the shipment |
| providerId | string The ID of the shipment in the provider |
| trackingCode | string The tracking code of the shipment |
| statusReason | string The reason for the current status of the shipment |
| quantity | number The quantity of SIM cards in the shipment |
object |
{- "status": "PROCESSING",
- "companyId": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "provider": "Melhor Envio",
- "providerId": 123456789,
- "trackingCode": 987654321,
- "statusReason": "The shipment is in transit",
- "quantity": 10,
- "address": {
- "zipCode": "11111-111",
- "streetName": "Rua Marechal Deodoro",
- "streetNumber": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}{- "id": "7b145d46-9d72-467d-aa37-4add0d6d697c"
}Update an existing SIM card shipment
| id required | string The sim card shipment's ID |
| status | string Current status of the shipment. Possible values are: PROCESSING, LABELED, IN TRANSIT, DELIVERED, FAILED |
| companyId | string The ID of the company that owns the shipment |
| provider | string The provider of the shipment |
| providerId | string The ID of the shipment in the provider |
| trackingCode | string The tracking code of the shipment |
| statusReason | string The reason for the current status of the shipment. May be empty |
| quantity | number The quantity of SIM cards in the shipment |
object |
{- "status": "PROCESSING",
- "companyId": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "provider": "Melhor Envio",
- "providerId": 123456789,
- "trackingCode": 987654321,
- "statusReason": "The shipment is in transit",
- "quantity": 10,
- "address": {
- "zipCode": "11111-111",
- "streetName": "Rua Marechal Deodoro",
- "streetNumber": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}{- "id": "7b145d46-9d72-467d-aa37-4add0d6d697c",
- "status": "PROCESSING",
- "company_id": "9df54b15-1a57-4e11-917a-5a5ddedb99ea",
- "provider": "Melhor Envio",
- "provider_id": 123456789,
- "tracking_code": 987654321,
- "status_reason": "The shipment is in transit",
- "quantity": 10,
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}Change the user's registration data
| id required | string The id of the user |
| phoneNumber | string The user's updated phone number |
string The user's updated email | |
| fullName | string The user's updated full name |
| socialName | string The user's updated social name |
| cpf | string The user's updated CPF |
| dateOfBirth | string The user's updated date of birth |
object |
{- "phoneNumber": "+5541987654321",
- "email": "new@email.com",
- "fullName": "new@email.com",
- "socialName": "New Social Name",
- "cpf": "01234567890",
- "dateOfBirth": "2000-01-01",
- "address": {
- "zip_code": "11111-111",
- "street_name": "Rua Marechal Deodoro",
- "street_number": 666,
- "complement": "Apartamento 101",
- "neighborhood": "Centro",
- "city": "Curitiba",
- "state": "PR"
}
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}| id required | string The user's ID |
| amount required | number |
| sendEmail | boolean Default: true |
{- "amount": 100.25,
- "sendEmail": false
}{- "number": "123456",
- "authorizationCode": "ABC123",
}| id required | string The company's ID |
| amount required | number |
| sendEmail | boolean Default: true |
{- "amount": 100.25,
- "sendEmail": false
}{- "number": "123456",
- "authorizationCode": "ABC123",
}Crate a new employee
Employee data
| fullName required | string Full name of the employee |
| socialName | string Social name of the employee |
| status required | string Employment status: active, terminated |
| workEmail | string Work email of the employee, used in a professional setting |
| personalEmail | string Personal email of the employee |
| workPhoneNumber | string Work phone number of the employee, used in a professional setting |
| personalPhoneNumber | string Personal phone number of the employee |
| cpf | string CPF of the employee |
| position | string Position of the employee in the company |
| area | string Area in which the employee works |
| birthDate | string Birth date of the employee |
| companyId required | string ID of the company in which the employee works |
| userId | string ID of the employee's user |
| admittedAt | string Date and time at which the employee was admitted |
| terminatedAt | string Date and time at which the employee was terminated |
object |
{- "fullName": "Test McTest",
- "socialName": "The Scatman",
- "status": "active",
- "workEmail": "work.email@email.com",
- "personalEmail": "personal.email@email.com",
- "workPhoneNumber": "+5541987654321",
- "personalPhoneNumber": "+5541912345678",
- "cpf": "123.456.789-00",
- "position": "CEO",
- "area": "Marketing",
- "birthDate": "1990-01-01",
- "companyId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "userId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "admittedAt": "2020-01-01T00:00:00Z",
- "terminatedAt": "2021-01-01T00:00:00Z",
- "address": {
- "zipCode": "80000-000",
- "streetName": "Rua da rua",
- "streetNumber": "123",
- "complement": "Apto apartamento",
- "neighborhood": "Bairro do bairro",
- "city": "Cidade da cidade",
- "state": "ST"
}
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "fullName": "Test McTest",
- "socialName": "The Scatman",
- "status": "active",
- "workEmail": "work.email@email.com",
- "personalEmail": "personal.email@email.com",
- "workPhoneNumber": "+5541987654321",
- "personalPhoneNumber": "+5541912345678",
- "cpf": "123.456.789-00",
- "position": "CEO",
- "area": "Marketing",
- "birthDate": "1990-01-01",
- "companyId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "userId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "admittedAt": "2020-01-01T00:00:00Z",
- "terminatedAt": "2021-01-01T00:00:00Z",
- "address": {
- "zipCode": "80000-000",
- "streetName": "Rua da rua",
- "streetNumber": "123",
- "complement": "Apto apartamento",
- "neighborhood": "Bairro do bairro",
- "city": "Cidade da cidade",
- "state": "ST"
}
}Get's a single employee
| id required | string The id of the employee |
{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "fullName": "Test McTest",
- "socialName": "The Scatman",
- "status": "active",
- "workEmail": "work.email@email.com",
- "personalEmail": "personal.email@email.com",
- "workPhoneNumber": "+5541987654321",
- "personalPhoneNumber": "+5541912345678",
- "cpf": "123.456.789-00",
- "position": "CEO",
- "area": "Marketing",
- "birthDate": "1990-01-01",
- "companyId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "userId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "admittedAt": "2020-01-01T00:00:00Z",
- "terminatedAt": "2021-01-01T00:00:00Z",
- "address": {
- "zipCode": "80000-000",
- "streetName": "Rua da rua",
- "streetNumber": "123",
- "complement": "Apto apartamento",
- "neighborhood": "Bairro do bairro",
- "city": "Cidade da cidade",
- "state": "ST"
}
}Update an employee's data
| id required | string The id of the employee |
Employee data
| fullName required | string Full name of the employee |
| socialName | string Social name of the employee |
| status required | string Employment status: active, terminated |
| workEmail | string Work email of the employee, used in a professional setting |
| personalEmail | string Personal email of the employee |
| workPhoneNumber | string Work phone number of the employee, used in a professional setting |
| personalPhoneNumber | string Personal phone number of the employee |
| cpf | string CPF of the employee |
| position | string Position of the employee in the company |
| area | string Area in which the employee works |
| birthDate | string Birth date of the employee |
| companyId required | string ID of the company in which the employee works |
| userId | string ID of the employee's user |
| admittedAt | string Date and time at which the employee was admitted |
| terminatedAt | string Date and time at which the employee was terminated |
object |
{- "fullName": "Test McTest",
- "socialName": "The Scatman",
- "status": "active",
- "workEmail": "work.email@email.com",
- "personalEmail": "personal.email@email.com",
- "workPhoneNumber": "+5541987654321",
- "personalPhoneNumber": "+5541912345678",
- "cpf": "123.456.789-00",
- "position": "CEO",
- "area": "Marketing",
- "birthDate": "1990-01-01",
- "companyId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "userId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "admittedAt": "2020-01-01T00:00:00Z",
- "terminatedAt": "2021-01-01T00:00:00Z",
- "address": {
- "zipCode": "80000-000",
- "streetName": "Rua da rua",
- "streetNumber": "123",
- "complement": "Apto apartamento",
- "neighborhood": "Bairro do bairro",
- "city": "Cidade da cidade",
- "state": "ST"
}
}{- "id": "53af5437-dd2b-4efb-84c2-d16c6fffd376",
- "fullName": "Test McTest",
- "socialName": "The Scatman",
- "status": "active",
- "workEmail": "work.email@email.com",
- "personalEmail": "personal.email@email.com",
- "workPhoneNumber": "+5541987654321",
- "personalPhoneNumber": "+5541912345678",
- "cpf": "123.456.789-00",
- "position": "CEO",
- "area": "Marketing",
- "birthDate": "1990-01-01",
- "companyId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "userId": "4489fccb-4c3e-4cd6-90c0-6aae84e71edc",
- "admittedAt": "2020-01-01T00:00:00Z",
- "terminatedAt": "2021-01-01T00:00:00Z",
- "address": {
- "zipCode": "80000-000",
- "streetName": "Rua da rua",
- "streetNumber": "123",
- "complement": "Apto apartamento",
- "neighborhood": "Bairro do bairro",
- "city": "Cidade da cidade",
- "state": "ST"
}
}Request a new phone account:
| id required | string The id of the company |
| subscriptionPlanId required | string |
| areaCode required | number |
object | |
| changeOwnership | boolean |
object |
{- "subscriptionPlanId": "e885e8e1-8925-4e2a-a9e1-d6326b719209",
- "areaCode": 41,
- "user": {
- "email": "test@test.com",
- "name": "Test"
}, - "changeOwnership": true,
- "simcardDeliveryAddress": {
- "zipCode": "string",
- "streetName": "string",
- "streetNumber": "string",
- "complement": "string",
- "neighborhood": "string",
- "city": "string",
- "state": "string"
}
}{- "code": "resource-not-found",
- "message": "Resource not found!"
}