Error while label creating via Api (switched adresses)

Hi, im using your API for creating orders, then shipments, and saving return lables. There is an error generating labels via API - ship-to and ship-from adresses in pdf are incorrectly switched.
Screens :
Interface(top) and Pdf(bot)

Can you share the request/response, or at least the endpoint that you’re using to get this issue?


Sorry for my previous reply, i overlooked the return portion of your question.

When you create a return label for an order in Ordoro, the addresses are automatically switched based on the order.

To create a forward label, you would need to use the /shipment/shipment_id/label/generate/ endpoint (documentation link).

Hope this helps!