gigstack API
  1. Ping
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
      POST
    • List receipts
      GET
    • Get receipt by ID
      GET
    • Update receipt
      PUT
    • Delete receipt
      DELETE
  • Webhooks
    • Webhooks
    • Create a webhook
    • List webhooks
    • Get webhook by ID
    • Delete webhook
  • Catalogs
    • Catalogs
    • List catalogs
    • Get catalog by ID
  • 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. Ping

Ping

Ping#

The Ping endpoint allows you to test your API connection and verify that your authentication is working correctly.

Overview#

Use the ping endpoint to:
Test your API key authentication
Verify API connectivity
Check API server status
Validate your integration setup

Endpoints#

GET /v2/ping#

Test API connectivity and authentication.
Authentication Required: Yes

Request#

Response#

Success Response (200 OK):
{
  "data": {
    "message": "pong",
    "timestamp": "2024-01-15T10:30:00.000Z",
    "version": "2.0.0"
  },
  "message": "API is working correctly"
}
Error Response (401 Unauthorized):
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid API key"
  },
  "message": "Authentication failed"
}

Code Examples#

JavaScript/Node.js#

Python#

PHP#

Error Codes#

CodeDescription
200Success - API is working correctly
401Unauthorized - Invalid or missing API key
429Rate limit exceeded
500Internal server error

Best Practices#

1.
Use for Health Checks: Implement ping checks in your monitoring systems
2.
Authentication Validation: Always test new API keys with ping before using other endpoints
3.
Connection Testing: Use ping to verify network connectivity to the API
4.
Rate Limiting: Be mindful of rate limits when implementing frequent health checks

Next Steps#

Once you've successfully tested your connection with the ping endpoint, you can proceed to:
Create your first payment
Manage clients
Generate invoices
Modified at 2025-06-11 04:53:10
Previous
gigstack API, your fiscal infraestructure
Next
Ping API (GET)
Built with