Discussions
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,