Discussions
"Orders for this org/customer must be quoted before dispatch" error when calling CreateBookedOrder
Hi Roserocket support,
I'm trying to directly create an order in the booked status using <https://roserocket.readme.io/v1.0/reference/create-booked-order>.
When I do a test call to this endpoint, I get "Orders for this org/customer must be quoted before dispatch". I have some questions about this:
1. Am I able to change the customer's settings so that I can call the create-booked-order endpoint without this error? If so, what setting would that be?
2. How would I normally get around this issue? Should I first call Create Order (<https://roserocket.readme.io/v1.0/reference/create-order>) , and then call Book an Existing Order (<https://roserocket.readme.io/v1.0/reference/book-existing-order>) to move the order to Booked status?
Posted by Michael T about 2 months ago
Is it possible to get order documents via API?
Hi Roserocket support,
In my Roserocket account, under the Orders tab, when I click an order I see a Documents section. For one of my orders, I have some documents listed there which are uploaded. When I try to get the order files via API (I am using <https://roserocket.readme.io/v1.0/reference/get-order-files>), I put in the order ID & customer ID, but then I got an empty API response:
{
"order_files": \[]
}
Is this the intended behavior? If so, is there any way to get an order's Documents via API? (Either downloading the document directly, or getting a link to it)
Posted by Michael T about 2 months ago
Do API calls trigger webhooks?
i.e. should CreateOrder API call trigger an orderCreated webhook?
Posted by Michael T about 2 months ago
Invalid grant type when calling api to get bearer token
Hi,
I am using the oauth2 endpoint <https://auth.roserocket.com/oauth2/token> to get a bearer token. Per comments on this board my post request has the following body
<br />
{
"grant_type": "password",
"username": "[[email protected]](mailto:[email protected])",
"password": "<pwd>",
"client_id": "<client-id>",
"client_secret": "<client-secret>"
}
<br />
This is the message I get
<br />
{
"errors": [
{
"message": "Invalid grant type"
}
]
}
Posted by Vishal Bamba about 2 months ago
Webhooks not working
Hi!
Since yesterday, webhooks (event orders) have stopped working, either messages arrive with a very long delay, or they don’t arrive at all.
Posted by Maks about 2 months ago
Search Manifest
According to the API documentation (<https://roserocket.readme.io/v1.0/reference/find-manifests>), when I search for manifests using one of the support parameters (<https://platform.roserocket.com/api/v1/manifests>), I should receive an orders array. However, all I get is manifest details.
Posted by null about 2 months ago
manifests or master_trips?
Hi,
I'm seeing some inconsistent behavior with the v1.0 API. The documentation indicates this call to get a manifest:
<https://platform.roserocket.com/api/v1/manifests/{manifestID}>
This returns a 404
However this returns data:
<https://platform.roserocket.com/api/v1/manifests/{manifestID}/followers> so the api here looks partially implemented
Looking at the calls the GUI is making, I see a number of api calls to:
<https://platform.roserocket.com/api/v1/master_trips/{manifestID}/>\* for the same manifest id
<https://platform.roserocket.com/api/v1/master_trips/{manifestID}> returns manifest data but I can't find any reference to master_trips in the API documentation.
Is <https://platform.roserocket.com/api/v1/master_trips/>\* a supported call?
I should also note, we aren't using platform.roserocket.com but rather <testingsubdomain>.roserocket.com
I appreciate the help.
Posted by Serge B about 2 months ago
Error when attempting to exchange authorization code for token
My authorization request returns this response:
Found. Redirecting to /u/login?state=hKFo2SBqWFB3ZDYyRVZHN0dadnNpZNkgMDd2dktvRWlqWEFUVmFDRXNZczZpZEJmQjFZc28zY1I
(I shortened the string above for brevity and security.)
Is the long string following "state=" in that response my "authorization code"? If so, why is it preceded by "state="? Either way, is that the "code=" value I should put in the cURL I subsequently send to <https://a.roserocket.com/oauth/token> to obtain a token? I tried that, but I then get this error response:
{"error":"invalid_grant","error_description":"Invalid authorization code”}
I'm generally confused about "state" vs "code" and what those values should be and how they relate to each other.
Can someone help me figure out what I'm doing wrong?
Posted by null 2 months ago
API Integration Question
I have a couple of quick questions around the Rose Rocket API. Specifically, I’m using v1 of the API.
• Authentication: I’m able to pull a bearer token from the browser and use that to test but I’m having trouble generating a token. I think it’s probably the endpoint I’m trying to hit. In the postman collection, the auth endpoint is:
auth.roserocket.com/oauth2/token. My guess is that this endpoint probably only works for production. Is there a different auth endpoint for the sandbox? Are v1 api calls are hitting ftntest.roserocket.com/api/v1 (which works)
• I’ve attached the JSON from an order in the test environment (retrieved through a get call). There are a number of total columns that are showing nulls. We need totals for weight, packages and skids for this integration. As a workaround I would have to iterate through the objects in the commodities array to calculate totals. Should these totals be populated in the JSON:
"total_weight_lb": null,
"total_weight_kg": null,
"total_dims_feet": null,
"total_dims_skids": null,
"total_linear_feet": null,
"total_mixed": null,
"total_containers_converted": null,
"total_cartons": null,
"total_skids": null,
"total_bundles": null,
"total_packages": null,
"total_containers": null,
"total_pallets": null,
"total_crates": null,
Posted by Jonah Dwyer 2 months ago
API events trigger
We currently have our eld provider geotab integrated with RR for the purpose of load tracking. We need to send that information to our clients API system.
When I assign an asset to the load/order will RR start to send location data about the asset and load/order and if so where do I access that data? Is is it a webhook?
Thank you.
Posted by Lanfah Theriault 2 months ago