curl --request GET \
--url https://qubesync.com/api/v1/queued_requests/{request_id} \
--header 'Authorization: Basic <encoded-value>'{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"state": "response_received",
"webhook_state": "succeeded",
"request_xml": "<QBXML><QBXMLMsgsRq onError='stopOnError'><CustomerQueryRq requestID='1'><MaxReturned>1</MaxReturned></CustomerQueryRq></QBXMLMsgsRq></QBXML>",
"response_xml": "<QBXML><QBXMLMsgsRs statusCode='0' statusSeverity='Info' statusMessage='Status OK'><CustomerQueryRs requestID='1' statusCode='0' statusSeverity='Info' statusMessage='Status OK'><CustomerRet><ListID>80000001-1234567890</ListID><Name>Sample Customer</Name></CustomerRet></CustomerQueryRs></QBXMLMsgsRs></QBXML>",
"webhook_url": "https://example.com/webhooks/qube_sync",
"webhook_attempts": [
{
"attempted_at": "2023-01-01T12:00:05Z",
"response": "success"
}
],
"links": {
"self": "/api/v1/queued_requests/550e8400-e29b-41d4-a716-446655440000",
"ui": "/app/queued_requests/550e8400-e29b-41d4-a716-446655440000",
"connection_ui": "/app/connections/123e4567-e89b-12d3-a456-426614174000"
},
"inserted_at": "2023-01-01T12:00:00Z",
"updated_at": "2023-01-01T12:00:05Z"
}
}Retrieves detailed information about a specific queued request, including its current state, request/response data, and any associated errors. This endpoint can be used to poll for request completion or to check the status of a long-running operation.
curl --request GET \
--url https://qubesync.com/api/v1/queued_requests/{request_id} \
--header 'Authorization: Basic <encoded-value>'{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"state": "response_received",
"webhook_state": "succeeded",
"request_xml": "<QBXML><QBXMLMsgsRq onError='stopOnError'><CustomerQueryRq requestID='1'><MaxReturned>1</MaxReturned></CustomerQueryRq></QBXMLMsgsRq></QBXML>",
"response_xml": "<QBXML><QBXMLMsgsRs statusCode='0' statusSeverity='Info' statusMessage='Status OK'><CustomerQueryRs requestID='1' statusCode='0' statusSeverity='Info' statusMessage='Status OK'><CustomerRet><ListID>80000001-1234567890</ListID><Name>Sample Customer</Name></CustomerRet></CustomerQueryRs></QBXMLMsgsRs></QBXML>",
"webhook_url": "https://example.com/webhooks/qube_sync",
"webhook_attempts": [
{
"attempted_at": "2023-01-01T12:00:05Z",
"response": "success"
}
],
"links": {
"self": "/api/v1/queued_requests/550e8400-e29b-41d4-a716-446655440000",
"ui": "/app/queued_requests/550e8400-e29b-41d4-a716-446655440000",
"connection_ui": "/app/connections/123e4567-e89b-12d3-a456-426614174000"
},
"inserted_at": "2023-01-01T12:00:00Z",
"updated_at": "2023-01-01T12:00:05Z"
}
}Use your app's API_KEY as the username, and leave the password blank
The unique identifier of the queued request
"550e8400-e29b-41d4-a716-446655440000"
Queued request found and returned successfully
Show child attributes
Unique identifier for the queued request
"550e8400-e29b-41d4-a716-446655440000"
Current state of the queued request
waiting, retryable, ticketed, sent, response_received, error, discarded The QBXML request to be processed
"<QBXML><QBXMLMsgsRq onError='stopOnError'><CustomerQueryRq requestID='1'><MaxReturned>100</MaxReturned></CustomerQueryRq></QBXMLMsgsRq></QBXML>"
ID of the connection this request belongs to
"123e4567-e89b-12d3-a456-426614174000"
State of the webhook delivery. Not applicable if webhook_url was not provided.
not_applicable, pending, succeeded, failed The request payload in JSON format (alternative to request_xml)
{
"version": "13.0",
"request": {
"name": "CustomerQueryRq",
"attributes": { "request_id": "1" },
"children": [{ "name": "MaxReturned", "text": "100" }]
}
}The QBXML response from QuickBooks
"<QBXML><QBXMLMsgsRs statusCode='0' statusSeverity='Info' statusMessage='Status OK'><CustomerQueryRs requestID='1' statusCode='0' statusSeverity='Info' statusMessage='Status OK'><CustomerRet><ListID>80000001-1234567890</ListID><Name>Sample Customer</Name></CustomerRet></CustomerQueryRs></QBXMLMsgsRs></QBXML>"
The response payload in JSON format, if request is completed
URL to receive a webhook when the request is completed
"https://example.com/webhook"
Error message if webhook delivery failed
Show child attributes
"/api/v1/connections/123e4567-e89b-12d3-a456-426614174000/queued_requests/550e8400-e29b-41d4-a716-446655440000"
"/app/queued_requests/550e8400-e29b-41d4-a716-446655440000"
"/app/connections/123e4567-e89b-12d3-a456-426614174000"
When the request was created
"2023-01-01T12:00:00Z"
When the request was last updated
"2023-01-01T12:00:01Z"