The request ID uniquely identifies the HTTP request sent from the app to the service. Create the context object and include the following code to set the request ID to be used for the data service API call:
1 2 | context = new Context(oauth, appToken, ServiceType.QBD, realmId); context.setRequestID("111222333666"); |
If the request ID is not explicitly set, the Java SDK generates a random UUID to be used in the request. For details on request ID, see REST API quick reference.
The tracking ID is used to correlate logs across the various subsystems of an application. When the tracking ID is included in the header of every outgoing request, it will be logged in every log line of the QuickBooks Online subsystems and backend services.
Create the context object and include the following code to set the tracking ID to be used for data service API call:
1 2 | context = new Context(oauth, appToken, ServiceType.QBD, realmId); context.setTrackingID(UUID.randomUUID()); |
Note
Note
The tracking Id should be in Java UUID format and should be a truly random UUID.