These docs are for v1.0. Click to read the latest docs for v2024.09.

Discussions

Ask a Question
Back to All

Is it possible to simulate the purchase of labels?

Hello,

With the production token, we get this type of response:
{"message":"There is not enough credit on your account","errors":["There is not enough credit on your account"],"labels":[],"total_cost":581.75,"available_balance":0.0}

and with the sandbox one, this:
{"message":"Shipments not found or labels already requested: ESHK932303...","errors":["Shipments not found or labels already requested: ESHK932303..."],"labels":[],"total_cost":null,"available_balance":0.0}

When creating the shipment (by using the production token), buy_label and buy_label_synchronous are false.
Thank you!