Implementation

📋Before You Implement
  • Obtain your Company ID (CID) and Action Tracker ID (TYPE) from your CJ Client Integration Engineer before starting. These are static values that can be hard-coded.
  • Parameter order doesn't matter — you can arrange query string parameters in any order.
  • Replace all placeholder values with your actual data. Brackets are for illustration only and should not appear in your final code.

S2S Postback Structure

Server-to-Server
https://www.emjcd.com/u?CID={{cid}}&TYPE={{type}}&METHOD=S2S&CJEVENT=[cje_cookie_value]&eventTime=[ISO8601_timestamp]&OID=[order_id]&CURRENCY=USD&COUPON=[coupon_code]&ITEM1=[sku_1]&AMT1=[unit_price_1]&QTY1=[quantity_1]&DCNT1=[item_discount_1]&DISCOUNT=[order_discount]&CUST_STATUS=[New|Return|Lapsed]

S2S Parameters

Click any row to see type, format, and value examples.
Parameter
Description
Required
CID
Your CJ Enterprise ID. This value is static and can be hard-coded for all calls from your program.
Required
TYPE
The CJ Action Tracker ID identifying the specific commissionable action being tracked.
Required
Type: Integer
Examples
TYPE=123456
Note: Your program may have multiple actions (e.g., a sale and a lead), each with a different TYPE value. Pass the TYPE corresponding to the action being tracked in each call.
METHOD
Identifies the tracking method. Must always be set to S2S for server-to-server postback calls.
Required
CJEVENT
The unique CJ click ID captured from the affiliate landing page URL and stored in the cje cookie. Required for publisher attribution.
Required
Type: StringFormat: Alphanumeric, up to 64 characters
Examples
CJEVENT=b7f2a9d4c1e836b0f92d4a1c5e7b8a39
Note: Read from the cje server-side cookie at the time of conversion. Must always reflect the most recent click value — when a new affiliate link is clicked, the cookie value must be overwritten. If CJEVENT is not available at conversion time, the transaction will not be attributed to a publisher.
EVENTTIME
The date and time the conversion occurred. Allows you to specify an event timestamp rather than relying on CJ's receipt time.
Required
Type: StringFormat: ISO 8601 — must be URL encoded
Examples
eventTime=2026-08-12T09:45:30Z
eventTime=2026-05-22T14:10:15-07:00
Note: If omitted, CJ uses the time the call is received. If the value is malformed, the transaction errors. If sent as empty, CJ uses receipt time. Timestamps more than 24 hours in the future will cause a transaction error.
OID
Your unique Order ID or confirmation identifier for the transaction. Used to cross-reference your system with CJ's records.
Required
Type: StringFormat: Alphanumeric, dashes, and underscores only. Max 96 characters.
Examples
OID=145683
OID=ORD-2024-001234
Note: Do not include special characters, spaces, or PII such as email addresses. Values are truncated after 96 characters.
CURRENCY
ISO 4217 three-letter currency code for the transaction. Applies to all AMTx values in the call.
Required
Type: StringFormat: ISO 4217 three-letter code
Examples
CURRENCY=USD
CURRENCY=GBP
Note: Do not pass a blank value — CURRENCY= with no value will cause a transaction error. If omitted, CJ records the amount in your program's functional currency. If a currency other than your functional currency is passed, CJ converts the amount using the current exchange rate.
COUPON
The coupon or promo code applied to the order. Enables coupon-level reporting and lets you control which coupons are commissionable.
Recommended
Type: StringFormat: Letters, numbers, dashes, and underscores only. Multiple codes separated by commas.
Examples
COUPON=SAVE20
COUPON=SPRING25,LOYALTY10
Note: Omit this parameter if no coupon was applied.
DISCOUNT
Whole order discount amount applied to the transaction.
Recommended
Type: Decimal
Examples
DISCOUNT=12.99
DISCOUNT=0
Note: If no discount applies, use DISCOUNT=0 or omit the parameter. Do not pass DISCOUNT= with an empty value — this will cause a transaction error. For item-level discounts, use DCNTx instead.

Item-Level Parameters

Item-level parameters use an indexed naming pattern — ITEM1, AMT1, QTY1 for the first item, ITEM2, AMT2, QTY2 for the second, and so on. The sequence must be unbroken (no gaps in the numbering). A maximum of 100 item sets is supported per order.

Click any row to see type, format, and value examples.
Parameter
Description
Required
ITEMx
The SKU or product identifier for the line item. Must have a corresponding AMTx and QTYx with the same index number.
Required
Type: StringFormat: Alphanumeric, dashes, and underscores only. Max 100 characters. No spaces or special characters.
Examples
ITEM1=sku-3214
ITEM2=productB_v2
Note: SKU values must match the format and values in your CJ product catalog exactly for item-based commissions to function correctly. Do not include 'x' literally — replace it with the item index number (1, 2, 3...).
AMTx
The pre-tax, pre-shipping unit price for the corresponding ITEMx. CJ multiplies this value by QTYx to calculate the total for that line item.
Required
Type: DecimalFormat: Numbers and decimal point only. No dollar signs, commas, or negative values.
Examples
AMT1=13.49
AMT2=29.99
Note: Pass the unit price of a single item — not the line total. CJ handles the multiplication. If a discount is applied and you are not using the DISCOUNT parameter, pass the post-discount unit price here. If a particular action always has a zero unit price, you may hard-code AMTx=0.
QTYx
The quantity purchased for the corresponding ITEMx. Must be a positive whole number.
Required
Type: IntegerFormat: Positive integers ≥ 1 only. No decimals or commas.
Examples
QTY1=3
QTY2=1
Note: Maximum of 100 ITEMx/AMTx/QTYx sets per order.
DCNTx
Item-level discount applied to the corresponding ITEMx line. Applies to the total for that line item across all units.
Recommended
Type: Decimal
Examples
DCNT1=4.99
DCNT2=0
Note: If no item discount applies, use DCNTx=0 or omit the parameter for that item. The discount index must correspond to the ITEMx it applies to. Can be used in combination with the DISCOUNT (whole order) parameter.

S2S Examples

https://www.emjcd.com/u?CID=1234567&TYPE=123456&METHOD=S2S&CJEVENT=5f3ca1b2e4d94826b0a7c1d3e5f7a9b2&eventTime=2026-05-22T14:10:15-07:00&OID=Order145683&CURRENCY=USD&AMOUNT=49.99COUPON=CJ-COUPON
https://www.emjcd.com/u?CID=1234567&TYPE=123456&METHOD=S2S&CJEVENT=7890abcdef1234567890abcdef123456&AMOUNT=59.97&eventTime=2026-08-12T09:45:30Z&DISCOUNT=10&OID=SA112342&CURRENCY=USD&COUPON=CJ26&ITEM1=sku-001&AMT1=29.99&QTY1=2&DCNT1=5.00&ITEM2=sku-002&AMT2=14.99&QTY2=1&DCNT2=0&CUST_STATUS=Return
https://www.emjcd.com/u?CID=1234567&TYPE=123456&METHOD=S2S&CJEVENT=k9R2n7PqW4m1Xj5vZb8Lp3TfH6sV2y9N&eventTime=2026-08-12T09:45:30Z&OID=0002932&CURRENCY=USD