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
    • Upload CSF PDF to create or update client
      POST
  • 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
    • List payment complement invoices
      GET
    • Get payment complement invoice
      GET
    • Get invoice files
      GET
    • Cancel invoice
      DELETE
  • Payments
    • Payments API Guide
    • List payments
    • Get payment
    • Request payment
    • Register payment
    • Mark payment as paid
    • Refund payment
    • Cancel payment
  • 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
    • Upload SAT CSD certificates
  • Users
    • Users API Guide
    • List users
    • Get user
    • Update user
    • Create user
    • Reset user password
    • Generate login link
  • 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

Upload CSF PDF to create or update client

POST
https://api.gigstack.io/v2/clients/csf
Upload a CSF (Constancia de Situación Fiscal) PDF file from SAT to automatically extract fiscal information and create a new client or update an existing one.
How it works:
1.
Upload the CSF PDF file as multipart/form-data
2.
The system extracts RFC and CIF from the PDF
3.
Validates the fiscal information against SAT
4.
Creates a new client or updates an existing one with the fiscal data
Query Parameters:
client_id (optional): If provided, updates the existing client. If omitted, creates a new client.
Extracted Information:
Legal name (Razón Social)
RFC (Tax ID)
Fiscal regime (Régimen Fiscal)
Fiscal type (company/individual)
Fiscal status
Complete address (street, exterior/interior number, neighborhood, city, state, zip code)
gigstack Connect: Create or update clients for other teams using the team parameter.

Request

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

Body Params multipart/form-data

Responses

🟢200OK
application/json
Client updated successfully with CSF data
Body

🟢201Created
🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gigstack.io/v2/clients/csf' \
--form 'file=@""'
Response Response Example
200 - Success Example
{
    "message": "Client updated with CSF data",
    "data": {
        "id": "client_1234567890",
        "name": "Empresa Ejemplo SA de CV",
        "legal_name": "Empresa Ejemplo SA de CV",
        "tax_id": "EEM010101ABC",
        "rfc": "EEM010101ABC",
        "tax_system": "601",
        "address": {
            "street": "Av. Reforma",
            "exterior": "123",
            "neighborhood": "Centro",
            "city": "Ciudad de México",
            "state": "CDMX",
            "zip": "06000",
            "country": "MEX"
        },
        "is_valid": false,
        "livemode": false,
        "created_at": 1677651234,
        "team": "team_1234567890",
        "owner": "user_1234567890",
        "from": "api",
        "metadata": {
            "rfc": "EEM010101ABC",
            "fiscal_type": "company",
            "fiscal_status": "Activo"
        }
    }
}
Modified at 2025-12-01 22:41:05
Previous
Delete client
Next
Services API Guide
Built with