Pallet Calculation API: Add Pallet99 to Your ERP or Online Shop

Pallet Calculation API: Add Pallet99 to Your ERP or Online Shop

Integrations

Pallet Calculation API: Add Pallet99 to Your ERP or Online Shop

How to calculate an order's pallets from your own software: one POST /v1/pack request with the order lines, one JSON response with the pallets, heights, weights and the position of every box. In this video: the first request with the demo key, the response field by field, units, weights, SmartFit, SVG images, errors, limits and access keys.

4:52

The video loads from YouTube (Google) only when you press play.

Video in Italian.

Chapters

Introduction

Where the API helps

The first request

The response

The options

From trial to production

Try it with your own boxes

The calculator is free and needs no account: enter sizes and quantities, and in seconds you get the pallets, heights, weights and a 3D view.

Read more

The Pallet99 calculator answers a person. The API answers your software: same question, how many pallets do I need, and the same answer, in JSON.

Three typical cases. A B2B online shop that has to show the pallet freight cost at checkout. An ERP that, when an order is confirmed, records how many pallets it is, how tall and how heavy. A WMS that gives the warehouse the list of boxes on each pallet.

In all three the flow is the same: you send the order lines, and you get back the pallets, with heights, weights and the position of every box.

The quickest way to try it is the interactive documentation, linked from the API page of the site. It opens already authorised with a public demo key, and with a sample request ready to go.

The request is a JSON object. The pallet: EUR here. The shipment's references, for example the order number. And the lines: name, length, width, height, weight and quantity. Here, two cartons of sixty by forty by thirty and a drum of fifty by fifty by ninety.

Each line can also carry the article data from your ERP: code, description and unit of measure. Pallet99 doesn't use them for the calculation, but returns them on every box, so in the response you know straight away which article is which.

Click "Try it out" and "Execute". With the demo key the response is a fixed example, with "demo: true", but it has exactly the shape of the real one.

At the top there's the summary: one pallet, three boxes placed, no box left out, 104 kilos in total.

Then, for every pallet, two separate blocks. "pallet" is the pallet used, with its sizes and max load. "load" is the calculated load: ninety centimetres tall, 104.4 with the base, 104 kilos, just over twenty-one percent of the space.

And then every box: the name you sent, the line it comes from and its copy number, its position on the pallet and its size as placed. The second carton is turned: "rotated" is true, and "placed_size" shows the size after the rotation.

A rule that makes integration simpler: in this API the same name never means two things. The sizes you send and the size of the placed box have different names, and so do the requested pallet, the pallet used and the load.

Units: millimetres, centimetres, metres or inches, kilos or pounds. You declare them once in "units", and they apply to the whole request and the whole response. Field names don't change.

The pallet: a standard type, the name of a pallet your company saved on the site, or the sizes and max load right in the request.

Weights are optional, but all or none: without weights the max load isn't checked and the output weights are null. If weight is mandatory for you, "require_weight" rejects requests without it.

With "engine" set to smartfit you use the engine that tries every rotation and usually saves pallets. With "images" set to true you also get an SVG drawing of every pallet, for the document or the email to the customer.

Errors are standard HTTP codes. The most useful to handle: 422 for invalid data, with the field that's wrong; 413 when a request has too many boxes, to split; 429 when you go over the limit, with "Retry-After" telling you how many seconds to wait.

Real calls need the Business plan. In the reserved area, on the "API settings" page, an administrator creates an access key: the secret is shown only once, and goes into your system.

The key is exchanged for a session token, which you then send in the "Authorization" header. The API page has the full sample in curl, Python, JavaScript, PHP and C#.

The same page shows the requests used in the period and the log of the last ninety days of calls: time, key, status, boxes, pallets, duration.

The Business plan includes sixty requests per minute and ten thousand a month, and every response says how many are left. For higher volumes there's Enterprise, made to measure.

And the API is versioned: "v1" stays stable. Breaking changes will come in a new version, without breaking your integration.

In short: one request with the order lines, one response with the pallets and every box. Try the demo key at pallet99.com, on the API page: it takes five minutes.

The link is in the description. See you next time.

We write to you when a new video comes out, nothing else. You don't need it to watch the videos, and you can unsubscribe at any time.

We use your email only to tell you about new webinars.

More webinars

Pallet load planning in 3D for boxes of any size, in the browser or through the API.

Product

Free tools

API integration

Support

Legal

Cookies

© Pallet99 · Pallet99 · - · VAT no. IT01890610437