gigstack API
    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 client
      • Update client
      • Create client
      • Validate client fiscal information
      • Get client customer portal access token
      • Stamp pending receipts
      • Delete client
      • Upload CSF PDF to create or update client
    • Services
      • Services API Guide
      • List services
      • Get service
      • Update service
      • Create service
      • Delete service
    • 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 CFDI errors
      • List payment complement invoices
      • Get payment complement invoice
      • Get invoice files
      • Cancel invoice
    • Payments
      • Payments API Guide
      • List payments
      • Get payment
      • Request payment
      • Register payment
      • Mark payment as paid
      • Refund payment
      • Cancel payment
      • Search payments
    • 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
      • Sign manifest document
    • 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)
    • Webhooks
      • Webhooks
      • List webhooks
      • Create webhook
      • Get webhook
      • Update webhook
      • Delete webhook
    • Schemas
      • Schemas
        • ApiResponse
        • Category
        • Pet
        • Tag
        • Order
        • StandardizedSuccessResponse
        • StandardizedErrorResponse
        • ApiErrorCode
      • RequestBodies
        • UserArray
      • OrderDirection
      • ApiPublicClient
      • Client
      • DateRangeFilter
      • Service
      • ListQueryParams
      • ClientInput
      • ApiPublicService
      • ServiceInput
      • PaginationMeta
      • Invoice
      • InvoiceIncomeInput
      • Payment
      • PaymentInput
      • PaymentItem
      • InvoiceInput
      • InvoiceEgressInput
      • Team
      • PaymentAllowedMethod
      • TeamInput
      • TeamSettingsInput
      • CfdiError
      • ApiPublicPaymentProcessorDetails
      • User
      • ApiPublicPayment
      • UserInput
      • ClientAddress
      • TaxSchema
      • StandardSuccessResponse
      • RequestPaymentInput
      • RegisterPaymentInput
      • ListResponse
      • ErrorResponse
      • ApiPublicIncomeInvoice
      • ValidationErrorResponse
      • RefundPaymentInput
      • ApiPublicTeam
      • UnauthorizedError
      • MarkPaymentAsPaidInput
      • ApiPublicUser
      • NotFoundError
      • ApiPublicSearch
      • InternalServerError
      • ApiPublicThirdParty
      • ApiPublicInvoiceConfig
      • ApiPublicRefund
      • ApiPublicAutomations
      • TeamSettings
      • TaxElement
      • SeriesInput
      • Series
      • ApiPublicWebhook
      • ReceiptInput
      • WebhookInput
      • WebhookUpdateInput
      • PaymentMethodEnum
      • PaymentFormEnum
      • AutomationTypeEnum
      • ItemSchema

    InvoiceIncomeInput

    {
        "automation_type": "payment",
        "client_id": "client_1234567890",
        "client": {
            "id": "client_1234567890",
            "search": {
                "on_key": "tax_id",
                "on_value": "PEGJ800101ABC",
                "auto_create": true
            },
            "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"
            },
            "name": "Juan Pérez García",
            "company": "Empresa SA de CV",
            "phone": "+52 55 1234 5678",
            "email": "juan.perez@ejemplo.com",
            "bcc": [
                "user@example.com"
            ],
            "metadata": {
                "property1": "string",
                "property2": "string"
            },
            "legal_name": "Juan Pérez García",
            "tax_id": "PEGJ800101ABC",
            "use": "P01",
            "tax_system": "601"
        },
        "complements": [
            {
                "type": "custom",
                "data": "<xml>...</xml>"
            }
        ],
        "currency": "MXN",
        "exchange_rate": 1,
        "folio_number": 123,
        "series": "A",
        "idempotency_key": "unique_key_123",
        "items": [
            {
                "id": "service_1234567890",
                "search": {
                    "on_key": "sku",
                    "on_value": "CONS-001",
                    "auto_create": true
                },
                "description": "Consulting services",
                "sku": "CONS-001",
                "product_key": "80141503",
                "unit_key": "E48",
                "unit_name": "Servicio",
                "unit_price": 1000,
                "taxes": [
                    {
                        "base": 0,
                        "factor": "Tasa",
                        "inclusive": false,
                        "rate": 0.16,
                        "type": "IVA",
                        "withholding": false
                    }
                ],
                "taxability": "01",
                "third_party": {
                    "tax_system": "601",
                    "legal_name": "Third Party SA",
                    "zip": "03100",
                    "tax_id": "TPR800101ABC"
                }
            }
        ],
        "use": "P01",
        "related_documents": [
            {
                "relationship": "04",
                "documents": [
                    "12345678-1234-1234-1234-123456789012"
                ]
            }
        ],
        "global": {
            "periodicity": "04",
            "months": "01",
            "year": 2024
        },
        "exports": "01",
        "payment_form": "03",
        "payment_method": "PUE",
        "invoice_pdf_notes": "Additional notes for PDF",
        "addenda": "<addenda>...</addenda>",
        "return_files": true,
        "metadata": {
            "property1": "string",
            "property2": "string"
        },
        "send_email": true,
        "emails": [
            "client@example.com"
        ]
    }
    Built with