gigstack API
  1. Catalogs
gigstack API
  • gigstack API, your fiscal infraestructure
  • Ping
    • Ping
    • Ping API (GET)
      GET
    • Ping API (POST)
      POST
    • Ping API (PUT)
      PUT
    • Ping API (DELETE)
      DELETE
  • Payments
    • Payments
    • Create a payment
      POST
    • List payments
      GET
    • Get payment by ID
      GET
  • Invoices
    • Invoices
    • Create an invoice
      POST
    • List invoices
      GET
    • Get invoice by ID
      GET
  • Clients
    • Clients
    • Create a client
      POST
    • List clients
      GET
    • Get client by ID
      GET
  • Services
    • Services
    • Create a service
      POST
    • List services
      GET
    • Get service by ID
      GET
  • Receipts
    • Receipts
    • Create a receipt
    • List receipts
    • Get receipt by ID
    • Update receipt
    • Delete receipt
  • Webhooks
    • Webhooks
    • Create a webhook
    • List webhooks
    • Get webhook by ID
    • Delete webhook
  • Catalogs
    • Catalogs
    • List catalogs
      GET
    • Get catalog by ID
      GET
  • Connect
    • Connect
    • Create a team
    • List teams
    • Get team by ID
    • Update team
    • Get team onboarding URL and connection status
    • Get team members
    • Update team members
    • Remove team members
  1. Catalogs

Catalogs

Catalogs#

The Catalogs API provides access to system catalogs and reference data, enabling you to retrieve standardized information for use in your applications.

Overview#

Use the Catalogs API to:
Access standardized reference data
Retrieve country, state, and currency information
Get tax rate information
Access industry and category classifications
Integrate with standardized data sets

Endpoints#

GET /v2/catalogs#

List all available catalogs.
Authentication Required: Yes

Response#

Success Response (200 OK):
{
  "data": [
    {
      "id": "countries",
      "name": "Countries",
      "description": "List of countries with ISO codes",
      "version": "1.0",
      "lastUpdated": "2024-01-01T00:00:00.000Z"
    },
    {
      "id": "currencies",
      "name": "Currencies",
      "description": "List of currencies with ISO codes",
      "version": "1.0",
      "lastUpdated": "2024-01-01T00:00:00.000Z"
    },
    {
      "id": "mexican-states",
      "name": "Mexican States",
      "description": "List of Mexican states and territories",
      "version": "1.0",
      "lastUpdated": "2024-01-01T00:00:00.000Z"
    }
  ],
  "message": "Catalogs retrieved successfully"
}

GET /v2/catalogs/{catalogId}#

Get entries from a specific catalog.
Authentication Required: Yes

Query Parameters#

ParameterTypeDescription
limitnumberNumber of results to return
offsetnumberNumber of results to skip
searchstringSearch term for filtering

Response#

Success Response (200 OK):
{
  "data": [
    {
      "code": "MX",
      "name": "Mexico",
      "isoCode": "MX",
      "currency": "MXN",
      "phoneCode": "+52"
    },
    {
      "code": "US",
      "name": "United States",
      "isoCode": "US",
      "currency": "USD",
      "phoneCode": "+1"
    }
  ],
  "catalog": {
    "id": "countries",
    "name": "Countries",
    "description": "List of countries with ISO codes"
  },
  "message": "Catalog entries retrieved successfully",
  "totalResults": 195,
  "hasMore": true,
  "next": "eyJvZmZzZXQiOjIwfQ=="
}

Available Catalogs#

Countries Catalog#

Access country information with ISO codes:
Response Structure:
{
  "code": "MX",
  "name": "Mexico",
  "isoCode": "MX",
  "currency": "MXN",
  "phoneCode": "+52",
  "region": "Americas"
}

Currencies Catalog#

Access currency information:
Response Structure:
{
  "code": "MXN",
  "name": "Mexican Peso",
  "symbol": "$",
  "decimals": 2,
  "isActive": true
}

Mexican States Catalog#

Access Mexican states and territories:
Response Structure:
{
  "code": "CDMX",
  "name": "Ciudad de México",
  "abbreviation": "CDMX",
  "region": "Centro",
  "postalCodePattern": "^[0-9]{5}$"
}

Tax Rates Catalog#

Access current tax rates:
Response Structure:
{
  "country": "MX",
  "type": "VAT",
  "rate": 16.0,
  "description": "Impuesto al Valor Agregado",
  "effectiveDate": "2024-01-01T00:00:00.000Z"
}

Industry Categories Catalog#

Access industry classification codes:
Response Structure:
{
  "code": "541511",
  "name": "Custom Computer Programming Services",
  "category": "Technology",
  "sector": "Professional Services"
}

Code Examples#

List All Catalogs#

JavaScript/Node.js:

Get Countries with Search#

JavaScript/Node.js:
Python:

Build Dynamic Forms#

Use catalog data to populate form dropdowns:
JavaScript Example:

Integration Examples#

Client Form Validation#

Use catalog data for form validation:

Tax Rate Calculation#

Use tax rates catalog for calculations:

Caching Strategies#

Implement caching for better performance:
JavaScript Example:

Error Handling#

Handle catalog API errors gracefully:

Best Practices#

1.
Caching: Cache catalog data to reduce API calls
2.
Fallback Data: Provide fallback data for critical catalogs
3.
Search Optimization: Use search parameters to reduce data transfer
4.
Pagination: Handle pagination for large catalogs
5.
Version Monitoring: Monitor catalog versions for updates
6.
Error Handling: Implement robust error handling for catalog failures

Next Steps#

Use catalogs in client forms
Integrate tax rates with invoicing
Build dynamic service categories
Modified at 2025-06-11 05:00:30
Previous
Delete webhook
Next
List catalogs
Built with