Count a delivery in
Records one delivery the destination warehouse counted in, as a stock receipt. Partial receipt is the normal case: ten left, eight arrived, two were crushed in transit. Quantities are this delivery’s counts — a second box adds to the first rather than restating it.
quantity_accepted lands on the destination’s shelf;
quantity_rejected is refused and recorded with a rejection_reason
(damaged, wrong_item, expired or other), never stocked. A
refused unit still arrived, so it counts toward the trip being over.
Omit items to count in everything still outstanding, intact.
The transfer stays partially_received while units are still on the
road, settles in received once everything has arrived, and in
over_received once more arrived than was shipped.
Required scope: write_stock (for API-key authentication).
Authorizations
Secret API key for admin access
JWT token for admin user authentication
Headers
Bearer token for admin authentication
Path Parameters
Stock transfer ID
Body
The supplier's delivery note, or the carrier's reference.
"DN-4471"
When the goods were counted in. Defaults to now.
Omit to book in everything still outstanding, intact. Naming lines, even none, records exactly what the dock counted: quantity_accepted reaches the shelf; quantity_rejected is refused, recorded with a rejection_reason and never stocked.
Response
delivery counted in
purchase_order, stock_transfer The values listed are the built-in ones; extensions may add more.
admin_user, api_key 
