New Orders API
New Orders API
The New Orders API is CJ's GraphQL Tracking API for submitting affiliate conversion data directly from your server. Use the createOrders mutation to send new orders, attribute them to the correct publisher, and unlock advanced capabilities like Situational Commissioning and enhanced Insights reporting.
This API is part of CJ's full transaction lifecycle suite, which also includes restateOrdersfor modifications and cancelOrderfor cancellations.
Why Use the New Orders API?
API Endpoints
CJ's Tracking API has two endpoints — one for testing during development and one for production. Always validate in Test Mode before sending live data.
Use during development to validate requests without impacting production data or reporting.
Use once data has been tested and validated. All valid requests are processed and posted to production reporting.
Getting started with the CJ API
Follow the steps below to authenticate and start making API requests. You will need a Personal Access Token before you can access any CJ API endpoints.
Log in with your CJ credentials and generate a token from the Personal Access Tokens page. If you don't know your login credentials, submit a support ticket.
All API requests must include an Authorization header using the Bearer token type followed by your Personal Access Token.
Authorization: Bearer eyJhbGciOiJIUzI1NiIXVCJ9
Using your token, you can access the full range of CJ API features.
Open-Ended Locking
For Travel advertisers using CJ's Open-Ended Locking solution, orders submitted through the New Orders API enter a pended state and remain there until the reservation is resolved. When the customer completes their stay, trip, or booking period, submit a restateOrders request to transition the order from pended to accepted, making the commission eligible for publisher payout. Conversely, if the customer cancels before or during the booking period, submit a cancelOrders request to transition the order from pended to declined, preventing commission payout and removing the booking from the advertiser's eventual invoice.
Open Ended Lifecycle
For travel and extended booking programs — track reservations that confirm over weeks or months
CJ affiliate link
is clicked
via publisher
Customer makes
a reservation
hotel, flight, tour…
Data sent to CJ
status = pendedReservation Completed
Customer completes their stay, trip, or booking period
Reservation Cancelled
Customer cancels before or during the booking period
Updated 11 days ago
