Discussions

Ask a Question
Back to All

API Call: Get all order files/documents for a given ID of an order

The API reference has a document https://roserocket.readme.io/reference/get-order-files for this but it appears to just be a duplicate of leg article with the URL adjusted (the title says leg) https://platform.roserocket.com/api/v1/customers/{customerID}/orders/{orderID}/files

When I query all I get back is "order_files" instead of a file or array of file URLs. With PoD (https://roserocket.readme.io/reference/get-order-proof-of-delivery) and PoP (https://roserocket.readme.io/reference/get-order-proof-of-pickup) API call you get one merged PDF file of whatever was uploaded with this metadata which is nice.

I seek to retrieve all files upon a webhook "Order Delivered" and upload them to a customer in my iPaaS solution (Make). PoP and PoD were straight forward.

If there's something more complex with the data model where I'm going to need to actually do everything on a leg basis as well I would appreciate any information or advice. It'd be really nice to have an API GET that just grabs EVERYTHING file wise from an order in one call instead of having to perform individual API calls.