gigstack API
  1. Clients
gigstack API
  • Welcome to gigstack API
  • gigstack Connect API Guide
  • Migrar de API v1 a v2 de gigstack
  • Clients
    • Clients API Guide
    • List clients
      GET
    • Get client
      GET
    • Update client
      PUT
    • Create client
      POST
    • Validate client fiscal information
      POST
    • Get client customer portal access token
      POST
    • Stamp pending receipts
      POST
    • Delete client
      DELETE
  • Services
    • Services API Guide
    • List services
      GET
    • Get service
      GET
    • Update service
      PUT
    • Create service
      POST
    • Delete service
      DELETE
  • Invoices
    • Invoices API Guide
    • Income
      • List income invoices
      • Get income invoice
      • Create income invoice
    • Egress
      • List egress invoices
      • Get egress invoice
      • Create egress invoice
    • Get invoice files
      GET
    • Cancel invoice
      DELETE
  • Payments
    • Payments API Guide
    • List payments
      GET
    • Get payment
      GET
    • Request payment
      POST
    • Register payment
      POST
    • Mark payment as paid
      POST
    • Refund payment
      POST
    • Cancel payment
      DELETE
  • Receipts
    • Receipts API Guide
    • List receipts
    • Get receipt
    • Create receipt
    • Stamp receipt
    • Cancel receipt
  • Teams
    • Teams API Guide
    • List teams
    • Get team
    • Get team integrations
    • Get team series
    • Get team onboarding URL
    • Update team
    • Update team series
    • Update team settings
    • Create team
    • Add team member
    • Remove team member
    • Create team series
  • Users
    • Users API Guide
    • List users
    • Get user
    • Update user
    • Create user
    • Reset user password
  • Catalogs
    • Tax Regimes Catalog (Régimen Fiscal)
    • Payment Forms | Formas de pago
    • CFDI Usage Catalog (Uso CFDI)
    • Payment Methods Catalog (Método de Pago)
    • Months and Bimesters Catalog (Meses y Bimestres)
    • Invoice Relationships Catalog (Relación entre Facturas)
  1. Clients

Create client

POST
https://api.gigstack.io/v2/clients
Create a new client with fiscal information for Mexican tax compliance.
gigstack Connect: Create clients for other teams using the team parameter.

Request

Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Query Params

Body Params application/jsonRequired

Examples

Responses

🟢200Correcto
application/json
Client created successfully
Body

🟠400Solicitud incorrecta
🟠401No autenticado
🟠403Permiso insuficiente
🔴500Error interno del servidor
Request Request Example
Shell
JavaScript
Java
Swift
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
    }
}'
Response Response Example
200 - Éxito
{
    "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"
    }
}
Modified at 2025-10-09 23:51:05
Previous
Update client
Next
Validate client fiscal information
Built with