📦 ProStarParcel Shipping Label Upload

This action retrieves a shipping label for a specific ProStarParcel shipment and uploads the resulting PDF file. The label file is returned as a downloadable URL, which can be used in emails, workflows, or customer notifications.

You must have already booked the shipment using the Book Shipment endpoint. The label can then be retrieved using the Retrieve Shipping Label endpoint.

Inputs

In order to use the action in your flow you need to provide it with the following inputs:

InputTypeDescription
envStringEnvironment region to upload the file to (eu or us)
customerIdStringProStarParcel customer ID
bookNumberStringBook number of the shipment
prostarTokenStringProStarParcel API token (Bearer token)
flowIdStringID of the DG flow
external IdStringExternal execution ID
filenameString(Optional) Custom file name for the PDF label (e.g. label-12345.pdf)
DG apiKeyStringDG API key for uploading the file
DG apiSecretStringDG API secret for uploading the file

Outputs

InputTypeDescription
SuccessBooleanBook number of the shipment
fileUrlStringURL of the uploaded label PDF (can be used or shared)

📘 Example

Input:

{ "customerId": "10000091", "bookNumber": "16137509", "filename": "label-16137509.pdf" }

Output:

{ "success": true, "fileUrl": "https://dg-flow-media.../label-16137509.pdf" }