Receive a case that has no label under an SSCC of our own
POST/receipts/:receiptId/sscc-assignments
For a case that arrived with no SSCC label (ADR 0024). Give the case
GTIN; the service receives ONE case of the active CASE pack under a new
SSCC of the receiver's own GS1 company prefix (extension digit 0, a
serial from a never-reused per-prefix sequence, a valid check digit),
raises UnlabelledCarton against a carton ASN as always, and answers
201 with what a printer needs: sscc, humanReadable
((00)<sscc>), elementString (the GS1-128 data) and symbology. The
service has no printer driver: the floor client prints. The carton
carries ssccSource: receiver on ReceiptCartonReceived.
409 sscc-prefix-not-configured until the business supplies a GS1
company prefix (RECEIVER_GS1_COMPANY_PREFIX, 7 to 10 digits): the
prefix is a licensed asset and there is no default. 409
sscc-serial-exhausted when every serial of the prefix is used.
Not naturally idempotent, so the Idempotency-Key is required: a retry
with the same key replays the same SSCC and receives nothing twice.
Request
Responses
- 201
- 400
- 404
- 409
- 412
- 422
- 500
The case was received under the new SSCC.
Response Headers
Present, with the value true, only when this response is the replay of a stored answer for the same Idempotency-Key.
Strong entity tag of the resource: the quoted version, for example "3".
Malformed JSON or an unknown field (malformed-request), a bad query
parameter (invalid-query, invalid-limit, invalid-cursor,
unknown-query-parameter), a missing or malformed Idempotency-Key
(idempotency-key-required, idempotency-key-invalid), or a value that breaks a domain rule
(the invalid-*, *-requires-*, duplicate-* and
invalid-condition, invalid-carton*, invalid-scan*, invalid-counted-contents, invalid-cases,
invalid-gtin, invalid-sscc and invalid-owner-ref slugs), a reason code outside the list
(invalid-override-reason) or a tolerance band that breaks 0 <= tolerance < hardStop <= 1
(invalid-tolerance-band).
The resource in the path does not exist: asn-not-found,
appointment-not-found, receipt-not-found, carton-not-found or
receiving-policy-not-found (no policy declared for the exact owner and supplier).
The request conflicts with current state: asn-already-exists,
asn-in-progress, asn-terminal, asn-not-receivable,
appointment-cancelled, receipt-already-open, receipt-closed, sscc-prefix-not-configured and
sscc-serial-exhausted (receiver-assigned SSCCs, ADR 0024), tolerance-override-required
(a line sits between the declared band and its hard stop and no valid override reason was given) and
tolerance-blocked (a line is at or beyond the hard stop: no override passes, the receipt stays
open; ADR 0026), a write that lost a race
(concurrent-modification), or an Idempotency-Key already used with
a different request (idempotency-key-reused).
The If-Match value does not match the resource's current version; re-fetch and retry.
The request is well-formed but refers to something that does not hold:
unknown-sku, unknown-dock-door,
unknown-asn, unknown-appointment,
asn-not-on-appointment, line-not-on-asn, invalid-sscc,
duplicate-sscc, homogeneous-carton-mixed, carton-contents-mismatch,
scan-kind-mismatch, unsupported-pack-level,
counted-contents-not-mixed, counted-sku-unknown or unknown-gtin.
Unexpected server error.