LangLion Developer Wiki

⚠️ APIv2 is legacy

APIv2 is considered legacy and is no longer recommended for new integrations.

We strongly encourage you to use APIv4 for all new integrations and to migrate existing integrations where possible.

Please refer to our latest APIv4 documentation for up-to-date information and integration guidelines:

Click here to view the APIv4 example documentation - your own documentation is at https://[your-instance].langlion.com/api/v4/docs

List all transactions - GET /api/v2/transactions

Returns a list of the all transactions. Transactions are returned sorted by 'id' field in increasing order.

Request

1curl -G 'https://test.langlion.com/api/v2/transactions' \
2--header 'Authorization: Bearer af2b3df9c671d5413fc5c38b467794782b4047705ac3...'

Response

  1{
  2  "id": 1,
  3  "date": "2025-08-12",
  4  "description": "string",
  5  "paidAt": "2025-08-12",
  6  "dueDate": "2025-08-12",
  7  "nettoValue": 0,
  8  "bruttoValue": 0,
  9  "paidAmount": 0,
 10  "leftAmount": 0,
 11  "needConfirmation": true,
 12  "statusName": "string",
 13  "typeName": "string",
 14  "isImported": true,
 15  "createdAt": "2025-08-12",
 16  "updatedAt": "2025-08-12",
 17  "paymentForm": {
 18    "id": 0,
 19    "name": "string",
 20    "needConfirmation": true,
 21    "createCounterDocument": true,
 22    "createdAt": "2025-08-12",
 23    "updatedAt": "2025-08-12",
 24    "school": {
 25      "id": 1,
 26      "name": "string",
 27      "shortName": "string",
 28      "createdAt": "2025-08-12",
 29      "updatedAt": "2025-08-12"
 30    },
 31    "cashRegister": {
 32      "id": 1,
 33      "name": "string",
 34      "createdAt": "2025-08-12",
 35      "updatedAt": "2025-08-12",
 36      "school": {
 37        "id": 1,
 38        "name": "string",
 39        "shortName": "string",
 40        "createdAt": "2025-08-12",
 41        "updatedAt": "2025-08-12"
 42      }
 43    }
 44  },
 45  "creator": {
 46    "id": 0,
 47    "login": "string",
 48    "name": "string",
 49    "firstName": "string",
 50    "lastName": "string",
 51    "fullname": "string",
 52    "systemRole": "string",
 53    "isArchived": true,
 54    "photo": "string",
 55    "language": "string",
 56    "tosAccepted": true,
 57    "type": 0,
 58    "typeName": "string",
 59    "createdAt": "2025-08-12",
 60    "updatedAt": "2025-08-12",
 61    "additionalData": {
 62      "id": 0,
 63      "phone": "string",
 64      "mobile": "string",
 65      "email": "string",
 66      "skype": "string",
 67      "street": "string",
 68      "zipCode": "string",
 69      "city": "string",
 70      "country": "string",
 71      "post": "string",
 72      "province": "string",
 73      "pesel": "string",
 74      "nipNumber": "string",
 75      "birthDate": "string",
 76      "birthPlace": "string",
 77      "description": "string",
 78      "billingName": "string",
 79      "billingStreet": "string",
 80      "billingCity": "string",
 81      "billingZipCode": "string",
 82      "billingNipNumber": "string",
 83      "billingPesel": "string",
 84      "billingEmail": "string",
 85      "createdAt": "2025-08-12",
 86      "updatedAt": "2025-08-12"
 87    },
 88    "parentUser": "string"
 89  },
 90  "user": {
 91    "id": 0,
 92    "login": "string",
 93    "name": "string",
 94    "firstName": "string",
 95    "lastName": "string",
 96    "fullname": "string",
 97    "systemRole": "string",
 98    "isArchived": true,
 99    "photo": "string",
100    "language": "string",
101    "tosAccepted": true,
102    "type": 0,
103    "typeName": "string",
104    "createdAt": "2025-08-12",
105    "updatedAt": "2025-08-12",
106    "additionalData": {
107      "id": 0,
108      "phone": "string",
109      "mobile": "string",
110      "email": "string",
111      "skype": "string",
112      "street": "string",
113      "zipCode": "string",
114      "city": "string",
115      "country": "string",
116      "post": "string",
117      "province": "string",
118      "pesel": "string",
119      "nipNumber": "string",
120      "birthDate": "string",
121      "birthPlace": "string",
122      "description": "string",
123      "billingName": "string",
124      "billingStreet": "string",
125      "billingCity": "string",
126      "billingZipCode": "string",
127      "billingNipNumber": "string",
128      "billingPesel": "string",
129      "billingEmail": "string",
130      "createdAt": "2025-08-12",
131      "updatedAt": "2025-08-12"
132    },
133    "parentUser": "string"
134  },
135  "client": {
136    "id": 0,
137    "name": "string",
138    "shortName": "string",
139    "reckoningType": "string",
140    "createdAt": "2025-08-12",
141    "updatedAt": "2025-08-12",
142    "user": {
143      "id": 0,
144      "login": "string",
145      "name": "string",
146      "firstName": "string",
147      "lastName": "string",
148      "fullname": "string",
149      "systemRole": "string",
150      "isArchived": true,
151      "photo": "string",
152      "language": "string",
153      "tosAccepted": true,
154      "type": 0,
155      "typeName": "string",
156      "createdAt": "2025-08-12",
157      "updatedAt": "2025-08-12",
158      "additionalData": {
159        "id": 0,
160        "phone": "string",
161        "mobile": "string",
162        "email": "string",
163        "skype": "string",
164        "street": "string",
165        "zipCode": "string",
166        "city": "string",
167        "country": "string",
168        "post": "string",
169        "province": "string",
170        "pesel": "string",
171        "nipNumber": "string",
172        "birthDate": "string",
173        "birthPlace": "string",
174        "description": "string",
175        "billingName": "string",
176        "billingStreet": "string",
177        "billingCity": "string",
178        "billingZipCode": "string",
179        "billingNipNumber": "string",
180        "billingPesel": "string",
181        "billingEmail": "string",
182        "createdAt": "2025-08-12",
183        "updatedAt": "2025-08-12"
184      },
185      "parentUser": "string"
186    }
187  },
188  "school": {
189    "id": 0,
190    "name": "string",
191    "shortName": "string",
192    "createdAt": "2025-08-12",
193    "updatedAt": "2025-08-12"
194  }
195}

