curl --request POST \
--url https://api.rivoopay.com/client \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "Cliente Bola",
"status": "ACTIVE",
"taxId": "05305405364",
"email": "bola@email.com",
"phone": "41999999999",
"address": "Rua Engenheiros Rebouças",
"district": "Rebouças",
"number": "2000",
"postalCode": "80215100",
"line1": "Green apartment"
}
'{
"id": "clnt_clx1234567890abcdef",
"taxId": "053.054.053-64",
"name": "Cliente Bola",
"email": "bola@email.com",
"phone": "41999999999",
"status": "ACTIVE",
"companyId": "comp_clx9876543210fedcba",
"createdAt": "2025-02-03T10:00:00Z",
"updatedAt": "2025-02-03T10:00:00Z",
"postalCode": "80215100",
"address": "Rua Engenheiros Rebouças",
"district": "Rebouças",
"number": "2000",
"line1": "Green apartment"
}Creates a new client for the authenticated user’s company. The companyId is automatically set from the authenticated user context.
curl --request POST \
--url https://api.rivoopay.com/client \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"name": "Cliente Bola",
"status": "ACTIVE",
"taxId": "05305405364",
"email": "bola@email.com",
"phone": "41999999999",
"address": "Rua Engenheiros Rebouças",
"district": "Rebouças",
"number": "2000",
"postalCode": "80215100",
"line1": "Green apartment"
}
'{
"id": "clnt_clx1234567890abcdef",
"taxId": "053.054.053-64",
"name": "Cliente Bola",
"email": "bola@email.com",
"phone": "41999999999",
"status": "ACTIVE",
"companyId": "comp_clx9876543210fedcba",
"createdAt": "2025-02-03T10:00:00Z",
"updatedAt": "2025-02-03T10:00:00Z",
"postalCode": "80215100",
"address": "Rua Engenheiros Rebouças",
"district": "Rebouças",
"number": "2000",
"line1": "Green apartment"
}Client data to create
Client full name
255"Cliente Bola"
Client status
ACTIVE, INACTIVE "ACTIVE"
Client tax ID (CPF/CNPJ). Will be automatically formatted to remove non-numeric characters
^[0-9]{11,14}$"05305405364"
Client email address
"bola@email.com"
Client phone number (Brazilian format)
^[0-9]{10,11}$"41999999999"
Client street address
"Rua Engenheiros Rebouças"
District/neighborhood
"Rebouças"
Street number
"2000"
Client postal code (CEP)
^[0-9]{8}$"80215100"
Address complement (line 1)
"Green apartment"
Client created successfully
Client unique identifier (format: clnt_{cuid2})
"clnt_clx1234567890abcdef"
Client tax ID (CPF/CNPJ) - formatted
^[0-9]{11,14}$"053.054.053-64"
Client full name
255"Cliente Bola"
Client email address
"bola@email.com"
Client phone number (Brazilian format)
^[0-9]{10,11}$"41999999999"
Client status
ACTIVE, INACTIVE "ACTIVE"
Company ID that owns this client (format: comp_{cuid2})
"comp_clx9876543210fedcba"
Client creation timestamp
"2025-02-03T10:00:00Z"
Client last update timestamp
"2025-02-03T10:00:00Z"
Client postal code (CEP)
"80215100"
Client street address
"Rua Engenheiros Rebouças"
District/neighborhood
"Rebouças"
Street number
"2000"
Address complement (line 1)
"Green apartment"