Discussions
Creating spot quote via Api
Hi Team,
We have run into an issue creating spot quotes.
We authenticate successfully using an rr_token (Bearer token) against:
https://platform.roserocket.com/api/v1/
This authentication works correctly for creating orders and generating quotes.
Following the v1 API documentation, we attempted to create spot quotes using:
POST /api/v1/customers/{customerID}/orders/{orderID}/spot_quote
However, this endpoint does not work for our organization. We consistently receive server errors (for example, "Org carrier not found") even when supplying the required service and partner carrier information.
To troubleshoot, we inspected the network requests made by the Rose Rocket web application while manually creating and saving a spot quote. We found that the UI does not appear to call the documented spot_quote endpoint. Instead, it performs the following requests:
POST /api/v1/orders/{orderID}/quotesV2 (creates the quote)
PUT /api/v1/orders/{orderID}/quotesV2/{quoteID} (saves the quote after the user enters pricing)
When we attempt to call these quotesV2 endpoints programmatically using the same Bearer token (rr_token) that works against platform.roserocket.com, we receive a 401 Unauthorized response.
Could you please clarify:
- Are the quotesV2 endpoints supported for external integrations?
- How should we authenticate programmatically against our organization subdomain (atlanticexworks.roserocket.com)?
- Can the Org App key/secret (Account Settings → Org Apps) be used for authentication to these endpoints?
- If so, what is the correct authentication flow and Authorization header format?
- If quotesV2 is an internal endpoint, is there a supported public API for creating and updating spot quotes that follows the same workflow as the UI?
At the moment, the documented spot_quote endpoint does not appear to replicate the behavior of the web application, so we're unsure which API is the supported approach for automating spot quote creation.
Any guidance would be greatly appreciated.
Thank you!