Parameters

Required
No required parameters.

Optional

  • userId (integer) - Get Transactions for User by userId
  • schoolClassId (integer)
  • createdAt (string)
  • createdAt[operator]

Operators:

1{
2  "eq": "string",
3  "gt": "string",
4  "gte": "string",
5  "lt": "string",
6  "lte": "string"
7}

Get one transaction - GET /api/v2/transactions/:id

Request

1curl -G 'https://test.langlion.com/api/v2/transactions/:id' \
2--header 'Authorization: Bearer af2b3df9c671d5413fc5c38b467794782b4047705ac3...'

Response

  1{
  2  "id": 0,
  3  "date": "2025-08-12",
  4  "description": "string",
  5  "paidAt": "2025-08-12",
  6  "dueDate": "2025-08-12",
  7  "nettoValue": 0,
  8  "bruttoValue": 0,
  9  "paidAmount": 0,
 10  "leftAmount": 0,
 11  "needConfirmation": true,
 12  "statusName": "string",
 13  "typeName": "string",
 14  "isImported": true,
 15  "createdAt": "2025-08-12",
 16  "updatedAt": "2025-08-12",
 17  "paymentForm": {
 18    "id": 0,
 19    "name": "string",
 20    "needConfirmation": true,
 21    "createCounterDocument": true,
 22    "createdAt": "2025-08-12",
 23    "updatedAt": "2025-08-12",
 24    "school": {
 25      "id": 0,
 26      "name": "string",
 27      "shortName": "string",
 28      "createdAt": "2025-08-12",
 29      "updatedAt": "2025-08-12"
 30    },
 31    "cashRegister": {
 32      "id": 0,
 33      "name": "string",
 34      "createdAt": "2025-08-12",
 35      "updatedAt": "2025-08-12",
 36      "school": {
 37        "id": 0,
 38        "name": "string",
 39        "shortName": "string",
 40        "createdAt": "2025-08-12",
 41        "updatedAt": "2025-08-12"
 42      }
 43    }
 44  },
 45  "creator": {
 46    "id": 0,
 47    "login": "string",
 48    "name": "string",
 49    "firstName": "string",
 50    "lastName": "string",
 51    "fullname": "string",
 52    "systemRole": "string",
 53    "isArchived": true,
 54    "photo": "string",
 55    "language": "string",
 56    "tosAccepted": true,
 57    "type": 0,
 58    "typeName": "string",
 59    "createdAt": "2025-08-12",
 60    "updatedAt": "2025-08-12",
 61    "additionalData": {
 62      "id": 0,
 63      "phone": "string",
 64      "mobile": "string",
 65      "email": "string",
 66      "skype": "string",
 67      "street": "string",
 68      "zipCode": "string",
 69      "city": "string",
 70      "country": "string",
 71      "post": "string",
 72      "province": "string",
 73      "pesel": "string",
 74      "nipNumber": "string",
 75      "birthDate": "string",
 76      "birthPlace": "string",
 77      "description": "string",
 78      "billingName": "string",
 79      "billingStreet": "string",
 80      "billingCity": "string",
 81      "billingZipCode": "string",
 82      "billingNipNumber": "string",
 83      "billingPesel": "string",
 84      "billingEmail": "string",
 85      "createdAt": "2025-08-12",
 86      "updatedAt": "2025-08-12"
 87    },
 88    "parentUser": "string"
 89  },
 90  "user": {
 91    "id": 0,
 92    "login": "string",
 93    "name": "string",
 94    "firstName": "string",
 95    "lastName": "string",
 96    "fullname": "string",
 97    "systemRole": "string",
 98    "isArchived": true,
 99    "photo": "string",
100    "language": "string",
101    "tosAccepted": true,
102    "type": 0,
103    "typeName": "string",
104    "createdAt": "2025-08-12",
105    "updatedAt": "2025-08-12",
106    "additionalData": {
107      "id": 0,
108      "phone": "string",
109      "mobile": "string",
110      "email": "string",
111      "skype": "string",
112      "street": "string",
113      "zipCode": "string",
114      "city": "string",
115      "country": "string",
116      "post": "string",
117      "province": "string",
118      "pesel": "string",
119      "nipNumber": "string",
120      "birthDate": "string",
121      "birthPlace": "string",
122      "description": "string",
123      "billingName": "string",
124      "billingStreet": "string",
125      "billingCity": "string",
126      "billingZipCode": "string",
127      "billingNipNumber": "string",
128      "billingPesel": "string",
129      "billingEmail": "string",
130      "createdAt": "2025-08-12",
131      "updatedAt": "2025-08-12"
132    },
133    "parentUser": "string"
134  },
135  "client": {
136    "id": 0,
137    "name": "string",
138    "shortName": "string",
139    "reckoningType": "string",
140    "createdAt": "2025-08-12",
141    "updatedAt": "2025-08-12",
142    "user": {
143      "id": 0,
144      "login": "string",
145      "name": "string",
146      "firstName": "string",
147      "lastName": "string",
148      "fullname": "string",
149      "systemRole": "string",
150      "isArchived": true,
151      "photo": "string",
152      "language": "string",
153      "tosAccepted": true,
154      "type": 0,
155      "typeName": "string",
156      "createdAt": "2025-08-12",
157      "updatedAt": "2025-08-12",
158      "additionalData": {
159        "id": 0,
160        "phone": "string",
161        "mobile": "string",
162        "email": "string",
163        "skype": "string",
164        "street": "string",
165        "zipCode": "string",
166        "city": "string",
167        "country": "string",
168        "post": "string",
169        "province": "string",
170        "pesel": "string",
171        "nipNumber": "string",
172        "birthDate": "string",
173        "birthPlace": "string",
174        "description": "string",
175        "billingName": "string",
176        "billingStreet": "string",
177        "billingCity": "string",
178        "billingZipCode": "string",
179        "billingNipNumber": "string",
180        "billingPesel": "string",
181        "billingEmail": "string",
182        "createdAt": "2025-08-12",
183        "updatedAt": "2025-08-12"
184      },
185      "parentUser": "string"
186    }
187  },
188  "school": {
189    "id": 0,
190    "name": "string",
191    "shortName": "string",
192    "createdAt": "2025-08-12",
193    "updatedAt": "2025-08-12"
194  }
195}

