თან-ით გაგზავნა პირდაპირ შენი სისტემიდან
შექმენი მიწოდებები შენი მაღაზიის ან საწყობის სისტემიდან და ადევნე თვალი ყველა სტატუსს — მოვლენების ნაკადით ან ვებჰუკით. დაიწყე სატესტო რეჟიმში — კურიერისა და თანხის გარეშე — და რეალურ გასაღებზე მაშინ გადადი, როცა ყველაფერი იმუშავებს.
OpenAPI ფაილი
Postman-ში, Insomnia-ში ან კლიენტის გენერაციისთვის
WooCommerce პლაგინი
WordPress-ის მაღაზიისთვის — კოდის გარეშე
მისამართი: https://api-stg.tandelivery.ge/partner/v1
სწრაფი დაწყება
- გახდი პარტნიორი და სთხოვე თან-ს, რომ შენს ბიზნესზე API ჩართოს.
- პარტნიორის კაბინეტში გახსენი API და შექმენი სატესტო გასაღები. დააკოპირე — მხოლოდ ერთხელ ჩანს.
- ჩაწერე შენი სერვერის გარემოს ცვლადში, მაგ.:
TAN_API_KEY. - გამოიძახე
GET /me. პასუხიmode: "test"ნიშნავს, რომ შეკვეთების შექმნა შეგიძლია.
curl https://api-stg.tandelivery.ge/partner/v1/me \ -H "Authorization: Bearer $TAN_API_KEY"ავტორიზაცია
ყოველ მოთხოვნას გასაღები ახლავს: Authorization: Bearer tan_live_… ან tan_test_…. გასაღების გარეშე, უცნობი ან გაუქმებული გასაღებით — 401 UNAUTHORIZED; სანამ ბიზნესზე API გამორთულია, ყველა გასაღები 403 API_DISABLED-ს აბრუნებს.
გასაღები მხოლოდ შენს სერვერზე შეინახე. არასდროს ჩადო საიტის, მობილური აპის ან რეპოზიტორიის კოდში — ვინც დაინახავს, შენი ბარათით გადახდილ შეკვეთებს გაგზავნის. გაჟონა? გააუქმე კაბინეტში — მაშინვე შეწყვეტს მუშაობას.
სატესტო რეჟიმი
tan_test_ გასაღები ზუსტად ისე მუშაობს, როგორც რეალური, ოღონდ მისით შექმნილ შეკვეთებს კურიერი ვერ ხედავს, თანხა არ იჭრება და სტატუსები თავისით იცვლება — დაახლოებით ყოველ 20 წამში, Delivered-მდე — და იგივე ვებჰუკები მოდის, რაც რეალურზე. სატესტო და რეალური შეკვეთები ერთმანეთს ვერ ხედავს, externalRef კი თითოეულ რეჟიმში ცალ-ცალკე უნიკალურია.
სატესტო ბარათები
სატესტო გასაღებს ბარათი არ სჭირდება. თუ თან-ის სატესტო გარემოში რეალური გასაღებით გადახდის ცდა გინდა, კაბინეტში შეინახე გადახდის პროვაიდერის საჯარო სატესტო ბარათი (ვადა და CVV ნებისმიერი). ისინი მხოლოდ იქ მუშაობს, სადაც გადახდები სატესტო რეჟიმშია.
4444 5555 1111 6666დადასტურდება3-D Secure-ის გარეშე4444 5555 6666 1111დადასტურდება3-D Secure-ით4444 1111 5555 6666უარყოფილი იქნება3-D Secure-ის გარეშე4444 1111 6666 5555უარყოფილი იქნება3-D Secure-ით
გადახდა
რეალური შეკვეთა ისევე იხდება, როგორც კაბინეტიდან შექმნილი: შექმნისას ფასი ბიზნესის ნაგულისხმევ შენახულ ბარათზე იბლოკება და ჩაბარებისას ჩამოიჭრება — გადაუხდელ შეკვეთას კურიერი ვერასდროს ხედავს. თუ ბანკი 3-D Secure-ს მოითხოვს, შეკვეთა იქმნება, მაგრამ ელოდება (status: Created, paymentStatus: Pending), სანამ კაბინეტში არ გადაიხდი; გამოქვეყნებისას ვებჰუკი გეტყვის. შენახული ბარათის გარეშე POST /orders აბრუნებს 409 PAYMENT_REQUIRED-ს და არაფერს ქმნის. გაუქმებული ან ვადაგასული შეკვეთის თანხა თავისუფლდება.
განმეორება და Idempotency-Key
კავშირი წყდება. POST /orders-ს გაატანე Idempotency-Key (შენი შეკვეთის id კარგად გამოდგება) და თამამად გაიმეორე: იგივე გასაღები პირველი მოთხოვნის შეკვეთას აბრუნებს (200 201-ის ნაცვლად), მეორეს არასდროს ქმნის. იგივე გასაღები სხვა შიგთავსით — 409 CONFLICT. შენი შეკვეთის ნომერიც (externalRef) უნიკალურია — მეორე შეკვეთა იმავე ნომრით 409 EXTERNAL_REF_TAKEN-ია.
შეცდომები
ყველა შეცდომას ერთნაირი სხეული აქვს: { "code": "…", "message": "…", "details": { … } }. იხელმძღვანელე code-ით — ის მუდმივია; message ადამიანისთვისაა და შეიძლება შეიცვალოს. 400-ის details.fields-ში თითოეული არასწორი ველი წერია.
UNAUTHORIZEDგასაღები არ არის, უცნობია ან გაუქმებულია.
API_DISABLEDბიზნესზე API გამორთულია.
VALIDATION_ERRORველი აკლია ან არასწორია — იხ. details.fields.
NOT_FOUNDასეთი შეკვეთა ან აღების წერტილი არ არის (ამ გასაღების რეჟიმში).
CONFLICTIdempotency-Key ხელახლა გამოიყენე სხვა შიგთავსით.
EXTERNAL_REF_TAKENბიზნესს ამ externalRef-ით შეკვეთა უკვე აქვს.
PAYMENT_REQUIREDგადახდები ჩართულია და ბიზნესს შენახული ბარათი არ აქვს.
BUSINESS_NOT_ACTIVEპარტნიორი ბიზნესი დადასტურებული არ არის (ან შეჩერებულია).
INVALID_TRANSITIONგვიანაა — მაგ.: უკვე აღებული ამანათის გაუქმება.
ADDRESS_NOT_FOUNDმისამართი ვერ ვიპოვეთ საკმარისი სიზუსტით (მხოლოდ ქალაქი, ან ასეთი ქუჩა არ არის) — გამოგზავნე lat/lng ან სრული მისამართი.
RATE_LIMITEDამ გასაღებზე წუთში 60-ზე მეტი მოთხოვნა.
INTERNAL_ERRORთან-ის მხარეს რაღაც გაფუჭდა. გაიმეორე იმავე Idempotency-Key-ით.
ლიმიტები
წუთში 60 მოთხოვნა თითო გასაღებზე. ზემოთ — 429 RATE_LIMITED და Retry-After ჰედერი (წამებში). სიები ერთ გვერდზე მაქსიმუმ 100 ჩანაწერს აბრუნებს.
შეკვეთების თვალყურის დევნება
შეკვეთის სტატუსის ყოველი ცვლილება (order.status_changed) და გადახდის სტატუსის ყოველი ცვლილება (order.payment_changed) მოვლენაა. მათი მიღების უმარტივესი გზისთვის საკუთარი სერვერი არ გჭირდება: რამდენიმე წამში ერთხელ გამოიძახე GET /events after-ით — ბოლოს დამუშავებული მოვლენის id-ით — და მიიღებ ყველაფერს, რაც მას შემდეგ მოხდა, ძველიდან ახლისკენ. ეს id შენს ბაზაში შეინახე: გადატვირთვის შემდეგ იქიდან გააგრძელებ.
# The first call has no "after"; every next one passes the "next" it was given.curl "https://api-stg.tandelivery.ge/partner/v1/events?after=$LAST_EVENT_ID" \ -H "Authorization: Bearer $TAN_API_KEY"hasMore: true ნიშნავს, რომ კიდევ არის — მაშინვე გამოიძახე next-ით. მოვლენა ჩნდება მოხდენიდან რამდენიმე წამში და არასდროს არეულად. მოვლენები 30 დღე ინახება; უფრო ძველი (ან სხვა რეჟიმის) after არის 400 VALIDATION_ERROR — დაიწყე თავიდან, მის გარეშე. ყოველი მოვლენა იგივე სხეულია, რასაც ვებჰუკი იღებს, ასე რომ მოგვიანებით ვებჰუკზე გადასვლაც შეგიძლია იგივე დამმუშავებლით.
ვებჰუკები (არასავალდებულო)
გინდა, რომ მოვლენები მოხდენისთანავე მოგივიდეს? კაბინეტში მიუთითე ერთი https მისამართი და ყოველი მოვლენა მას JSON-ად ეგზავნება — იგივე სხეული, რასაც GET /events აბრუნებს. data.status / data.paymentStatus — ის, რაზეც მოვლენაა; data.order — შეკვეთა გაგზავნის მომენტისთვის.
ხელმოწერის შემოწმება
ყოველ მოთხოვნას ახლავს Tan-Signature: t=<unix წამები>,v1=<hex> — <t>.<სხეული>-ის HMAC-SHA256 შენი ვებჰუკის ხელმოწერის საიდუმლოთი (whsec_…, კაბინეტში). შეამოწმე დაუმუშავებელ სხეულზე, JSON-ად გარდაქმნამდე, შეადარე მუდმივ დროში და უარყავი t, რომელიც ხუთ წუთზე მეტით განსხვავდება.
// Express. express.raw keeps the body as bytes — express.json() would break the signature.import crypto from 'node:crypto';import express from 'express'; const app = express(); export function verifyTanSignature(rawBody, header, secret, toleranceSeconds = 300) { const parts = Object.fromEntries( String(header ?? '').split(',').map((part) => part.trim().split('=', 2)), ); const timestamp = Number(parts.t); if (!parts.v1 || !Number.isInteger(timestamp)) return false; if (Math.abs(Date.now() / 1000 - timestamp) > toleranceSeconds) return false; const expected = crypto .createHmac('sha256', secret) .update(`${timestamp}.${rawBody}`) .digest('hex'); const a = Buffer.from(expected); const b = Buffer.from(parts.v1); return a.length === b.length && crypto.timingSafeEqual(a, b);} app.post('/tan/webhook', express.raw({ type: 'application/json' }), (req, res) => { const raw = req.body.toString('utf8'); if (!verifyTanSignature(raw, req.get('Tan-Signature'), process.env.TAN_WEBHOOK_SECRET)) { return res.sendStatus(400); } const event = JSON.parse(raw); res.sendStatus(204); // answer first, work after // event.id repeats on a retry — skip ids you have already handled. console.log(event.type, event.data.order?.externalRef, event.data.status);}); app.listen(3000);რა მოდის
{ "id": "7e0c3a52-81f4-4c43-9a8e-5b1d2f6c0e19", "type": "order.status_changed", "livemode": false, "createdAt": "2026-11-25T10:05:20Z", "data": { "status": "Accepted", "paymentStatus": null, "order": { "id": "0f8b2c6e-3c1d-4f7a-9d55-a2e4c39a1b07", "reference": "#9A1B07", "externalRef": "SHOP-1001", "livemode": false, "status": "Accepted", "paymentStatus": null, "price": { "amount": 6.96, "currency": "GEL" }, "pickup": { "pickupPointId": null, "address": "წერეთლის 116", "lat": 41.7381, "lng": 44.7713 }, "recipient": { "name": "გიორგი მაისურაძე", "phone": "+995555123456" }, "dropoff": { "address": "ჭავჭავაძის 37", "city": "თბილისი", "lat": 41.7151, "lng": 44.7571, "entrance": null, "floor": "3", "apartment": "12", "note": "დარეკეთ მისვლამდე" }, "package": { "weightKg": 1.5, "category": "electronics", "description": "ყურსასმენები" }, "insured": false, "declaredValue": null, "serviceTier": "standard", "scheduledPickupAt": null, "createdAt": "2026-11-25T10:00:00Z", "updatedAt": "2026-11-25T10:00:01Z", "statusHistory": [ { "status": "Created", "at": "2026-11-25T10:00:00Z" }, { "status": "Published", "at": "2026-11-25T10:00:01Z" } ] } }}უპასუხე 2xx 10 წამში — სამუშაო პასუხის შემდეგ გააკეთე. სხვა ნებისმიერ პასუხზე ვიმეორებთ 1 წუთის, 5 წუთის, 30 წუთის, 2 საათის, 6 საათის და 24 საათის შემდეგ, მერე ვჩერდებით. მოვლენა შეიძლება ერთზე მეტჯერ და არევით მოვიდეს: უკვე დამუშავებული id გამოტოვე, შეკვეთის მდგომარეობად კი ყველაზე ახალი updatedAt დაიტოვე. კაბინეტში ყველა მიწოდება ჩანს და სატესტო მოვლენის გაგზავნაც შეიძლება.
შენი საიტიდან ან აპიდან
React, Next.js, Vue, Svelte, Angular, React Native — წესი ერთია: ბრაუზერი ან ტელეფონი შენს სერვერს მიმართავს, შენი სერვერი კი — თან-ს. იქ ინახება გასაღები, იქ ამოწმებ კალათას და მყიდველს და იქ წყვეტ, რა უნდა ნახოს გვერდმა.
ფრონტენდის კოდში ჩადებულ გასაღებს ნებისმიერი დააკოპირებს. ამიტომაც თან-ის API ბრაუზერს პირდაპირ არ პასუხობს (CORS არ არის) — განზრახ.
// app/api/tan/orders/route.ts — Next.js (App Router). Runs on YOUR server.import { NextResponse } from 'next/server'; export async function POST(request: Request) { const order = await request.json(); // Check the customer, the cart and the address here — this is your rule, not the browser's. const response = await fetch('https://api-stg.tandelivery.ge/partner/v1/orders', { method: 'POST', headers: { Authorization: `Bearer ${process.env.TAN_API_KEY}`, // server-only env var 'Content-Type': 'application/json', 'Idempotency-Key': `checkout-${order.cartId}`, // a retried checkout makes one order }, body: JSON.stringify({ externalRef: order.cartId, recipient: order.recipient, dropoff: order.dropoff, package: { weightKg: order.weightKg }, }), }); const body = await response.json(); // Pass back only what the page needs — never the key, never Tan's raw error. return response.ok ? NextResponse.json({ reference: body.reference, status: body.status }) : NextResponse.json({ error: body.code }, { status: response.status });}// Any frontend (React, Vue, Svelte, Angular, React Native): call YOUR endpoint.async function sendWithTan(cart: Cart) { const response = await fetch('/api/tan/orders', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ cartId: cart.id, weightKg: cart.weightKg, recipient: { name: cart.name, phone: cart.phone }, dropoff: { address: cart.address, city: cart.city, lat: cart.lat, lng: cart.lng }, }), }); if (!response.ok) throw new Error((await response.json()).error); return response.json(); // { reference, status }}API-ის აღწერა
დაგენერირებულია კონტრაქტიდან (partner-v1.yaml, ვერსია 1.0.0) — იმავე ფაილიდან, რომლითაც თან-ის სერვერია აწყობილი. ჩამოტვირთე Postman-ში ან Insomnia-ში იმპორტისთვის, ან კლიენტის დასაგენერირებლად. დეტალური აღწერები ინგლისურადაა.
Who this key belongs to, and whether it is a test key.
პასუხები
- 200
The business and the key's mode.
- 401
UNAUTHORIZED — no key, an unknown key, or a revoked one.
- 403
API_DISABLED — API access is switched off for the business.
- 429
RATE_LIMITED — more than 60 requests a minute on this key.
curl -X GET "https://api-stg.tandelivery.ge/partner/v1/me" \ -H "Authorization: Bearer $TAN_API_KEY"{ "businessId": "6d2f…", "name": "ზუმერი", "mode": "test"}The business's pickup points (set up in the cabinet).
პასუხები
- 200
Every pickup point, the default first.
- 401
UNAUTHORIZED — no key, an unknown key, or a revoked one.
- 403
API_DISABLED — API access is switched off for the business.
- 429
RATE_LIMITED — more than 60 requests a minute on this key.
curl -X GET "https://api-stg.tandelivery.ge/partner/v1/pickup-points" \ -H "Authorization: Bearer $TAN_API_KEY"{ "items": [ { "id": "a41c…", "name": "დიდუბე", "address": "წერეთლის 116", "lat": 41.7381, "lng": 44.7713, "isDefault": true } ]}The price of a delivery, without creating it.
მოთხოვნის სხეული PartnerQuoteRequest
pickupPointIdstringშეიძლება იყოს nullDefault — the business's default pickup point.
dropoffPartnerQuoteDropoffსავალდებულოWhere the parcel would go:
latandlng, or — without them — anaddress(and itscity) that Tan finds, as for an order. A checkout that only has the customer's typed address can price with it directly.dropoff.latnumberშეიძლება იყოს nulldropoff.lngnumberშეიძლება იყოს nulldropoff.addressstring · ≤ 300შეიძლება იყოს nulldropoff.citystring · ≤ 100შეიძლება იყოს nullpackagePartnerPackageსავალდებულოpackage.weightKgnumberსავალდებულოGreater than 0, at most 30.
package.categoryPackageCategoryშეიძლება იყოს nullDefault parcel.
მნიშვნელობები: document, parcel, food, fragile, electronics, other
package.descriptionstring · ≤ 200შეიძლება იყოს nullinsuredbooleanserviceTierServiceTierexpress — picked up at once, 1.5× the price.
მნიშვნელობები: standard, express
პასუხები
- 200
The price an order with these details would have now.
- 400
VALIDATION_ERROR —
details.fieldsnames each bad field. - 401
UNAUTHORIZED — no key, an unknown key, or a revoked one.
- 403
API_DISABLED — API access is switched off for the business.
- 404
NOT_FOUND.
- 422
ADDRESS_NOT_FOUND — the drop-off came without coordinates and its address could not be placed on the map precisely enough to deliver to (no such street, or only a town). Send
latandlng, or a fuller address. - 429
RATE_LIMITED — more than 60 requests a minute on this key.
curl -X POST "https://api-stg.tandelivery.ge/partner/v1/quotes" \ -H "Authorization: Bearer $TAN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "dropoff": { "lat": 41.7151, "lng": 44.7571 }, "package": { "weightKg": 1.5 }}'{ "price": { "amount": 6.96, "currency": "GEL" }, "distanceKm": 3.1}The business's orders made with keys of this key's mode, newest first.
Orders made in the cabinet or by import are included (they are live); a test key sees test orders only.
პარამეტრები
externalRefstring · query-შიYour own order number, exactly.
statusOrderStatus · query-შიpageinteger · query-შიpageSizeinteger · query-ში
პასუხები
- 200
One page of orders.
- 401
UNAUTHORIZED — no key, an unknown key, or a revoked one.
- 403
API_DISABLED — API access is switched off for the business.
- 429
RATE_LIMITED — more than 60 requests a minute on this key.
curl -X GET "https://api-stg.tandelivery.ge/partner/v1/orders?externalRef=SHOP-1001" \ -H "Authorization: Bearer $TAN_API_KEY"{ "items": [ { "id": "0f8b2c6e-3c1d-4f7a-9d55-a2e4c39a1b07", "reference": "#9A1B07", "externalRef": "SHOP-1001", "livemode": false, "status": "Published", "paymentStatus": null, "price": { "amount": 6.96, "currency": "GEL" }, "pickup": { "pickupPointId": null, "address": "წერეთლის 116", "lat": 41.7381, "lng": 44.7713 }, "recipient": { "name": "გიორგი მაისურაძე", "phone": "+995555123456" }, "dropoff": { "address": "ჭავჭავაძის 37", "city": "თბილისი", "lat": 41.7151, "lng": 44.7571, "entrance": null, "floor": "3", "apartment": "12", "note": "დარეკეთ მისვლამდე" }, "package": { "weightKg": 1.5, "category": "electronics", "description": "ყურსასმენები" }, "insured": false, "declaredValue": null, "serviceTier": "standard", "scheduledPickupAt": null, "createdAt": "2026-11-25T10:00:00Z", "updatedAt": "2026-11-25T10:00:01Z", "statusHistory": [ { "status": "Created", "at": "2026-11-25T10:00:00Z" }, { "status": "Published", "at": "2026-11-25T10:00:01Z" } ] } ], "page": 1, "pageSize": 20, "total": 1}Create a delivery — paid and published in the same call when it can be.
Live key: the price is held on the default saved card and the order is published at once; if the bank asks for 3-D Secure the order stays Created with paymentStatus: Pending until it is paid in the cabinet. Test key: nothing is charged and the order is published at once.
Send an Idempotency-Key to make a retry safe: the same key returns the order the first request made (200, not 201) — a key is the order's for good, in its mode — and the same key with a different body is 409 CONFLICT. An externalRef already used by the business (in this mode) is 409 EXTERNAL_REF_TAKEN.
The recipient gets a text with a link to follow the delivery when a courier takes the order.
პარამეტრები
Idempotency-Keystring · ჰედერი
მოთხოვნის სხეული PartnerCreateOrderRequest
externalRefstring · ≤ 64შეიძლება იყოს nullYour own order number; unique within the business (test and live apart).
pickupPointIdstringშეიძლება იყოს nullDefault — the business's default pickup point.
recipientPartnerRecipientსავალდებულოrecipient.namestring · ≤ 120სავალდებულოrecipient.phonestring · ≤ 32სავალდებულოA Georgian mobile number, any common spelling (stored as +9955XXXXXXXX).
dropoffPartnerDropoffსავალდებულოWhere the parcel goes.
latandlngare optional: without them Tan findsaddressincity(Georgia only) and answers 422ADDRESS_NOT_FOUNDwhen it cannot place it precisely enough to deliver. Coordinates you send are used as they are — send them when you have a map pin, they are always more exact. Responses always carry the coordinates the order is delivered to.dropoff.addressstring · ≤ 300სავალდებულოdropoff.citystring · ≤ 100სავალდებულოdropoff.latnumberშეიძლება იყოს nullOptional — see above.
dropoff.lngnumberშეიძლება იყოს nullOptional — see above.
dropoff.entrancestring · ≤ 20შეიძლება იყოს nulldropoff.floorstring · ≤ 20შეიძლება იყოს nulldropoff.apartmentstring · ≤ 20შეიძლება იყოს nulldropoff.notestring · ≤ 300შეიძლება იყოს nullFor the courier.
packagePartnerPackageსავალდებულოpackage.weightKgnumberსავალდებულოGreater than 0, at most 30.
package.categoryPackageCategoryშეიძლება იყოს nullDefault parcel.
მნიშვნელობები: document, parcel, food, fragile, electronics, other
package.descriptionstring · ≤ 200შეიძლება იყოს nullinsuredbooleandeclaredValuenumberშეიძლება იყოს nullRequired when insured; GEL.
serviceTierServiceTierexpress — picked up at once, 1.5× the price.
მნიშვნელობები: standard, express
scheduledPickupAtdate-timeშეიძლება იყოს nullA later pickup (standard only); null — as soon as a courier takes it.
პასუხები
- 200
A retry with the same Idempotency-Key — the order the first request made.
- 201
Created.
- 400
VALIDATION_ERROR —
details.fieldsnames each bad field. - 401
UNAUTHORIZED — no key, an unknown key, or a revoked one.
- 403
API_DISABLED — API access is switched off for the business.
- 404
NOT_FOUND.
- 409
EXTERNAL_REF_TAKEN, CONFLICT (an Idempotency-Key reused with a different body), PAYMENT_REQUIRED (payments are on and the business has no saved card), or BUSINESS_NOT_ACTIVE.
- 422
ADDRESS_NOT_FOUND — the drop-off came without coordinates and its address could not be placed on the map precisely enough to deliver to (no such street, or only a town). Send
latandlng, or a fuller address. - 429
RATE_LIMITED — more than 60 requests a minute on this key.
curl -X POST "https://api-stg.tandelivery.ge/partner/v1/orders" \ -H "Authorization: Bearer $TAN_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-SHOP-1001" \ -d '{ "externalRef": "SHOP-1001", "recipient": { "name": "გიორგი მაისურაძე", "phone": "555 12 34 56" }, "dropoff": { "address": "ჭავჭავაძის 37", "city": "თბილისი", "lat": 41.7151, "lng": 44.7571, "floor": "3", "apartment": "12", "note": "დარეკეთ მისვლამდე" }, "package": { "weightKg": 1.5, "category": "electronics", "description": "ყურსასმენები" }}'{ "id": "0f8b2c6e-3c1d-4f7a-9d55-a2e4c39a1b07", "reference": "#9A1B07", "externalRef": "SHOP-1001", "livemode": false, "status": "Published", "paymentStatus": null, "price": { "amount": 6.96, "currency": "GEL" }, "pickup": { "pickupPointId": null, "address": "წერეთლის 116", "lat": 41.7381, "lng": 44.7713 }, "recipient": { "name": "გიორგი მაისურაძე", "phone": "+995555123456" }, "dropoff": { "address": "ჭავჭავაძის 37", "city": "თბილისი", "lat": 41.7151, "lng": 44.7571, "entrance": null, "floor": "3", "apartment": "12", "note": "დარეკეთ მისვლამდე" }, "package": { "weightKg": 1.5, "category": "electronics", "description": "ყურსასმენები" }, "insured": false, "declaredValue": null, "serviceTier": "standard", "scheduledPickupAt": null, "createdAt": "2026-11-25T10:00:00Z", "updatedAt": "2026-11-25T10:00:01Z", "statusHistory": [ { "status": "Created", "at": "2026-11-25T10:00:00Z" }, { "status": "Published", "at": "2026-11-25T10:00:01Z" } ]}One order.
პარამეტრები
idstring · მისამართშისავალდებულო
პასუხები
- 200
The order.
- 401
UNAUTHORIZED — no key, an unknown key, or a revoked one.
- 403
API_DISABLED — API access is switched off for the business.
- 404
NOT_FOUND.
- 429
RATE_LIMITED — more than 60 requests a minute on this key.
curl -X GET "https://api-stg.tandelivery.ge/partner/v1/orders/0f8b2c6e-3c1d-4f7a-9d55-a2e4c39a1b07" \ -H "Authorization: Bearer $TAN_API_KEY"{ "id": "0f8b2c6e-3c1d-4f7a-9d55-a2e4c39a1b07", "reference": "#9A1B07", "externalRef": "SHOP-1001", "livemode": false, "status": "Published", "paymentStatus": null, "price": { "amount": 6.96, "currency": "GEL" }, "pickup": { "pickupPointId": null, "address": "წერეთლის 116", "lat": 41.7381, "lng": 44.7713 }, "recipient": { "name": "გიორგი მაისურაძე", "phone": "+995555123456" }, "dropoff": { "address": "ჭავჭავაძის 37", "city": "თბილისი", "lat": 41.7151, "lng": 44.7571, "entrance": null, "floor": "3", "apartment": "12", "note": "დარეკეთ მისვლამდე" }, "package": { "weightKg": 1.5, "category": "electronics", "description": "ყურსასმენები" }, "insured": false, "declaredValue": null, "serviceTier": "standard", "scheduledPickupAt": null, "createdAt": "2026-11-25T10:00:00Z", "updatedAt": "2026-11-25T10:00:01Z", "statusHistory": [ { "status": "Created", "at": "2026-11-25T10:00:00Z" }, { "status": "Published", "at": "2026-11-25T10:00:01Z" } ]}Cancel an order that has not been picked up yet.
Allowed until the courier has the parcel (PickedUp). A held payment is released. Cancelling an order that is already Cancelled returns it unchanged.
პარამეტრები
idstring · მისამართშისავალდებულო
მოთხოვნის სხეული PartnerCancelRequest
reasonstring · ≤ 300შეიძლება იყოს null
პასუხები
- 200
The cancelled order.
- 401
UNAUTHORIZED — no key, an unknown key, or a revoked one.
- 403
API_DISABLED — API access is switched off for the business.
- 404
NOT_FOUND.
- 409
INVALID_TRANSITION — the parcel is already picked up, or the order ended.
- 429
RATE_LIMITED — more than 60 requests a minute on this key.
curl -X POST "https://api-stg.tandelivery.ge/partner/v1/orders/0f8b2c6e-3c1d-4f7a-9d55-a2e4c39a1b07/cancel" \ -H "Authorization: Bearer $TAN_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "reason": "The customer cancelled"}'{ "id": "0f8b2c6e-3c1d-4f7a-9d55-a2e4c39a1b07", "reference": "#9A1B07", "externalRef": "SHOP-1001", "livemode": false, "status": "Cancelled", "paymentStatus": null, "price": { "amount": 6.96, "currency": "GEL" }, "pickup": { "pickupPointId": null, "address": "წერეთლის 116", "lat": 41.7381, "lng": 44.7713 }, "recipient": { "name": "გიორგი მაისურაძე", "phone": "+995555123456" }, "dropoff": { "address": "ჭავჭავაძის 37", "city": "თბილისი", "lat": 41.7151, "lng": 44.7571, "entrance": null, "floor": "3", "apartment": "12", "note": "დარეკეთ მისვლამდე" }, "package": { "weightKg": 1.5, "category": "electronics", "description": "ყურსასმენები" }, "insured": false, "declaredValue": null, "serviceTier": "standard", "scheduledPickupAt": null, "createdAt": "2026-11-25T10:00:00Z", "updatedAt": "2026-11-25T10:00:01Z", "statusHistory": [ { "status": "Created", "at": "2026-11-25T10:00:00Z" }, { "status": "Published", "at": "2026-11-25T10:00:01Z" }, { "status": "Cancelled", "at": "2026-11-25T10:02:00Z" } ]}What happened to this key's mode's orders since the event you name, oldest first.
The same events a webhook receives (ping aside), for this key's mode — a test key sees test events only. Start without after to read from the oldest kept (30 days); then always pass the next you were given. An event shows up here a few seconds after it happens, never out of order. With no webhook set nothing else is needed: poll this every few seconds, or as often as your system can wait.
პარამეტრები
afterstring · query-შიThe
idof the last event you handled (the previous call'snext). An id that is unknown — older than 30 days, or of another business or mode — is a 400 VALIDATION_ERROR: start again without it.limitinteger · query-ში
პასუხები
- 200
Up to
limitevents afterafter, oldest first. - 400
VALIDATION_ERROR —
details.fieldsnames each bad field. - 401
UNAUTHORIZED — no key, an unknown key, or a revoked one.
- 403
API_DISABLED — API access is switched off for the business.
- 429
RATE_LIMITED — more than 60 requests a minute on this key.
curl -X GET "https://api-stg.tandelivery.ge/partner/v1/events?after=3f1a9c20-6b7e-4d2a-8c55-0e4b7a9d2c11" \ -H "Authorization: Bearer $TAN_API_KEY"{ "data": [ { "id": "7e0c3a52-81f4-4c43-9a8e-5b1d2f6c0e19", "type": "order.status_changed", "livemode": false, "createdAt": "2026-11-25T10:05:20Z", "data": { "status": "Accepted", "paymentStatus": null, "order": { "id": "0f8b2c6e-3c1d-4f7a-9d55-a2e4c39a1b07", "reference": "#9A1B07", "externalRef": "SHOP-1001", "livemode": false, "status": "Accepted", "paymentStatus": null, "price": { "amount": 6.96, "currency": "GEL" }, "pickup": { "pickupPointId": null, "address": "წერეთლის 116", "lat": 41.7381, "lng": 44.7713 }, "recipient": { "name": "გიორგი მაისურაძე", "phone": "+995555123456" }, "dropoff": { "address": "ჭავჭავაძის 37", "city": "თბილისი", "lat": 41.7151, "lng": 44.7571, "entrance": null, "floor": "3", "apartment": "12", "note": "დარეკეთ მისვლამდე" }, "package": { "weightKg": 1.5, "category": "electronics", "description": "ყურსასმენები" }, "insured": false, "declaredValue": null, "serviceTier": "standard", "scheduledPickupAt": null, "createdAt": "2026-11-25T10:00:00Z", "updatedAt": "2026-11-25T10:00:01Z", "statusHistory": [ { "status": "Created", "at": "2026-11-25T10:00:00Z" }, { "status": "Published", "at": "2026-11-25T10:00:01Z" } ] } } } ], "hasMore": false, "next": "7e0c3a52-81f4-4c43-9a8e-5b1d2f6c0e19"}