Correlation IDs

Track and debug requests using correlation IDs

Every API request is assigned a unique correlation ID for tracking and debugging. This identifier helps trace requests through the system and is essential when working with support.


What is a Correlation ID?

A correlation ID is a unique identifier assigned to each API request. It appears in:

  • All API responses (correlationId field)

  • Server-side log entries

  • Error messages

  • Support tickets

Example Response:

{
  "success": true,
  "data": {
    "customer": {...}
  },
  "correlationId": "0HN7QJKV3QJ8K:00000001",
  "timestamp": "2025-10-21T14:30:00.000Z"
}

Correlation ID Format

The format combines a connection identifier with a sequential request number, making it easy to trace related requests within the same session.


Using Correlation IDs

1. Log Correlation IDs

Always log the correlation ID with your API calls for debugging:

2. Include in Error Logs

When handling errors, always include the correlation ID:

3. Include in Support Requests

When contacting support, always include:

  • The correlation ID

  • Timestamp of the request

  • Expected vs. actual behavior

Example support message:


Code Examples

C#

TypeScript

Python


Best Practices

1. Store Correlation IDs with Business Transactions

2. Include in Application Logs

Structure your logs to make correlation IDs searchable:

3. Create a Correlation ID Index

For high-volume integrations, maintain an index of correlation IDs:


Troubleshooting with Correlation IDs

When debugging an issue:

  1. Find the correlation ID from your logs or error response

  2. Note the timestamp of when the error occurred

  3. Gather context - what operation was being performed?

  4. Contact support with all this information

Support can use the correlation ID to:

  • Find the exact request in server logs

  • See what data was sent and received

  • Identify where in the processing pipeline an error occurred

  • Trace the request through multiple internal services

Last updated