companyGs1PrefixRecordPreviousSystemSscc
Records the last SSCC a previous system issued under this prefix, so Endless mints above it.
Accepts the code in any shape a barcode prints it: 18 digits, or 20 with the (00) application identifier, with or without parentheses, spaces or hyphens.
Business Rules
- The code must be 18 digits once its application identifier is removed.
- Its check digit must be correct.
- Its prefix digits must match this block’s GS1 Company Prefix.
- The floor applies to the run of the extension digit the code carries. Endless must not have issued an SSCC with that digit yet, because the assertion is that codes up to this one were consumed elsewhere, which cannot be true of codes Endless issued.
- The code must be above where that run already continues. A code at or below it would not change anything, so it is refused.
Error Scenarios
- **
NOT_FOUND**: the prefix does not exist, or the code is not from this block. - **
UNPROCESSABLE_CONTENT**: wrong length, wrong check digit, Endless has already issued with the code’s extension digit, or that digit’s run already continues past the code. - **
CONFLICT**: another change to this prefix landed first. Reload and try again.
Permissions Required
company:update_gs1_prefixpermission
companyGs1PrefixRecordPreviousSystemSscc(
input: RecordPreviousSystemSsccInput!
): CompanyGs1Prefix
Arguments
companyGs1PrefixRecordPreviousSystemSscc.input ● RecordPreviousSystemSsccInput! non-null input common
Parameters for RecordPreviousSystemSscc
Type
CompanyGs1Prefix object companies
Company GS1 Prefix
A GS1 prefix licensed to the company. Integrations assigned to it mint SSCC-18 codes, and each extension digit numbers its own run of serials. Its GTIN capacity defines the owned UPC block.