Sales and purchases

A sale is an order where you are the seller; a purchase is an order where you are the buyer. Both are addressed by their order number, such as OR-ASNBC-1. The sales scopes are sales:read and sales:write; the purchases scopes are purchases:read and purchases:write.

Statuses

Status Meaning
pending_shipment Paid and waiting to be shipped.
cancellation_requested The buyer asked the seller to cancel before shipping.
shipped, delivered The parcel is on its way, or was delivered.
completed Closed. The seller's payout is eligible.
dispute_open, dispute_escalated A dispute is open, or CardNexus is reviewing it. See Disputes.
cancelled_buyer, cancelled_seller, cancelled_auto Cancelled.
resolved_full_refund, resolved_partial_refund, resolved_no_refund, resolved_return, resolved_goodwill_refund Closed by a dispute outcome.

Listing orders

GET /v1/sales and GET /v1/purchases page with a cursor, newest first (see Pagination). Cursors issued by these lists before this release no longer work: start again without a cursor.

Filter Meaning
status One or more statuses (repeatable).
placedFrom, placedTo The date range the order was placed in.
needsAction true returns the orders waiting on you.
dispute Orders with a dispute.
buyer (sales), seller (purchases) The other party, by username. At least 2 characters.
orderNumberPrefix Orders whose number starts with the text.
shipByBefore, shipByAfter Bounds on the ship-by deadline of sales awaiting dispatch. Purchases take shipByBefore only: the purchases whose seller has until before that instant to ship.
sort (sales) shipBy lists only sales awaiting dispatch, earliest deadline first.
metadata[key]=value Your own metadata on a sale; see Track sales in your own system.

Send includeTotal=true on a page reached with a cursor to get pagination.total; the first page always returns it.

Every order carries webUrl (its page on cardnexus.com), shipBy (the deadline to ship), shipsOn on a pre-order (see Pre-orders), and actions: the operations you can run on it now, each with its id, method and path. A sale also carries labelState (none or created), and a cancellation request carries autoAcceptAt and requestedAt.

What a seller can do

Action id Endpoint
mark-shipped POST /v1/sales/{orderNumber}/mark-shipped
get-shipping-options GET /v1/sales/{orderNumber}/shipping-options
create-shipping-label POST /v1/sales/{orderNumber}/shipping-label
cancel POST /v1/sales/{orderNumber}/cancel
accept-cancellation POST /v1/sales/{orderNumber}/accept-cancellation
update-tracking POST /v1/sales/{orderNumber}/tracking
postpone-ship-date POST /v1/sales/postpone

Ship many orders

POST /v1/sales/ship-batches marks several sales shipped as one background job, with the same rules as mark-shipped. List the orders with a trackingNumber for tracked sales, and optionally a trackingUrl and signatureConfirmed. No order may appear twice. The call returns a batch at once; poll GET /v1/sales/ship-batches/{batchId} for its status, its tallies, and a page of orders with the outcome of each, in the order you sent them. Filter with outcome to read only the failures. Only one batch runs at a time: another returns 409 BATCH_IN_PROGRESS with the running batch id.

GET /v1/sales/{orderNumber}/packing-slip returns a link to the sale's packing slip PDF: the one you download from the order page on CardNexus, with your details, the address to ship to, and the items grouped by game and expansion with each card's rarity and each line's storage location, SKU, comment and internal note. The link is valid for 15 minutes and each call returns a new one. It works without signing in and the file holds the buyer's name and address, so keep it private. Send Accept-Language: fr for a slip in French; it is in English otherwise. A sale missing what the slip prints, such as a complete shipping address, returns 409 PACKING_SLIP_UNAVAILABLE.

Buy a shipping label

  1. GET /v1/sales/{orderNumber}/shipping-options lists the carrier services for the parcel's route and weight, computed from the items.
  2. POST /v1/sales/{orderNumber}/shipping-label with the methodId you chose. The service is checked against the ones available now, the carrier creates the parcel, and the tracking number is registered. A sale has one label; two requests at the same moment buy one, and the second returns 409 LABEL_IN_PROGRESS.
  3. GET /v1/sales/{orderNumber}/shipping-label/documents/{kind} returns a link to the label, QR code or customs form. The link is valid for 15 minutes and works without signing in, and the file holds the buyer's name and address, so keep it private.

The sale stays pending_shipment and becomes shipped at the carrier's first scan. Options and labels have their own rate limits; see Rate limits.

Correct a tracking number

POST /v1/sales/{orderNumber}/tracking corrects the tracking number of a shipped sale that you shipped yourself. The new number is registered with the tracking provider, the order's tracking restarts from pending, and the previous number, the reason and who changed it are kept in its history.

Accept a cancellation request

POST /v1/sales/{orderNumber}/accept-cancellation accepts the buyer's request at once, without waiting out the 48-hour window. The order moves from cancellation_requested to cancelled_buyer, the buyer is refunded in full, the cards return to your inventory, and the carrier label and its insurance, if any, are voided.

Postpone pre-orders

POST /v1/sales/postpone moves the ship date of up to 100 of your pending pre-orders to one new shipsOn, after each order's current date and at most 90 days ahead. Each order's shipBy becomes 6 business days after the new date, never earlier than it was. Each order comes back with its own outcome: postponed, or why it was left as it was (not_found, not_preorder, invalid_status, date_not_after_current, conflict). A date that is not after today or too far ahead fails the whole call with 422 INVALID_SHIP_DATE and the latest date accepted in data.maxShipsOn.

The buyer is told, and can then cancel the order at once with a full refund until you ship. Only pre-orders can be postponed this way; CardNexus support can move the date of any pending order.

Counters and report

GET /v1/sales/stats returns the counters of your sales dashboard in your selling currency: the orders waiting to be shipped and their value, the orders on their way, how many need your action, the payout owed to you that has not been transferred yet, and the conversations with unread messages.

GET /v1/sales/report returns your sales over a period: the number of orders and cards, the items sold, the shipping you collected, refunds, seller fees and the net, in your selling currency, with an optional series by day, week or month.

What a buyer can do

Action id Endpoint
mark-complete POST /v1/purchases/{orderNumber}/mark-complete
request-cancellation POST /v1/purchases/{orderNumber}/request-cancellation
extend-shipping-deadline POST /v1/purchases/{orderNumber}/extend-shipping-deadline
cancel-postponed-preorder POST /v1/purchases/{orderNumber}/cancel-postponed
  • Confirm you received a purchase. The order moves from shipped or delivered to completed: the seller's payout becomes eligible and you can no longer open a dispute on the order. This cannot be undone.
  • Ask the seller to cancel. For a purchase that has not shipped. The order moves to cancellation_requested. The seller has 48 hours to ship or accept: if the seller accepts, or the time passes, the order is cancelled and you are refunded in full. If the seller ships within the window, the request is voided.
  • Give the seller more time to ship. The new shipBy is 7 days after the later of the current deadline and now.
  • Cancel a postponed pre-order. Once the seller or CardNexus support moved the ship date of a pending order, you can cancel it at once: it moves to cancelled_buyer and you are refunded in full. Extending the deadline yourself does not open this.

Each of these accepts an Idempotency-Key.

Pre-orders

A pro seller's sealed product whose set is not released yet sells as a pre-order (see Listings). At checkout a seller's pre-orders are split from the items that ship now: one order for the items that ship now and one per ship date, each with its own shipping.

A pre-order carries shipsOn, the day the seller ships from (YYYY-MM-DD); it is null on other orders. Its shipBy counts from that date: 6 business days after it. The seller may ship before shipsOn. When a release slips, the seller postpones the order, which moves both dates and fires order.ship_by.changed.