Parameters

Required
No required parameters.

Optional
No optional parameters.

Create transaction - POST /api/v2/transaction

Request

 1
 2curl --location --request POST 'https://test.langlion.com/api/v2/transaction' \
 3--header 'Authorization: Bearer f88bba34ffff68f4235d8ae0581[...]' \
 4--form 'userId="1"' \
 5--form 'schoolId="1"' \
 6--form 'date="11.11.2024"' \
 7--form 'dueDate=""'
 8--form 'paymentFormId="1"'
 9--form 'description=""'
10--form 'paidAmount="299,99"'
11--form 'leftAmount="0,00"'
12--form 'currencyFromId="1"'
13--form 'currencyExchangeRate="1"'
14--form 'currencyExchangeRateSource="1"'
15--form 'bankTransferId=""'
16--form 'cashRegisterId="1"'
17--form 'products[0][id]="1"'
18--form 'products[0][name]="1"'
19--form 'products[0][typeName]="1"'
20--form 'products[0][type]="1"'
21--form 'products[0][nettoPrice]="1"'
22--form 'products[0][bruttoValue]="1"'
23--form 'products[0][quantity]="1"'
24--form 'products[0][measureUnit]="1"'
25--form 'products[0][vatRateId]="1"'
26--form 'products[0][vatValue]="1"'
27--form 'products[0][nettoValue]="1"'
28--form 'products[0][vatPercent]="1"'
29--form 'products[0][vatSymbol]="1"'
30--form 'products[0][productId]="1"'
31--form 'products[0][gtu]="1"'
32--form 'products[0][pkwiuNumber]="1"'
33--form 'products[0][installmentId]=""'
34--form 'products[0][schoolClassId]="1"'
35--form 'products[0][reckoningId]=""'

