pixellint

CJ postbacks need complete item groups at matching indices.

S2S conversions check matching ITEM, AMT and QTY indices through 100, with optional discounts on an existing item. Gaps and partial groups produce findings. Legacy image pixels retain their existing requirements.

Omitted timestamps use receipt time, and omitted currency uses the program currency. Supplied values retain their documented checks. Account ownership and attribution require external context.

What this pack matches

Hosts
www.emjcd.com
Paths
/u
Vendor docs
docs.cj.com/docs/s2s-implementation

Rules

Codes are stable. A finding in CI, MCP, or the playground lands on the same id.

Field Required What it checks Rule ids Source
CID required It is the numeric CJ Enterprise ID. CJ documents it as CID on the `/u` conversion endpoint. Fix: Set `CID` to the Enterprise ID from CJ Account Manager. vendor.cj.param.CID.missing
vendor.cj.param.CID.empty
vendor.cj.param.CID.invalid
docs
TYPE recommended It is the Action ID for the conversion. CJ documents a unique TYPE per action. Fix: Set `TYPE` to the Action ID from Account Manager. vendor.cj.param.TYPE.missing
vendor.cj.param.TYPE.empty
vendor.cj.param.TYPE.invalid
docs
OID recommended It is the unique order reference. CJ documents it for cross-referencing the transaction. Fix: Set `OID` to a unique alphanumeric order ID, with no email address. vendor.cj.param.OID.missing
vendor.cj.param.OID.empty
docs
METHOD optional Explicit S2S selects the published server postback contract. Other method markers remain open. docs
CJEVENT optional Current click identity for publisher attribution. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.CJEVENT.empty
vendor.cj.param.CJEVENT.invalid
docs
EVENTTIME optional ISO 8601 occurrence time. Omitted or empty values use receipt time. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.EVENTTIME.empty
vendor.cj.param.EVENTTIME.invalid
docs
CURRENCY optional A supplied currency must be populated and valid. Omission uses the program currency. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.CURRENCY.empty
vendor.cj.param.CURRENCY.invalid
docs
COUPON optional Optional coupon codes, with commas between multiple codes. Empty means no coupon. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.COUPON.empty
vendor.cj.param.COUPON.invalid
docs
DISCOUNT optional Whole-order decimal discount. Empty is invalid; omission and zero remain valid. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.DISCOUNT.empty
vendor.cj.param.DISCOUNT.invalid
docs
AMOUNT optional Optional decimal order value used in the published examples. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.AMOUNT.empty
vendor.cj.param.AMOUNT.invalid
docs
CUST_STATUS optional Published customer status spellings are source guidance. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: warning. vendor.cj.param.CUST_STATUS.empty
vendor.cj.param.CUST_STATUS.invalid
docs
ITEM… optional SKU, at most 100 characters. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.ITEM.empty
vendor.cj.param.ITEM.invalid
docs
AMT… optional Nonnegative unit price without currency symbols. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.AMT.empty
vendor.cj.param.AMT.invalid
docs
QTY… optional Positive whole quantity. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.QTY.empty
vendor.cj.param.QTY.invalid
docs
DCNT… optional Optional line discount. The index must refer to an existing item. Applies when {"kind":"value_in","param":"METHOD","values":["S2S"]}. Presence diagnostic severity: error. vendor.cj.param.DCNT.empty
vendor.cj.param.DCNT.invalid
docs
s2s_identity_missing recommended S2S attribution uses action, order and click identities. Missing attribution data may be intentional for other integrations. vendor.cj.s2s_identity_missing docs
s2s_order_spelling recommended The documented order spelling is at most 96 characters; longer values are truncated. vendor.cj.s2s_order_spelling docs
items_incomplete required Item, price and quantity families need matching indices from 1 through 100, without gaps. Optional discounts join an existing index. vendor.cj.items_incomplete docs
event_time_future required CJ rejects timestamps more than 24 hours in the future. vendor.cj.event_time_future docs
method optional The published postback uses HTTP GET. Complete HTTP capture contract. Presence diagnostic severity: warning. vendor.cj.http.method.empty
vendor.cj.http.method.invalid
docs

Validate a payload

pixellint validate url "$ARTIFACT" --rulepack vendor/cj

Try this failing payload in the playground. A CJ postback with mismatched item and price indices.

https://www.emjcd.com/u?CID=123&TYPE=456&OID=synthetic&METHOD=S2S&CJEVENT=abc123&ITEM1=sku&AMT2=1&QTY1=1

cargo install pixellint · npm install pixellint