Co přesně je dávka? Každá transakce, kterou vytvoříte, patří do tzv. dávky. Stejně jako účtenka má každá dávka své číslo a je balíčkem transakcí. Uzávěrka je administrativní operace, pomocí které terminál uzavře dávku a vyzve systémy, aby se dávka uzavřela a otevřela nová.
Inicializace uzávěrky
Tranzacția poate fi inițiată prin apel:
gptom://batch/close?…
unde următorii parametri sunt utilizați pentru a crea raportul:
Variabilă/câmp
Format/Format
Descriere/Descriere
Exemplu
clientID
șir
redirectUrl
șir
CZ: URL vaší aplikace na kterou přesměrujeme klienta po dokončení uzávěrky.
EN: The URL of your application to which we will redirect the client after the close batch is complete.
EN: The URL of your application to which we will redirect the client after the close batch is complete.
fb://Success
printarePaymentApp
bool
CZ: Definește dacă chitanța este transmisă clientului de aplicația dvs. sau de GP tom. Valoarea implicită este true (adică GP tom va oferi metoda de transmitere a chitanței către client). Dacă trimiteți valoarea “false”, vom returna utilizatorul către aplicația dvs. imediat după tranzacție și depinde de dvs. să transmiteți chitanța.
EN: Defines whether the receipt is passed to the client by your application or GP tom. The default value is true (i.e. GP will offer a way to pass the receipt to the client). If you send a value of "false", we return the user to your app immediately after the transaction and it's up to you to pass the receipt.
EN: Defines whether the receipt is passed to the client by your application or GP tom. The default value is true (i.e. GP will offer a way to pass the receipt to the client). If you send a value of "false", we return the user to your app immediately after the transaction and it's up to you to pass the receipt.
adevărat/fals
preferabilReceiptType
enum (sms,email,qr,print)
CZ: În cazul trimiterii unei chitanțe din aplicația GP tom, este posibil să se predefinească metoda de trimitere a chitanței prin API. Valorile posibile sunt:
RO: În cazul trimiterii unei chitanțe din aplicația GP tom, este posibil să se predefinească metoda de trimitere a chitanței prin API. Valorile posibile sunt:
TELEFON
EMAIL
QR
IMPRIMARE
RO: În cazul trimiterii unei chitanțe din aplicația GP tom, este posibil să se predefinească metoda de trimitere a chitanței prin API. Valorile posibile sunt:
TELEFON
QR
IMPRIMARE
text
clientPhone
șir
CZ: Numărul de telefon al clientului.
RO: Numărul de telefon al clientului.
RO: Numărul de telefon al clientului.
+420606505404
clientEmail
șir
CZ: Adresa de e-mail a clientului.
RO: Adresa de e-mail a clientului.
RO: Adresa de e-mail a clientului.
info@gptom.com
Exemplu de apel:
gptom://batch/close?preferableReceiptType=QR&redirectUrl=gp://batch/close&clientEmail=info@gptom.com&clientID=223&printByPaymentApp=true&clientPhone=+420606505404
Răspunsul va conține următoarele câmpuri:
Variabilă/câmp
Format/Format
Descriere/Descriere
Exemplu/Exemplu
STAREA SARCINII
CZ: Dává odpověď v jakém stavu skončil daný požadavek.
RO: Oferă informații despre statul în care s-a încheiat cererea dumneavoastră.
RO: Oferă informații despre statul în care s-a încheiat cererea dumneavoastră.
COMPLETAT
ANULAT
ERROR
ANULAT
ERROR
communicationId
12345678
voidAmount
CZ: Celková výška stornovaných transakcí.
EN: Total amount of voided transactions.
EN: Total amount of voided transactions.
5
suma totală
CZ: Celková částka uzávěrky.
EN: Total amount of close batch.
EN: Total amount of close batch.
100
totalCount
CZ: Počet všech transakcí v uzávěrce.
EN: Number of all transactions in the close batch.
EN: Number of all transactions in the close batch.
15
saleAmount
CZ: Celková výška transakcí PRODEJ.
EN: Total amount of SALE transactions.
EN: Total amount of SALE transactions.
105
voidCount
CZ: Počet stornovaných transakcí v uzávěrce.
EN: Amount of voided transactions in the close batch.
EN: Amount of voided transactions in the close batch.
1
previousBatchDate
CZ: Datum předchozí uzávěrky.
EN: Date of the previous batch.
EN: Date of the previous batch.
2024-10-20T15:11:08.152Z
data
CZ: Datum provedení aktuální uzávěrky.
EN: Date of processing this close batch.
EN: Date of processing this close batch.
2024-10-29T12:14:00.198Z
saleCount
CZ: Počet transakcí PRODEJ v uzávěrce.
EN: Number of SALE transactions in the close batch.
EN: Number of SALE transactions in the close batch.
14
firstTransactionDate
CZ: Datum první transakce v uzávěrce.
EN: Date of the first transaction in the close batch.
EN: Date of the first transaction in the close batch.
2024-10-21T17:19:20.015Z
subBatches
CZ: Zde najdete rozpis dle platební metody.
EN: Here you will find overview per payment method.
EN: Here you will find overview per payment method.
CASH
CARD
CARD