Response

 1{
 2    "data": {
 3        "transaction": {
 4            "id": 16,
 5            "date": "2025-07-31 00:00:00",
 6            "dueDate": null,
 7            "nettoValue": 123,
 8            "bruttoValue": 123,
 9            "description": "description",
10            "paymentForm": "Gotówka",
11            "createdAt": "2025-08-13 13:20:29",
12            "transactionProducts": [
13                {
14                    "id": 25,
15                    "invoiceId": null,
16                    "name": "product name",
17                    "quantity": "1",
18                    "measureUnit": "szt.",
19                    "pkwiuNumber": null,
20                    "nettoPrice": 123,
21                    "nettoValue": 123,
22                    "bruttoValue": 123,
23                    "vatPercent": 0,
24                    "vatValue": 123,
25                    "vatSymbol": "zw",
26                    "productId": 1,
27                    "reckoningId": null,
28                    "schoolClassName": "school class name"
29                }
30            ],
31            "transactionPayments": [],
32            "user": {
33                "id": 30,
34                "systemRole": "student",
35                "name": "School name"
36            }
37        }
38    }
39}

Parameters

Required

  • userId - user id
  • schoolId - school id
  • date - date in format d.m.Y
  • dueDate - due date in format d.m.Y or empty string
  • paymentFormId - payment form id, allowed values: 1 - cash, 2 - transfer
  • description - description
  • paidAmount - paid amount
  • leftAmount - left amount
  • currencyFromId - currency from id, allowed values: 1 - PLN, 2 - EUR, 3 - USD
  • currencyExchangeRate - currency exchange rate, 1 by default
  • currencyExchangeRateSource - currency exchange rate source, allowed values: 1 - PLN, 2 - EUR, 3 - USD
  • bankTransferId - bank transfer id
  • cashRegisterId - cash register id
  • All products[0] props can be passed from /products endpoint

Optional
No optional parameters.

Update transaction - PATCH /api/v2/transaction/:id

