team
parameter.curl --location --request POST 'https://api.gigstack.io/v2/clients?team' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Juan Pérez García",
"email": "juan.perez@ejemplo.com",
"company": "Empresa SA de CV",
"phone": "+52 55 1234 5678",
"legal_name": "Juan Pérez García",
"tax_id": "PEGJ800101ABC",
"use": "P01",
"tax_system": "601",
"address": {
"country": "Mexico",
"street": "Av. Insurgentes Sur",
"zip": "03100",
"city": "Ciudad de México",
"state": "CDMX",
"exterior": "123",
"interior": "4B",
"municipality": "Benito Juárez",
"neighborhood": "Del Valle"
},
"bcc": [
"admin@empresa.com"
],
"metadata": {
"custom_field": "value",
"department": "sales"
},
"defaults": {
"keep_full_legal_name": false,
"issue_automatic_invoices": false,
"issue_invoiceable_receipts": true
}
}'
{
"message": "Client created successfully",
"data": {
"id": "client_1234567890",
"name": "Juan Pérez García",
"email": "juan.perez@ejemplo.com",
"tax_id": "PEGJ800101ABC",
"tax_system": "601",
"legal_name": "Juan Pérez García",
"address": {
"street": "Av. Insurgentes Sur 123",
"zip": "03100",
"city": "Ciudad de México",
"state": "CDMX",
"country": "MEX"
},
"is_valid": true,
"livemode": true,
"created_at": 1677651234,
"team": "team_1234567890",
"owner": "user_1234567890",
"from": "api"
}
}