ResultCode. 0000 means success; any other code tells exactly what went wrong. See Errors for the response format and how multiple errors are returned.
Code structure
The first two digits identify the area and the last two digits the error within that area, so a code tells you at a glance where the error comes from.| Range | Area |
|---|---|
00xx | General |
01xx | Authentication, permissions and request limits |
02xx | Request headers |
05xx | Definitions (050x country, 051x city, 052x district, 053x shipment definition, 054x currency, 055x unit, 056x line group, 058x matching by text) |
10xx | Customer |
11xx | Address |
12xx | Telephone |
13xx | Link |
14xx | Representative |
15xx | Bank account |
16xx | Group membership |
17xx | Parameter |
19xx | Parameter definition |
40xx | Warehouse |
41xx | Section |
42xx | Product stock status |
20xx | Product |
21xx | Product group detail |
22xx | Product parameter |
23xx | Product price |
24xx | Product critical stock definition |
25xx | Product parameter definition |
30xx | Invoice |
31xx | Invoice line |
32xx | Invoice line discount |
33xx | Invoice Lot |
34xx | Invoice serial number |
50xx | Quote |
51xx | Quote line |
52xx | Quote line discount |
60xx | Order |
61xx | Order line |
62xx | Order line discount |
70xx | Despatch |
71xx | Despatch line |
72xx | Despatch line discount |
73xx | Lot |
74xx | Serial number |
800x | Bank |
801x | Company bank account |
802x | Repayment plan |
803x | Commission rate |
804x | Customer transactions |
81xx | Bank transfer voucher |
82xx | Bank transfer line |
83xx | Bank opening voucher |
84xx | Bank opening line |
85xx | Bank internal transfer voucher |
86xx | Bank internal transfer line |
87xx | Credit card collection voucher |
88xx | Credit card collection line |
1xxx belongs to the customer module, 2xxx to products, 3xxx to invoices, 4xxx to stock, 5xxx to quotes, 6xxx to orders, 7xxx to despatches and 8xxx to the Finance module (bank/cash/customer transactions).
The meaning of a published code never changes; new situations get new codes. Integration logic based on codes is therefore safe. If you receive a code you do not recognize, act on the HTTP status code.
General
| Code | HTTP | Meaning |
|---|---|---|
0000 | 200, 201 | Success |
0001 | 500 | Unexpected server error |
0002 | 400 | Request body could not be read (malformed JSON, wrong field type), or it contains a field the endpoint does not have |
0003 | 400 | A field exceeds its maximum length (the message names the field and the limit) |
0004 | 400 | A numeric value is larger than the allowed range, or a date is earlier than the supported minimum (1753-01-01) |
0005 | 404 | No endpoint matches the URL (check the path and that IDs in it are valid GUIDs) |
0006 | 405 | This HTTP method is not supported for this URL |
0007 | 415 | Unsupported Content-Type; send the body as application/json |
0011 | 400 | sortBy is invalid |
0012 | 400 | sortDirection must be asc or desc |
Authentication, permissions and limits
| Code | HTTP | Meaning |
|---|---|---|
0101 | 401 | Token missing or invalid |
0102 | 401 | Token expired, refresh it |
0103 | 401 | Token is missing API key claims |
0110 | 403 | The key lacks the permission for this operation |
0120 | 429 | Daily request limit exceeded |
0121 | 429 | Per-second rate limit exceeded |
Request headers
| Code | HTTP | Meaning |
|---|---|---|
0201 | 400 | X-UserID not sent |
0202 | 400 | X-UserID is not an integer greater than 0 |
0203 | 400 | X-CompanyID not sent |
0204 | 400 | X-CompanyID is not an integer greater than 0 |
0205 | 400 | X-PeriodID is not an integer greater than 0 |
0210 | 400 | User not found or deleted |
0211 | 400 | Company not found, or the user is not assigned to it |
Definitions
| Code | HTTP | Meaning |
|---|---|---|
0500 | 404 | Country not found |
0501 | 400 | Country Name is required |
0502 | 400 | The country name is already used in the company; the response carries the existing record’s ID as ExistingId |
0503 | 400 | The country cannot be deleted because it has cities |
0510 | 404 | City not found |
0511 | 400 | City Name is required |
0512 | 400 | The city name is already used in the same country; the response carries the existing record’s ID as ExistingId |
0513 | 400 | Country is required |
0514 | 400 | Country in Country not found |
0515 | 400 | The city cannot be deleted because it has districts |
0516 | 400 | The Country of a city cannot be changed |
0520 | 404 | District not found |
0521 | 400 | District Name is required |
0522 | 400 | The district name is already used in the same city; the response carries the existing record’s ID as ExistingId |
0523 | 400 | City is required |
0524 | 400 | City in City not found |
0525 | 400 | The district cannot be deleted because it is used in customer addresses |
0526 | 400 | The City of a district cannot be changed |
0530 | 404 | Shipment definition not found |
0531 | 400 | Shipment definition Code is required |
0532 | 400 | The shipment code is already used in the company; the response carries the existing record’s ID as ExistingId |
0533 | 400 | TransportMode must be 1 (road), 2 (rail), 3 (maritime) or 4 (air) |
0534 | 400 | The shipment definition cannot be deleted because it is used by customers |
0535 | 400 | TransportInfo1 is required (plate, train, vessel or aircraft information) |
0536 | 400 | If any carrier field is filled, all five are required |
0537 | 400 | Driver 1 fields (first name, last name, national ID) are required when there is no carrier company |
0540 | 404 | Currency not found |
0541 | 400 | Currency Name is required |
0542 | 400 | The currency name is already used in the company; the response carries the existing record’s ID as ExistingId |
0543 | 400 | Currency Code is required |
0544 | 400 | The currency code is already used in the company; the response carries the existing record’s ID as ExistingId |
0545 | 400 | The default currency cannot be deleted |
0546 | 400 | The currency cannot be deleted because it is used in a record (invoice, order, quote, despatch, warehouse slip, cash voucher, bank account, …) |
0550 | 404 | Unit not found |
0551 | 400 | Unit Name is required |
0552 | 400 | The unit name is already used in the company; the response carries the existing record’s ID as ExistingId |
0553 | 400 | The unit cannot be deleted because it is used as the main unit of a product |
0560 | 404 | Line group not found |
0561 | 400 | Line group Name is required |
0562 | 400 | The line group name is already used in the company; the response carries the existing record’s ID as ExistingId |
0563 | 400 | The line group cannot be deleted because it is used in quotes or other records |
0580 | 400 | A value given as text (a code or a name) matches more than one record; add the detail that tells them apart (for example City for a district, Country for a city) |
Customer
| Code | HTTP | Meaning |
|---|---|---|
1000 | 404 | Customer not found or not visible to the user. Also returned by sub-record endpoints |
1001 | 400 | CustomerCode is required |
1002 | 400 | CustomerCode is already used by another customer in the company; the response carries that customer’s ID as ExistingId |
1003 | 400 | CustomerCode cannot be "Next" on update |
1004 | 400 | Name is required |
1005 | 400 | TaxNumber is required |
1006 | 400 | TaxNumber must be 10 (VKN) or 11 (TCKN) digits |
1007 | 400 | DueDays cannot be less than 0 |
1008 | 400 | DiscountRate must be between 0 and 100 |
1009 | 400 | RiskLimit cannot be less than 0 |
1010 | 400 | RiskControl must be 1 or 2 when RiskLimit is greater than 0 |
1011 | 400 | RiskControl must be 0, 1 or 2 |
1012 | 400 | RiskAction must be 0, 1 or 2 |
1013 | 400 | MovementType must be 1, 2 or 3 |
1014 | 400 | EInvoiceScenario must be 1-9 when EInvoiceUser is true |
1015 | 400 | EInvoiceScenario must be 0 when EInvoiceUser is false |
1016 | 400 | Note is required when a ShowNoteOn* flag is true |
1017 | 400 | SharingCode is not one of the user’s sharing codes |
1018 | 400 | Shipment definition in ShipmentDefinitionCode not found |
1020 | 400 | Invalid IdentitySchemes[].SchemeID |
1021 | 400 | The same SchemeID was sent more than once |
1022 | 400 | Value of an identity scheme is empty |
Customer code generation
Codes that can be returned whenCustomerCode: "Next" is sent. Details: Customer code generation.
| Code | HTTP | Meaning |
|---|---|---|
1080 | 400 | The company has no customer number series |
1081 | 400 | The series has no parts |
1082 | 400 | The series has a part type the API cannot generate |
1083 | 400 | The generated code exceeds the series maximum length |
1084 | 400 | The generated code is already used in the company |
1085 | 400 | No unused code could be generated after several attempts |
Address
| Code | HTTP | Meaning |
|---|---|---|
1100 | 404 | Address not found |
1101 | 400 | Address is required |
1102 | 400 | District is required |
1103 | 400 | District not found |
1104 | 400 | When several addresses are sent, exactly one must be the invoice address |
1105 | 400 | The invoice address cannot be deleted |
1106 | 400 | IsInvoiceAddress cannot be removed from the invoice address |
Telephone
| Code | HTTP | Meaning |
|---|---|---|
1200 | 404 | Telephone not found |
1201 | 400 | Number is required |
1202 | 400 | NumberType must be 1 or 2 |
Link
| Code | HTTP | Meaning |
|---|---|---|
1300 | 404 | Link not found |
1301 | 400 | Value is required |
1302 | 400 | LinkType must be between 0 and 5 |
1303 | 400 | The value of an e-mail link is not a valid e-mail address |
Representative
| Code | HTTP | Meaning |
|---|---|---|
1400 | 404 | Representative not found |
1401 | 400 | FullName is required |
1402 | 400 | Email is not a valid e-mail address |
Bank account
| Code | HTTP | Meaning |
|---|---|---|
1500 | 404 | Bank account not found |
1501 | 400 | BankName is required |
1502 | 400 | Send either Iban, or Branch together with AccountNumber |
1503 | 400 | CurrencyCode is required |
1504 | 400 | Currency not found |
Group membership
| Code | HTTP | Meaning |
|---|---|---|
1600 | 404 | Group membership not found |
1601 | 400 | GroupDetail is required |
1602 | 400 | Group detail not found, or its group is deleted |
1603 | 400 | The customer is already a member of this group detail |
1604 | 400 | The same GroupDetail was sent more than once |
1605 | 400 | No detail selected from a mandatory group |
Parameter
| Code | HTTP | Meaning |
|---|---|---|
1700 | 404 | Parameter not found |
1701 | 400 | ParameterName is required |
1702 | 400 | Parameter definition not found |
1703 | 400 | The customer already has this parameter definition |
1704 | 400 | The same ParameterName was sent more than once |
1705 | 400 | Value is required |
1706 | 400 | Value of a text parameter is empty |
1707 | 400 | Value of a yes/no parameter must be true or false |
1708 | 400 | Value of an integer parameter must be an integer |
1709 | 400 | Value of a decimal parameter must be a number |
1710 | 400 | Value of a date/time parameter must be a valid date |
1711 | 400 | The type of the parameter definition is not supported |
1712 | 400 | ParameterName cannot be changed |
Product
| Code | HTTP | Meaning |
|---|---|---|
2000 | 404 | Product not found |
2001 | 400 | Code is required |
2002 | 400 | The product code is already used in the company; the response carries the existing record’s ID as ExistingId |
2003 | 400 | Code cannot be Next on update |
2004 | 400 | Name is required |
2005 | 400 | UnitCode is required |
2006 | 400 | Unit not found in the company |
2007 | 400 | ProductType must be 1-5 |
2008 | 400 | StockType must be 1-7 |
2009 | 400 | VAT rate not found in the company |
2010 | 400 | TransportMode must be 0-8 |
2011 | 400 | The group detail does not belong to that group or to the company |
2013 | 400 | The parent of the group detail is not the detail selected in the previous group |
2012 | 400 | The product cannot be deleted because it is used in a record (invoice, order, quote, despatch, warehouse slip, production, …) |
2014 | 400 | StockType cannot be set to 1 (no stock tracking) while the product has critical stock definitions |
2015 | 400 | An AdditionalTaxes Code is not one of the valid additional tax codes |
2016 | 400 | The same additional tax code is used more than once on the product |
2017 | 400 | AdditionalTaxes contains more than 3 entries |
2018 | 400 | An AdditionalTaxes entry has no Code |
2080 | 400 | The ÜRÜN serial number definition does not exist in the company |
2081 | 400 | The ÜRÜN serial number has no details |
2082 | 400 | Unsupported serial number part type (parameter 1/2) |
2083 | 400 | The generated code exceeds the maximum length of the serial number |
2084 | 400 | The generated product code is already used in the company |
2085 | 400 | The product code could not be generated, try again |
2091 | 400 | modifiedSince is more than 24 hours in the past or in the future |
Product group detail
| Code | HTTP | Meaning |
|---|---|---|
2100 | 404 | Product group detail not found |
2101 | 400 | Name is required |
2102 | 400 | The detail name is already used in this group; the response carries the existing record’s ID as ExistingId |
2103 | 400 | GroupNumber must be 1-5 |
2104 | 400 | A group 1 detail cannot have a parent |
2105 | 400 | ParentGroup must be a detail of the previous group |
2106 | 400 | The detail cannot be deleted because it is used by a product |
2107 | 400 | The detail cannot be deleted because it has child details |
2108 | 400 | GroupNumber cannot be changed while the detail has children or is used by products |
2109 | 400 | ParentGroup cannot be changed while the detail has child details |
Product parameter
| Code | HTTP | Meaning |
|---|---|---|
2200 | 404 | Product parameter not found |
2201 | 400 | ParameterName is required |
2202 | 400 | Parameter definition not found |
2203 | 400 | This parameter definition is already used by this product |
2204 | 400 | Value is required |
2205 | 400 | The value of a text parameter cannot be empty |
2206 | 400 | The value of a yes/no parameter must be true/false |
2207 | 400 | The value of an integer parameter must be an integer |
2208 | 400 | The value of a decimal parameter must be a number |
2209 | 400 | The value of a date/time parameter must be a valid date |
2210 | 400 | Unsupported parameter type |
2211 | 400 | ParameterName cannot be changed |
Product price
| Code | HTTP | Meaning |
|---|---|---|
2300 | 404 | Product price not found |
2301 | 400 | PriceType must be 1 (purchase) or 2 (sales) |
2302 | 400 | Price must be greater than 0 |
2303 | 400 | Discount cannot be negative |
2304 | 400 | Discount cannot exceed 100 while IsDiscountPercentage is true |
2305 | 400 | StartDate and EndDate are required |
2306 | 400 | EndDate must be after StartDate |
2307 | 400 | CurrencyCode is required |
2308 | 400 | Currency not found in the company |
2309 | 400 | UnitCode is not one of the product’s own units (Unit1/Unit2/Unit3) |
2310 | 400 | Customer not found in the company |
2311 | 400 | Customer group not found in the company |
2312 | 400 | CustomerGroupDetail is not a detail of CustomerGroup |
2313 | 400 | CustomerGroupDetail cannot be sent without CustomerGroup |
2314 | 400 | CustomerCode cannot be combined with the group fields |
2315 | 400 | UnitCode is required |
Product critical stock definition
| Code | HTTP | Meaning |
|---|---|---|
2400 | 404 | Critical stock definition not found |
2401 | 400 | WarehouseName is required |
2402 | 400 | Warehouse not found in the company |
2403 | 400 | A definition for this product and warehouse already exists |
2404 | 400 | MinStock cannot be negative |
2405 | 400 | MaxStock cannot be negative |
2406 | 400 | MaxStock cannot be less than MinStock when greater than 0 |
2407 | 400 | MaxStockControl must be 0, 1 or 2 |
2408 | 400 | MinStockControl must be 0, 1 or 2 |
2409 | 400 | NegativeStockControl must be 0, 1 or 2 |
2410 | 400 | A critical stock definition cannot be added for a product with StockType 1 (no stock tracking) |
Warehouse
| Code | HTTP | Meaning |
|---|---|---|
4000 | 404 | Warehouse not found |
4001 | 400 | Warehouse Name is required |
4002 | 400 | The warehouse name is already used in the company; the response carries the existing record’s ID as ExistingId |
4003 | 400 | The warehouse cannot be deleted because it has sections |
4004 | 400 | The warehouse cannot be deleted because it is used in a record (invoice, order, despatch, warehouse slip, stock count, critical stock definition, …) |
Section
| Code | HTTP | Meaning |
|---|---|---|
4100 | 404 | Section not found |
4101 | 400 | Section Name is required |
4102 | 400 | The section name is already used in the warehouse; the response carries the existing record’s ID as ExistingId |
4103 | 400 | The section cannot be deleted because it is used in a record (despatch, warehouse slip, stock count, …) |
Product stock status
| Code | HTTP | Meaning |
|---|---|---|
4200 | 400 | The warehouse given in warehouseName was not found |
4201 | 400 | One of productId, productCode or eCommerceProductCode is required |
4202 | 404 | The product given in productCode was not found |
4203 | 404 | The product given in eCommerceProductCode was not found |
4401 | 400 | The operation would drop the stock below the product’s minimum stock in that warehouse (critical stock set to stop the operation) |
4402 | 400 | The operation would make the product’s stock negative in that warehouse (critical stock set to stop the operation) |
4403 | 400 | The operation would raise the stock above the product’s maximum stock in that warehouse (critical stock set to stop the operation) |
Parameter definition
| Code | HTTP | Meaning |
|---|---|---|
1900 | 404 | Parameter definition not found |
1901 | 400 | Name is required |
1902 | 400 | The definition name is already used in the company; the response carries the existing record’s ID as ExistingId |
1903 | 400 | Type must be between 0 and 6 |
1904 | 400 | The definition cannot be deleted because it is used by a customer |
Product parameter definition
| Code | HTTP | Meaning |
|---|---|---|
2500 | 404 | Parameter definition not found |
2501 | 400 | Name is required |
2502 | 400 | The definition name is already used in the company; the response carries the existing record’s ID as ExistingId |
2503 | 400 | Type must be between 0 and 6 |
2504 | 400 | The definition cannot be deleted because it is used by a product |
Invoice
Shared by the four invoice endpoint groups (purchase, sales, purchase-return, sales-return invoices); the invoice type is never taken from the request.| Code | HTTP | Meaning |
|---|---|---|
3000 | 404 | Invoice not found |
3001 | 400 | InvoiceNumber is required |
3002 | 400 | The invoice number is already used in the company for this invoice type; the response carries the existing record’s ID as ExistingId |
3004 | 400 | Date is required |
3005 | 400 | CustomerCode or CustomerTaxNumber is required |
3006 | 400 | Customer not found or not visible to the user |
3009 | 400 | SharingCode is not one of the user’s sharing codes |
3010 | 400 | At least one line is required |
3011 | 400 | DueDays cannot be less than 0 |
3012 | 400 | The invoice cannot be deleted because other records refer to it |
3013 | 400 | ShipmentDefinitionCode was not found in the company |
3015 | 400 | The credit record created by this invoice has already been closed by a collection/payment, so the operation was cancelled |
3016 | 400 | The debit record created by this invoice has already been closed by a collection/payment, so the operation was cancelled |
3018 | 400 | InvoiceTypeCode is not one of the values allowed for this ProfileId |
3019 | 400 | A return invoice’s InvoiceTypeCode can only be IADE or TEVKIFATIADE |
3020 | 400 | InvoiceTypeCode must be ISTISNA, IHRACKAYITLI or SGK when a line has a VatExemptionCode |
3021 | 400 | ProfileId is required when the company uses e-Invoice |
3022 | 400 | InvoiceTypeCode is required when the company uses e-Invoice |
3023 | 400 | When the company uses e-Invoice, the customer’s tax number, invoice title and tax office must be filled in (sales and purchase-return invoices) |
3024 | 400 | AverageExchangeRate must be greater than 0 |
3025 | 400 | endDate cannot be before startDate |
3026 | 400 | The currency given in currencyCode was not found in the company |
3027 | 400 | The invoice has already been sent to GİB and cannot be deleted |
3028 | 400 | The customer’s risk limit (set to stop the operation) would be exceeded by the sales or purchase-return invoice |
3029 | 400 | InvoiceTypeCode cannot be IADE or TEVKIFATIADE on a sales invoice |
3080 | 400 | The company has no number series or default e-Invoice / e-Archive numbering definition for this invoice |
3081 | 400 | The series has no parts |
3082 | 400 | The series has a part type the API cannot generate |
3083 | 400 | The generated number exceeds the series maximum length |
3084 | 400 | The generated number is already used in the company |
3085 | 400 | No unused number could be generated after several attempts |
Invoice line
| Code | HTTP | Meaning |
|---|---|---|
3101 | 400 | ProductCode or ECommerceProductCode is required |
3102 | 400 | Product not found in the company |
3103 | 400 | UnitCode is required |
3104 | 400 | UnitCode is not one of the product’s own units (Unit1/Unit2/Unit3) |
3105 | 400 | Quantity must be greater than 0 |
3106 | 400 | UnitPrice cannot be negative |
3107 | 400 | DiscountRate must be between 0 and 100 |
3108 | 400 | VatRate must be between 0 and 100 |
3109 | 400 | Line group not found in the company |
3110 | 400 | WarehouseName was not found in the company |
3111 | 400 | The product defines no conversion quantity for the line’s unit, so the main unit quantity cannot be calculated |
3112 | 400 | WarehouseName is required |
3115 | 400 | The sum of the Lot/serial number entries does not match the line’s Quantity |
3116 | 400 | Lots/SerialNumbers were not sent as required for the product’s stock type |
3117 | 400 | VatRate is 0 but VatExemptionCode is empty (sales and purchase-return invoices only) |
3118 | 400 | CurrencyCode is required |
3119 | 400 | The line’s currency was not found in the company |
3120 | 400 | ExchangeRate is invalid: must be 1 for the default currency, otherwise required and greater than 0 |
3121 | 400 | A line’s AdditionalTaxes can contain at most 3 additional taxes |
3122 | 400 | Code is required for every additional tax of a line |
3123 | 400 | DiscountRate does not match the cumulative rate of the line’s Discounts list |
3124 | 400 | An AdditionalTaxes Code of the line is not one of the valid additional tax codes |
3125 | 400 | The same additional tax code is used more than once on the line |
3126 | 400 | The line amounts do not add up (for example VatAmount is not VatBase × VatRate / 100); the message names the field and the expected value |
Invoice line discount
| Code | HTTP | Meaning |
|---|---|---|
3201 | 400 | The Rate of a discount must be between 0 and 100 |
Invoice Lot
| Code | HTTP | Meaning |
|---|---|---|
3301 | 400 | LotNo is required |
3302 | 400 | LotNo is already used in the company |
3303 | 400 | Lot not found |
3304 | 400 | The lot has already been used in an outbound transaction, so the operation (delete/update) was cancelled |
3305 | 400 | Not enough Lot stock for this product and warehouse |
Invoice serial number
| Code | HTTP | Meaning |
|---|---|---|
3401 | 400 | SerialNumbers contains an empty value |
3402 | 400 | The serial number has already been registered and has not been dispatched yet |
3403 | 400 | Serial number not found |
3404 | 400 | The serial number cannot be removed because it has already been dispatched |
Quote
| Code | HTTP | Meaning |
|---|---|---|
5000 | 404 | Quote not found |
5001 | 400 | QuoteNumber is required |
5002 | 400 | The quote number is already used in the company for this quote type; the response carries the existing record’s ID as ExistingId |
5003 | 400 | QuoteNumber cannot be Next on update |
5004 | 400 | QuoteType must be 1 (purchase) or 2 (sales) |
5005 | 400 | Date is required |
5006 | 400 | CustomerCode is required |
5007 | 400 | Customer not found, or not visible to the user |
5008 | 400 | The representative was not found for this customer |
5009 | 400 | CurrencyCode is required |
5010 | 400 | Currency not found in the company |
5011 | 400 | SharingCode is not one of the user’s sharing codes |
5012 | 400 | At least one line is required |
5013 | 400 | DueDays cannot be less than 0 |
5014 | 400 | The quote cannot be deleted because other records (service slip, opportunity, …) refer to it |
5015 | 400 | QuoteType cannot be changed after the quote is created |
5016 | 400 | AverageExchangeRate must be greater than 0 |
5017 | 400 | endDate cannot be before startDate |
5080 | 400 | The company has no quote number series for this quote type |
5081 | 400 | The series has no parts |
5082 | 400 | The series has a part type the API cannot generate |
5083 | 400 | The generated number exceeds the series maximum length |
5084 | 400 | The generated number is already used in the company |
5085 | 400 | No unused number could be generated after several attempts |
Quote line
| Code | HTTP | Meaning |
|---|---|---|
5101 | 400 | ProductCode or ECommerceProductCode is required |
5102 | 400 | Product not found in the company |
5103 | 400 | UnitCode is required |
5104 | 400 | UnitCode is not one of the product’s own units (Unit1/Unit2/Unit3) |
5105 | 400 | Quantity must be greater than 0 |
5106 | 400 | UnitPrice cannot be negative |
5107 | 400 | DiscountRate must be between 0 and 100 |
5108 | 400 | Currency of the line not found in the company |
5109 | 400 | VatRate must be between 0 and 100 |
5110 | 400 | Line group not found in the company |
5111 | 400 | ExchangeRate must be 1 for the default currency, and greater than 0 for any other currency |
5112 | 400 | CurrencyCode is required on every line |
5113 | 400 | A line’s AdditionalTaxes can contain at most 3 additional taxes |
5114 | 400 | Code is required for every additional tax of a line |
5115 | 400 | DiscountRate does not match the cumulative rate of the line’s Discounts list |
5116 | 400 | An AdditionalTaxes Code of the line is not one of the valid additional tax codes |
5117 | 400 | The same additional tax code is used more than once on the line |
5118 | 400 | The line amounts do not add up (for example VatAmount is not VatBase × VatRate / 100); the message names the field and the expected value |
Quote line discount
| Code | HTTP | Meaning |
|---|---|---|
5201 | 400 | The Rate of a discount must be between 0 and 100 |
Order
| Code | HTTP | Meaning |
|---|---|---|
6000 | 404 | Order not found |
6001 | 400 | OrderNumber is required |
6002 | 400 | The order number is already used in the company for this order type; the response carries the existing record’s ID as ExistingId |
6003 | 400 | OrderNumber cannot be Next on update |
6004 | 400 | OrderType must be 1 (purchase) or 2 (sales) |
6005 | 400 | Date is required |
6006 | 400 | CustomerCode is required |
6007 | 400 | Customer not found, or not visible to the user |
6009 | 400 | CurrencyCode is required |
6010 | 400 | Currency not found in the company |
6011 | 400 | SharingCode is not one of the user’s sharing codes |
6012 | 400 | At least one line is required |
6013 | 400 | DueDays cannot be less than 0 |
6014 | 400 | The order cannot be deleted because other records (quote, opportunity, …) refer to it |
6015 | 400 | OrderType cannot be changed after the order is created |
6016 | 400 | The credit record the purchase order created on the customer’s account has been closed by a payment, so the order’s customer movement cannot be changed or removed |
6017 | 400 | The debit record the sales order created on the customer’s account has been closed by a collection, so the order’s customer movement cannot be changed or removed |
6018 | 400 | AverageExchangeRate must be greater than 0 |
6019 | 400 | endDate cannot be before startDate |
6020 | 400 | The customer’s risk limit (set to stop the operation) would be exceeded by the sales order’s customer movement |
6080 | 400 | The company has no order number series for this order type |
6081 | 400 | The series has no parts |
6082 | 400 | The series has a part type the API cannot generate |
6083 | 400 | The generated number exceeds the series maximum length |
6084 | 400 | The generated number is already used in the company |
6085 | 400 | No unused number could be generated after several attempts |
Order line
| Code | HTTP | Meaning |
|---|---|---|
6101 | 400 | ProductCode or ECommerceProductCode is required |
6102 | 400 | Product not found in the company |
6103 | 400 | UnitCode is required |
6104 | 400 | UnitCode is not one of the product’s own units (Unit1/Unit2/Unit3) |
6105 | 400 | Quantity must be greater than 0 |
6106 | 400 | UnitPrice cannot be negative |
6107 | 400 | DiscountRate must be between 0 and 100 |
6108 | 400 | Currency of the line not found in the company |
6109 | 400 | VatRate must be between 0 and 100 |
6110 | 400 | Line group not found in the company |
6111 | 400 | ExchangeRate must be 1 for the default currency, and greater than 0 for any other currency |
6112 | 400 | WarehouseName was not found in the company |
6113 | 400 | The product defines no conversion quantity for the line’s unit, so the main unit quantity cannot be calculated |
6114 | 400 | CurrencyCode is required on every line |
6115 | 400 | A line’s AdditionalTaxes can contain at most 3 additional taxes |
6116 | 400 | Code is required for every additional tax of a line |
6117 | 400 | DiscountRate does not match the cumulative rate of the line’s Discounts list |
6118 | 400 | An AdditionalTaxes Code of the line is not one of the valid additional tax codes |
6119 | 400 | The same additional tax code is used more than once on the line |
6120 | 400 | The line amounts do not add up (for example VatAmount is not VatBase × VatRate / 100); the message names the field and the expected value |
Order line discount
| Code | HTTP | Meaning |
|---|---|---|
6201 | 400 | The Rate of a discount must be between 0 and 100 |
Despatch
| Code | HTTP | Meaning |
|---|---|---|
7000 | 404 | Despatch not found |
7001 | 400 | DespatchNumber is required |
7002 | 400 | The despatch number is already used in the company for this despatch type; the response carries the existing record’s ID as ExistingId |
7004 | 400 | DespatchType must be 2 (inbound) or -2 (outbound) |
7005 | 400 | Date is required |
7006 | 400 | CustomerCode is required |
7007 | 400 | Customer not found or not visible to the user |
7009 | 400 | CurrencyCode is required |
7010 | 400 | Currency not found in the company |
7011 | 400 | SharingCode is not one of the user’s sharing codes |
7012 | 400 | At least one line is required |
7013 | 400 | DueDays cannot be less than 0 |
7014 | 400 | The despatch cannot be deleted because other records refer to it |
7015 | 400 | ShipmentDefinitionCode was not found in the company |
7017 | 400 | AverageExchangeRate must be greater than 0 |
7018 | 400 | endDate cannot be before startDate |
7019 | 400 | The despatch has already been sent as an e-Despatch and cannot be deleted |
7080 | 400 | The company has no number series for this despatch type (or no default e-Despatch numbering definition) |
7081 | 400 | The series has no parts |
7082 | 400 | The series has a part type the API cannot generate |
7083 | 400 | The generated number exceeds the series maximum length |
7084 | 400 | The generated number is already used in the company |
7085 | 400 | No unused number could be generated after several attempts |
Despatch line
| Code | HTTP | Meaning |
|---|---|---|
7101 | 400 | ProductCode or ECommerceProductCode is required |
7102 | 400 | Product not found in the company |
7103 | 400 | UnitCode is required |
7104 | 400 | UnitCode is not one of the product’s own units (Unit1/Unit2/Unit3) |
7105 | 400 | Quantity must be greater than 0 |
7106 | 400 | UnitPrice cannot be negative |
7107 | 400 | DiscountRate must be between 0 and 100 |
7108 | 400 | Currency of the line not found in the company |
7109 | 400 | VatRate must be between 0 and 100 |
7110 | 400 | Line group not found in the company |
7111 | 400 | ExchangeRate must be 1 for the default currency, and greater than 0 for any other currency |
7112 | 400 | WarehouseName was not found in the company |
7113 | 400 | The product defines no conversion quantity for the line’s unit, so the main unit quantity cannot be calculated |
7114 | 400 | WarehouseName is required |
7116 | 400 | The sum of the Lot/serial number entries does not match the line’s Quantity |
7117 | 400 | Lots/SerialNumbers were not sent as required for the product’s stock type |
7118 | 400 | CurrencyCode is required on every line |
7119 | 400 | A line’s AdditionalTaxes can contain at most 3 additional taxes |
7120 | 400 | Code is required for every additional tax of a line |
7121 | 400 | DiscountRate does not match the cumulative rate of the line’s Discounts list |
7122 | 400 | An AdditionalTaxes Code of the line is not one of the valid additional tax codes |
7123 | 400 | The same additional tax code is used more than once on the line |
7124 | 400 | The line amounts do not add up (for example VatAmount is not VatBase × VatRate / 100); the message names the field and the expected value |
Despatch line discount
| Code | HTTP | Meaning |
|---|---|---|
7201 | 400 | The Rate of a discount must be between 0 and 100 |
Lot
| Code | HTTP | Meaning |
|---|---|---|
7301 | 400 | LotNo is required |
7302 | 400 | LotNo is already used in the company |
7303 | 400 | Lot not found |
7304 | 400 | The lot has already been used in an outbound transaction, so the operation (delete/update) was cancelled |
7305 | 400 | Not enough Lot stock for this product and warehouse |
Serial number
| Code | HTTP | Meaning |
|---|---|---|
7401 | 400 | SerialNumbers contains an empty value |
7402 | 400 | The serial number has already been registered and has not been dispatched yet |
7403 | 400 | Serial number not found |
7404 | 400 | The serial number cannot be removed because it has already been dispatched |
Bank
| Code | HTTP | Meaning |
|---|---|---|
8000 | 404 | Bank not found |
8001 | 400 | Bank Name is required |
8002 | 400 | The bank name is already used in the company; the response carries the existing record’s ID as ExistingId |
8003 | 400 | The bank cannot be deleted because it is used by a bank account |
Company bank account
| Code | HTTP | Meaning |
|---|---|---|
8010 | 404 | Bank account not found |
8011 | 400 | Bank account Name is required |
8012 | 400 | BankName is required |
8013 | 400 | BankName was not found |
8014 | 400 | CurrencyCode is required |
8015 | 400 | CurrencyCode was not found |
8016 | 400 | AccountType must be between 1 and 4 |
8017 | 400 | The bank account cannot be deleted because it is used by other records |
8018 | 400 | SharingCode is not one of the user’s sharing codes |
Repayment plan
| Code | HTTP | Meaning |
|---|---|---|
8020 | 404 | Repayment plan not found |
8021 | 400 | Repayment plan Name is required |
8022 | 400 | The repayment plan name is already used in this bank account; the response carries the existing record’s ID as ExistingId |
8023 | 400 | DayCount cannot be negative |
8024 | 400 | A repayment plan can only be added to a POS account (AccountType 3) |
8025 | 400 | The repayment plan cannot be deleted because it is used by other records |
Commission rate
| Code | HTTP | Meaning |
|---|---|---|
8031 | 400 | Commission rate Name is required |
8032 | 400 | The commission rate name is used more than once in the same repayment plan |
8033 | 400 | Rate must be between 0 and 100 |
8034 | 400 | ExpenseCode is required |
8035 | 400 | ExpenseCode was not found |
Customer transactions
| Code | HTTP | Meaning |
|---|---|---|
8040 | 400 | StartDate is required |
8041 | 400 | EndDate is required |
8042 | 400 | EndDate cannot be before StartDate |
8043 | 400 | The currency given in currencyCode was not found |
Bank transfer voucher
| Code | HTTP | Meaning |
|---|---|---|
8100 | 404 | Bank transfer not found |
8101 | 400 | TransferType must be 1 (incoming) or 2 (outgoing) |
8102 | 400 | VoucherNumber is required |
8103 | 400 | VoucherNumber is already used in the company (among all bank voucher types); the response carries the existing record’s ID as ExistingId |
8104 | 400 | VoucherNumber cannot be “Next” on update |
8105 | 400 | Date is required |
8106 | 400 | BankAccountName is required |
8107 | 400 | BankAccountName was not found |
8108 | 400 | At least one line is required |
8109 | 400 | The voucher has been posted to accounting and can no longer be updated or deleted |
8110 | 400 | SharingCode is not one of the user’s sharing codes |
8111 | 400 | TransferType cannot be changed after the voucher is created |
8112 | 400 | endDate cannot be before startDate |
8113 | 400 | The voucher’s ExchangeRate must be greater than 0 |
8180 | 400 | No "BANKAFİŞNO" serial number definition was found for the company |
8181 | 400 | The serial number definition has no detail rows |
8182 | 400 | Unsupported serial number part type |
8183 | 400 | The generated voucher number exceeds the maximum length |
8184 | 400 | The generated voucher number is already used in the company |
8185 | 400 | The voucher number could not be generated |
Bank transfer line
| Code | HTTP | Meaning |
|---|---|---|
8200 | 400 | Line CustomerCode is required |
8201 | 400 | Customer not found for the line |
8202 | 400 | Line Amount must be greater than 0 |
8203 | 400 | Line ExchangeRate (or CustomerExchangeRate) is required and must be greater than 0 |
8204 | 400 | Line CustomerCurrencyCode was not found |
8205 | 400 | Line CustomerAmount x CustomerExchangeRate does not equal Amount x ExchangeRate |
8206 | 400 | Line CustomerAmount and CustomerCurrencyCode must be sent together |
8207 | 400 | The line’s customer record has been closed, operation cancelled |
8208 | 400 | A payment plan has been created for the line’s customer record, operation cancelled |
Bank opening voucher
| Code | HTTP | Meaning |
|---|---|---|
8300 | 404 | Bank opening not found |
8301 | 400 | VoucherNumber is required |
8302 | 400 | VoucherNumber is already used in the company (among all bank voucher types); the response carries the existing record’s ID as ExistingId |
8303 | 400 | VoucherNumber cannot be “Next” on update |
8304 | 400 | Date is required |
8305 | 400 | At least one line is required |
8306 | 400 | The voucher has been posted to accounting and can no longer be updated or deleted |
8307 | 400 | SharingCode is not one of the user’s sharing codes |
8308 | 400 | endDate cannot be before startDate |
8309 | 400 | The voucher’s ExchangeRate must be greater than 0 |
Bank opening line
| Code | HTTP | Meaning |
|---|---|---|
8400 | 400 | Line BankAccountName is required |
8401 | 400 | Line BankAccountName was not found |
8402 | 400 | Line ExchangeRate is required and must be greater than 0 |
8403 | 400 | Exactly one of the line’s Debit/Credit must be greater than 0 |
Bank internal transfer voucher
| Code | HTTP | Meaning |
|---|---|---|
8500 | 404 | Bank internal transfer not found |
8501 | 400 | VoucherNumber is required |
8502 | 400 | VoucherNumber is already used in the company (among all bank voucher types); the response carries the existing record’s ID as ExistingId |
8503 | 400 | VoucherNumber cannot be “Next” on update |
8504 | 400 | Date is required |
8505 | 400 | At least one line is required |
8506 | 400 | The voucher has been posted to accounting and can no longer be updated or deleted |
8507 | 400 | SharingCode is not one of the user’s sharing codes |
8508 | 400 | The total Debit of the lines must equal the total Credit |
8509 | 400 | endDate cannot be before startDate |
8510 | 400 | The voucher’s ExchangeRate must be greater than 0 |
Bank internal transfer line
| Code | HTTP | Meaning |
|---|---|---|
8600 | 400 | Line BankAccountName is required |
8601 | 400 | Line BankAccountName was not found |
8602 | 400 | Line ExchangeRate is required and must be greater than 0 |
8603 | 400 | Exactly one of the line’s Debit/Credit must be greater than 0 |
Credit card collection voucher
| Code | HTTP | Meaning |
|---|---|---|
8700 | 404 | Credit card collection not found |
8701 | 400 | VoucherNumber is required |
8702 | 400 | VoucherNumber is already used in the company (among all bank voucher types); the response carries the existing record’s ID as ExistingId |
8703 | 400 | VoucherNumber cannot be “Next” on update |
8704 | 400 | Date is required |
8705 | 400 | BankAccountName is required |
8706 | 400 | BankAccountName was not found |
8707 | 400 | At least one line is required |
8708 | 400 | The voucher has been posted to accounting and can no longer be updated or deleted |
8709 | 400 | The voucher has been settled by a bank repayment voucher and can no longer be updated or deleted |
8710 | 400 | SharingCode is not one of the user’s sharing codes |
8711 | 400 | endDate cannot be before startDate |
8712 | 400 | The voucher’s ExchangeRate must be greater than 0 |
Credit card collection line
| Code | HTTP | Meaning |
|---|---|---|
8800 | 400 | Line CustomerCode is required |
8801 | 400 | Customer not found for the line |
8802 | 400 | Line Amount must be greater than 0 |
8803 | 400 | Line ExchangeRate (or CustomerExchangeRate) is required and must be greater than 0 |
8804 | 400 | Line PosChargeDate is required |
8805 | 400 | Line RepaymentPlanName was not found |
8806 | 400 | Line CustomerCurrencyCode was not found |
8807 | 400 | Line CustomerAmount x CustomerExchangeRate does not equal Amount x ExchangeRate |
8808 | 400 | Line CustomerAmount and CustomerCurrencyCode must be sent together |
8809 | 400 | The line’s customer record has been closed, operation cancelled |
8810 | 400 | A payment plan has been created for the line’s customer record, operation cancelled |