Discussions
Create Booked Order endpoint lists billing as required but wasn't actually required
Hi RR support,
I'm using the create booked order endpoint (<https://roserocket.readme.io/v1.0/reference/create-booked-order>). The API docs list "billing" as "required". However I tried a POST request where I did not specify billing in the JSON, but it still worked (the order that was created looks like it got the billing address from the customer info that already exists in Roserocket).
<br />
Just checking if this is the intended behavior, since I'm planning to not provide a billing object in my API calls from my application, but I also don't want my app to break if later on Roserocket starts validating that the billing object is there.
Posted by null about 2 months ago
Set ETA doesn't change order modified date
We're working on an integration to feed order updates to an external system. We went down the path of implementing webhooks (v1.0 API) and quickly found that there were limitations to the events supported (e.g. change in ETA and change in leg delivery window weren't covered by webhooks).
We changed our approach to polling at a fixed frequency and searching for changed orders and changed legs. This has worked for the most part except for one use case.
When Set ETA is used in the application on an order that is in a Booked status, the updated_at date on the order **does not **change. If the order is in an In-Transit state and the Set ETA & Location is used, the updated_at date on the order **does** change. This behavior looks like a bug.
Is there a workaround? How can I identify orders where the ETA has been recently set (assuming the order hasn't been changed otherwise)?
Posted by Serge about 2 months ago
"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