Create a trade
https://api.kardlane.com/v1/tradesHand a gift card to Kardlane. The bot asks your vendors for rates, sends the card to the best one, reads their reply and tells you the outcome by webhook.
Idempotent on externalRef: posting the same reference again returns the trade you already created (200, status: "duplicate").
Answered immediately with 202 — the card read, rate requests and everything after run in the background.
Authorization#
Bearer token: Bearer <your project API key>. Create keys in the dashboard under your project’s Integration page.
Body#
Your own id for this sale. Echoed on every webhook; the idempotency key.
A card-type code from List card types, e.g. APPLE_ITUNES. An unknown value is rejected with a suggestion.
The card’s currency / region, e.g. USD, CAD, GBP.
Face value of the card (for several cards, their total).
The rate you pay your customer per 1 unit of card value, in your payout currency. Never replaced by a vendor rate.
HTTPS links to the card photos — every card, front and back (up to 20 are read). HEIC is converted before vendors see it.
The redemption code, for e-codes. Vendors are asked with ECODE.
The card’s PIN, when it has one (e.g. Razer Gold). Stored encrypted, sent only to the chosen vendor, never returned.
Responses#
externalRef was already sent.