Request

 1
 2curl --location --request POST 'https://test.langlion.com/api/v2/transaction/:id' \
 3--header 'Authorization: Bearer f88bba34ffff68f4235d8ae0581[...]' \
 4--form 'userId="1"' \
 5--form 'schoolId="1"' \
 6--form 'date="11.11.2024"' \
 7--form 'dueDate=""'
 8--form 'paymentFormId="1"'
 9--form 'description=""'
10--form 'paidAmount="299,99"'
11--form 'leftAmount="0,00"'
12--form 'currencyFromId="1"'
13--form 'currencyExchangeRate="1"'
14--form 'currencyExchangeRateSource="1"'
15--form 'bankTransferId=""'
16--form 'cashRegisterId="1"'
17--form 'products[0][id]="1"'
18--form 'products[0][name]="1"'
19--form 'products[0][typeName]="1"'
20--form 'products[0][type]="1"'
21--form 'products[0][nettoPrice]="1"'
22--form 'products[0][bruttoValue]="1"'
23--form 'products[0][quantity]="1"'
24--form 'products[0][measureUnit]="1"'
25--form 'products[0][vatRateId]="1"'
26--form 'products[0][vatValue]="1"'
27--form 'products[0][nettoValue]="1"'
28--form 'products[0][vatPercent]="1"'
29--form 'products[0][vatSymbol]="1"'
30--form 'products[0][productId]="1"'
31--form 'products[0][gtu]="1"'
32--form 'products[0][pkwiuNumber]="1"'
33--form 'products[0][installmentId]=""'
34--form 'products[0][schoolClassId]="1"'
35--form 'products[0][reckoningId]=""'

