cURL
curl --request POST \ --url https://qubesync.com/api/v1/connections \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "redirect_url": "https://myapp.com/quickbooks-setup-callback" }'
{ "data": { "id": "123e4567-e89b-12d3-a456-426614174000", "app_id": "550e8400-e29b-41d4-a716-446655440000", "username": "550e8400-e29b-41d4-a716-446655440001", "name": "My Customer Inc.", "last_connected_at": null, "company_file": null, "type": "standard", "qbxml_version": null, "quickbooks_product_name": null, "redirect_url": "https://myapp.com/quickbooks-setup-callback", "links": { "self": "/api/v1/connections/123e4567-e89b-12d3-a456-426614174000", "ui": "/app/connections/123e4567-e89b-12d3-a456-426614174000", "onboarding": "https://qubesync.com/onboarding/abcdef123456" }, "inserted_at": "2023-01-01T12:00:00Z", "updated_at": "2023-01-01T12:00:00Z" } }
Creates and returns a new connection for the authenticated application. Returns an onboarding URL for the user to complete the QuickBooks setup process.
Show child attributes