3PL billing
3PL billing keeps a storage rate card for each goods owner and prices a period of storage against it. An operating-company manager can preview a priced statement for one goods owner, and a goods owner can read its own rate card. It prices storage only. It does not measure how much was stored, issue an invoice, or keep the statement. Karyo prices the quantity you give it.
The capability has no page of its own. Its two settings are in System properties, and the rate card and the statement preview are available through the API.
Switch it on
A Company administrator who holds settings.manage at the Company switches it on at
Admin > Capabilities, on the row named 3PL billing. The panel previews what appears and
asks you to confirm.
Nothing bills until a rate is set. These are the two settings, as Admin > System properties shows them in the group 3PL Billing:
| Setting | What it holds | Default |
|---|---|---|
karyo.threepl.rate.storage-per-ul-day |
The amount billed for one stored unit load for one day, as a decimal such as 0.05 |
None |
karyo.threepl.currency |
The currency code the amounts are given in | USD |
If the rate is not set, storage bills at zero. A missing rate never produces a charge, and it is
not an error. If the currency is not set, it is USD.
Only an operating-company administrator who holds settings.manage can set either key. A goods
owner cannot, even an administrator of its own Business Unit. Karyo answers 403
system-property-owner-forbidden. Both rows carry an Ops-controlled label.
What appears when it is on
- In Admin > System properties, the 3PL Billing group with the two settings above.
Nothing else appears. There is no sidebar entry, page, column or floor-app entry. The rate card
and the preview routes, /api/v1/billing/rate-card and /api/v1/billing/statements/preview,
exist on every installation.
Using it
To set the rate for every goods owner, an administrator with settings.manage at the Company
opens Admin > System properties, types the value in the row and presses Save. That
stores a Company value.
To give one goods owner its own rate or currency, store a row for that Business Unit. In the
console this works for an operating-company administrator whose grant is at that Business Unit,
with that unit selected. A Company administrator can also send the value through
PUT /api/v1/system-properties/{key} with the businessUnitId in the body. A Business Unit
value wins over the Company value, which wins over the deployment's configuration. A rate is
scoped only by Business Unit. A system property has no context: the console shows none, and a
request that names one is refused with 422. See
there is no property context.
See the runtime configuration store.
To read a rate card, call GET /api/v1/billing/rate-card. It needs operations.view, which the Viewer,
Receiver, Operator, Manager and Administrator profiles hold. A goods owner reads its own card, and a request that names another unit
gets 403. An operating-company caller must add businessUnitId, and gets 400 without it. The
answer holds businessUnitId, currency and storageRatePerUnitLoadDay.
To preview a statement, call POST /api/v1/billing/statements/preview. It needs
operations.supervise, which the Manager profile holds and the Administrator profile does not.
The caller must be operating-company staff whose grant reaches the unit. Send:
businessUnitId, an active goods owner. The Company itself is refused with 404.periodStartandperiodEnd. The end must not be before the start.unitLoadDays, a whole number of zero or more. It is the total of unit loads times the days each was stored. Karyo does not work this out. It comes from your own records.
The answer has one line with the code STORAGE, the quantity, the unit rate and the amount, and
a total. The amount is the rate times the quantity, rounded half up to two decimal places. The
total is the sum of the rounded lines. Nothing is saved, so the same request later prices again at
whatever the rate is then.
If a configured rate is blank, not a number, or negative, Karyo answers 400
threepl-billing-invalid-request instead of billing zero. Karyo does not check the currency code
and does not convert between currencies. The two decimal places apply to every currency.
When you switch it off
The 3PL Billing group leaves System properties. Stored rates stay and still apply. The billing routes stay callable, and a preview still prices at the stored rate. Switching the capability off hides the settings and changes no bill. There is no rule that lets open work finish for this capability.
Next
- Administer Karyo for how settings resolve
- The runtime configuration store
- Engine capabilities
- Users, roles and permissions for the Manager and Administrator profiles