Response

  1{
  2    "data": {
  3        "transaction": {
  4            "id": 86,
  5            "date": "2025-07-17 00:00:00",
  6            "description": null,
  7            "paidAt": "2025-07-17 00:00:00",
  8            "dueDate": null,
  9            "nettoValue": "1.00",
 10            "bruttoValue": "1.00",
 11            "paidAmount": "1.00",
 12            "leftAmount": "0.00",
 13            "needConfirmation": false,
 14            "statusName": "paid",
 15            "typeName": "usual",
 16            "isImported": false,
 17            "createdAt": "2025-07-17 15:57:03",
 18            "updatedAt": "2025-07-17 17:29:13",
 19            "paymentForm": {
 20                "id": 1,
 21                "name": "Gotówka",
 22                "needConfirmation": 0,
 23                "createCounterDocument": 1,
 24                "createdAt": "2013-05-06 11:35:00",
 25                "updatedAt": "2018-03-29 10:32:03",
 26                "school": {
 27                    "id": 1,
 28                    "name": "School name",
 29                    "shortName": "School short name",
 30                    "createdAt": null,
 31                    "updatedAt": "2018-01-03 11:53:55"
 32                },
 33                "cashRegister": null
 34            },
 35            "creator": {
 36                "id": 32,
 37                "login": "administrator",
 38                "name": "administrator",
 39                "firstName": "administrator",
 40                "lastName": "administrator",
 41                "fullname": "administrator",
 42                "systemRole": "administrator",
 43                "isArchived": 0,
 44                "photo": null,
 45                "language": "pl_PL",
 46                "tosAccepted": 1,
 47                "type": null,
 48                "typeName": null,
 49                "createdAt": "2025-05-09 15:40:05",
 50                "updatedAt": "2025-07-29 10:08:00",
 51                "additionalData": {
 52                    "id": 211,
 53                    "phone": null,
 54                    "mobile": null,
 55                    "email": null,
 56                    "skype": null,
 57                    "street": null,
 58                    "zipCode": null,
 59                    "city": null,
 60                    "country": null,
 61                    "post": null,
 62                    "province": null,
 63                    "pesel": null,
 64                    "nipNumber": null,
 65                    "birthDate": null,
 66                    "birthPlace": null,
 67                    "description": null,
 68                    "billingName": null,
 69                    "billingStreet": null,
 70                    "billingCity": null,
 71                    "billingZipCode": null,
 72                    "billingNipNumber": null,
 73                    "billingPesel": null,
 74                    "billingEmail": null,
 75                    "billingInvoiceDueDays": null,
 76                    "createdAt": "2025-05-09 15:40:04",
 77                    "updatedAt": "2025-05-09 15:40:04"
 78                },
 79                "parentUser": null
 80            },
 81            "user": {
 82                "id": 5,
 83                "login": "login",
 84                "name": "login",
 85                "firstName": "login",
 86                "lastName": "login",
 87                "fullname": "login",
 88                "systemRole": "student",
 89                "isArchived": 0,
 90                "photo": null,
 91                "language": "pl_PL",
 92                "tosAccepted": 1,
 93                "type": 0,
 94                "typeName": "normal",
 95                "createdAt": "2017-12-18 16:16:38",
 96                "updatedAt": "2025-04-29 11:51:44",
 97                "additionalData": {
 98                    "id": 4,
 99                    "phone": null,
100                    "mobile": null,
101                    "email": "support@langlion.com",
102                    "skype": null,
103                    "street": null,
104                    "zipCode": null,
105                    "city": null,
106                    "country": null,
107                    "post": null,
108                    "province": null,
109                    "pesel": null,
110                    "nipNumber": null,
111                    "birthDate": null,
112                    "birthPlace": null,
113                    "description": null,
114                    "billingName": null,
115                    "billingStreet": null,
116                    "billingCity": null,
117                    "billingZipCode": null,
118                    "billingNipNumber": null,
119                    "billingPesel": null,
120                    "billingEmail": null,
121                    "billingInvoiceDueDays": null,
122                    "createdAt": "2017-12-18 16:16:38",
123                    "updatedAt": "2025-07-23 14:15:42"
124                },
125                "parentUser": {
126                    "id": 6,
127                    "login": "loginR",
128                    "name": null,
129                    "firstName": null,
130                    "lastName": null,
131                    "fullname": null,
132                    "systemRole": "parent",
133                    "isArchived": 0,
134                    "photo": null,
135                    "language": "pl_PL",
136                    "tosAccepted": 0,
137                    "type": null,
138                    "typeName": null,
139                    "createdAt": "2017-12-18 16:16:38",
140                    "updatedAt": "2020-09-21 16:18:11",
141                    "additionalData": {
142                        "id": 5,
143                        "phone": null,
144                        "mobile": null,
145                        "email": null,
146                        "skype": null,
147                        "street": null,
148                        "zipCode": null,
149                        "city": null,
150                        "country": null,
151                        "post": null,
152                        "province": null,
153                        "pesel": null,
154                        "nipNumber": null,
155                        "birthDate": null,
156                        "birthPlace": null,
157                        "description": null,
158                        "billingName": null,
159                        "billingStreet": null,
160                        "billingCity": null,
161                        "billingZipCode": null,
162                        "billingNipNumber": null,
163                        "billingPesel": null,
164                        "billingEmail": null,
165                        "billingInvoiceDueDays": null,
166                        "createdAt": "2017-12-18 16:16:38",
167                        "updatedAt": "2025-05-05 12:14:53"
168                    },
169                    "parentUser": null
170                }
171            },
172            "client": null,
173            "school": {
174                "id": 1,
175                "name": "School name",
176                "shortName": "School short name",
177                "createdAt": null,
178                "updatedAt": "2018-01-03 11:53:55"
179            }
180        }
181    }
182}

Parameters

Required

  • id - transaction id
  • userId - user id
  • schoolId - school id
  • date - date in format d.m.Y
  • dueDate - due date in format d.m.Y or empty string
  • paymentFormId - payment form id, allowed values: 1 - cash, 2 - transfer
  • description - description
  • paidAmount - paid amount
  • leftAmount - left amount
  • currencyFromId - currency from id, allowed values: 1 - PLN, 2 - EUR, 3 - USD
  • currencyExchangeRate - currency exchange rate, 1 by default
  • currencyExchangeRateSource - currency exchange rate source, allowed values: 1 - PLN, 2 - EUR, 3 - USD
  • bankTransferId - bank transfer id
  • cashRegisterId - cash register id
  • All products[0] props can be passed from /products endpoint

Optional
No optional parameters.