What is a Request ID?
A request ID is a unique identifier assigned to every API request. It helps both you and Busha support team pinpoint specific API calls for debugging and troubleshooting. Format:req_ followed by an alphanumeric string
Example: req_JfPBXEC5rLHc
Validity: Request IDs are available for 21 days after the request is made.
How to Find the Request ID
The request ID is returned in the response headers of every API call under theX-Request-Id header.
Example Request
-i flag includes response headers in the output.
Example Response Headers
req_JfPBXEC5rLHc
Viewing Request IDs in Code
When to Use Request IDs
Reporting API Errors
When contacting Busha support about API issues, always include the request ID. This helps our team quickly locate the specific request in our logs. Example support message:
“I’m getting a 500 error when creating a quote. Request ID: req_JfPBXEC5rLHc”
Debugging Failed Requests
If an API call fails or returns unexpected results, save the request ID along with your error logs for easier debugging.Tracking Specific Operations
For critical operations, store the request ID alongside the resource ID (e.g., transfer ID, quote ID) for complete audit trails.21-Day Retention: Request IDs are only available for 21 days. Don’t rely on them for long-term auditing.