Discussions
Authentication returned "token contains an invalid number of segments"
Hi RoseRocket engineering team,
I am trying to set my Authentication up on v2 and am running into an invalid token error.
**Here is the stack trace:**
ResponseError: {"status":401,"headers":{"content-type":"application/json","retry-after":null},"content":"{\"errors\":[{\"message\":\"token contains an invalid number of segments\"}]}\\n","request":{"url":"<https://network.roserocket.com/api/v1/me?client_id=[client-id-redacted-here]&client_secret=[secret-redacted-here]&token=[token-redacted-here]"}}>
at \_throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:13:11)
at outResp.throwForStatus (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/prepare-response.js:70:5)
at throwForStatusMiddleware (/var/task/node_modules/zapier-platform-core/src/http-middlewares/after/throw-for-status.js:5:14)
at Object.<anonymous> (/var/task/node_modules/zapier-platform-core/src/middleware.js:80:37)
<br />
I have created an OAuth application, and am passing the client secret + client id values, and I am getting an invalid AccessToken response, so it basically is unable to be decoded. We ran this through jwt.io and the response is that it is not a valid JSON object.
Any advice here?
Posted by Sean Smith 19 days ago
Login Activity
Hello,
Is there a way to retrieve a list of users (i.e. some combination of first/last name or email) that have logged in to Rose Rocket over a 90 period? We need this info for SOC2 audit, and more generally, every 6 months to remain compliant. I couldn't find a direct way to do this in the application even though I am an admin.
Thanks!
Posted by N M 24 days ago
Possible to get "other team members" through API?
Hi RR support,
On an order's page, for completed orders, there's a Pickup/Deliver section above the "Details" block.
That section has the driver name, and for us sometimes there's an "Other team members" section populated which may have another name there.
Is it possible to get the people under "Other team members" via the API?
(I found that it is possible to get the driver via API by getting the Order with the order ID, then getting the Leg based on the order's current_leg_id field, then getting the Manifest based on the leg's manifest_id field, and the manifest has the driver user ID. But I could not find out how to get the "Other team members" for my order via the API.)
Thanks!
Posted by null 26 days ago
Difference between two edit order API endpoints
Hi RR support, I notice there are two different API endpoints for editting an order:
<https://roserocket.readme.io/v1.0/reference/revise-order>
<https://roserocket.readme.io/v1.0/reference/edit-order-after-dispatched>
I'm a little confused, does the fact that there's an "edit order after dispatched" endpoint mean that "/revise-order" doesn't let you edit the order after the order has been dispatched?
In other words, does /revise-order always let you edit the order no matter what the current status of the order is?
Thanks!
Posted by null about 1 month ago
Difference between pickup_start_at vs pickup_appt_start_at
Hi RR team, in the Create Booked Order endpoint (<https://roserocket.readme.io/v1.0/reference/create-booked-order>), what's the difference between the pickup_start_at and pickup_appt_start_at fields?
Posted by null about 1 month ago
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 1 month 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 1 month 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 1 month 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 1 month ago
Do API calls trigger webhooks?
i.e. should CreateOrder API call trigger an orderCreated webhook?
Posted by Michael T about 1 month ago