Get token description
Successfully returned token
Invalid request
Internal server error
{- "grantType": "CLIENT_CREDENTIALS",
- "clientId": "lkajsd-12i3-0213saldk1-20",
- "clientSecret": ";alsd,lmvs;dl,[gkllkskvlsnkdklkdllk123123=-1203=-123ldk;as012o3",
- "scope": "public_api/full_access"
}
{- "id_token": null,
- "access_token": "lkdvslksdlkasklda;ksdpokqwepoiqwpoe;kldfg;lgfhl;tykj70567450996304953]dmmdk22323-940",
- "refresh_token": null,
- "expires_in": 86400,
- "token_type": "Bearer"
}
Get all products
Successfully returned list of products
Invalid request
Internal server error
[- {
- "id": 1769761,
- "externalId": "123",
- "ean": "194512452102",
- "ananasCode": "null",
- "name": "UNDER ARMOUR UA HOVR Summit Mid",
- "description": "Pokažite svoju autentičnost u Under Armour UA HOVR Summit Mid patikama",
- "brand": "{\"id\":1600,\"name\":\"UNDER ARMOUR\"}",
- "sku": "194512452102",
- "productType": "Sportske Patike",
- "categories": [
- "Muške patike",
- "Sportska oprema"
], - "newBasePrice": 6000,
- "basePrice": 5000,
- "vat": 10,
- "stockLevel": 20,
- "packageWeightValue": 0.3,
- "packageWeightUnit": "kg"
}, - {
- "id": 1769762,
- "externalId": "456",
- "ean": "194512452103",
- "ananasCode": "null",
- "name": "UNDER ARMOUR UA HOVR Summit Mid New",
- "description": "Pokažite svoju autentičnost u Under Armour UA HOVR Summit Mid patikama",
- "brand": "{\"id\":1600,\"name\":\"UNDER ARMOUR\"}",
- "sku": "194512452102",
- "productType": "Sportske Patike",
- "categories": [
- "Muške patike",
- "Sportska oprema"
], - "newBasePrice": 5000,
- "basePrice": 6000,
- "vat": 10,
- "stockLevel": 20,
- "packageWeightValue": 0.3,
- "packageWeightUnit": "kg"
}
]
Add or edit products in bulk
Optional description
Successfully
Invalid request
Internal server error
{- "name": "Samsung Pametni telefon Galaxy SM-A325F plavi",
- "description": "Samsung Galaxy SM-A325F. Dijagonala monitora: 16,3 cm...",
- "ean": "9788644105886",
- "brand": "Samsung",
- "parentEan": "",
- "packageWeightValue": 184,
- "packageWeightUnit": "KG",
- "basePrice": 40000,
- "vat": 20,
- "stockLevel": 5,
- "sku": "LXG9HET6O3",
- "externalId": "1",
- "productType": "Telefon",
- "category": "SMART mobilni telefoni",
- "attributes": {
- "Boja": [
- "Plava"
], - "Sirina": [
- "73.6mm"
], - "Dubina": [
- "8.4mm"
]
}
}
{- "id": "afc1b015-d8fa-409e-b9d5-6b32d78d59f0"
}
Update products in bulk
Optional description
Successfully
Invalid request
Not found
Internal server error
[- {
- "id": 456,
- "packageWeightValue": 184,
- "packageWeightUnit": "KG",
- "basePrice": 40000,
- "vat": 20,
- "stockLevel": 5,
- "sku": "LXG9HET6O3"
}, - {
- "id": 789,
- "packageWeightValue": 200,
- "packageWeightUnit": "KG",
- "basePrice": 30000,
- "vat": 4,
- "stockLevel": 2,
- "sku": "LGM9HET6O5"
}
]
[- {
- "status": "SUCCESS",
- "errors": [ ],
- "myProductId": 456
}, - {
- "status": "FAIL",
- "errors": [
- "PDV mora biti jedan od sledecih vrednosti: 0, 10, 20. Prosleđena vrednost je 4"
], - "myProductId": 789
}
]
Update single product
Optional description
Successfully
Invalid request
Not found
Internal server error
{- "packageWeightValue": 184,
- "packageWeightUnit": "KG",
- "basePrice": 40000,
- "vat": 20,
- "stockLevel": 5,
- "sku": "LXG9HET6O3"
}
{- "status": "SUCCESS",
- "errors": [ ],
- "myProductId": 456
}
Get all product types
Successfully returned list of products
Invalid request
Internal server error
[- "Dečji pribor za kuvanje",
- "VoIP telefonski adapteri",
- "Rumenila"
]
Check if EAN exists
Optional description
EAN codes
Successfully
Invalid request
Internal server error
[- "088280476892",
- "757670268125",
- "875441735984"
]
{- "088280476892": true,
- "757670268125": true,
- "875441735984": true
}
Get all merchant warehouses
Successfully returned list of merchant warehouses
Invalid request
Internal server error
{- "content": [
- {
- "id": 1,
- "warehouseName": "Downtown warehouse",
- "defaultAddress": false
}, - {
- "id": 2,
- "warehouseName": "Airport warehouse",
- "defaultAddress": true
}
]
}
Get all invoices
Successfully retrned list of invoices
Invalid request
Internal server error
[- {
- "invoiceHeader": {
- "invoiceType": "FISCAL",
- "merchantDetails": {
- "name": "Maki doo",
- "businessSpaceCode": "",
- "taxIdentificationNumber": "111606273",
- "identificationNumber": "20862467",
- "taxAdministrationId": "854/1.0",
- "cashier": "",
- "contactDetails": {
- "phone": "+381669879009",
- "email": "merchant@gmail.com"
}, - "address": {
- "street": "ZAOB.PUT ZVORNIK-LJUBOVIJA 23",
- "city": "LJUBOVIJA"
}
}, - "customerDetails": {
- "firstName": "Pera",
- "lastName": "Segedinac",
- "address": {
- "street": "PERE SEGEDINCA 55",
- "city": "BEOGRAD-NOVI BEOGRAD",
- "postcode": "11080"
}
}, - "fiscalDetails": {
- "invoiceCounter": "1757/3189ПП",
- "fiscalInvoiceDate": "2022-05-03T18:51:18Z",
- "invoiceNumber": "RERCZKM6-Dt1Ov1o0-3171"
}, - "orderDetails": {
- "invoiceId": "4599335419",
- "invoicedDate": "2022-05-03T00:00:00Z",
- "orderid": "69N73-9E0P9",
- "suborderId": "69N73-9E0P9-DS-1",
- "paymentMethods": [
- "PBC"
], - "warehouseAddress": {
- "warehouseId": 2,
- "street": "DRINSKA 23",
- "city": "LJUBOVIJA"
}, - "orderDate": "2022-05-03T00:00:00Z"
}
}, - "productSpecification": {
- "items": [
- {
- "productDetails": {
- "name": "TESLA Televizor 40T319SFS SMART",
- "apId": "VT8YI1VRS7",
- "sku": "AA-123456-AB",
- "ean": "8606018852161",
- "acode": "test123"
}, - "quantity": 1,
- "itemPrice": {
- "unitPrice": 27900,
- "unitPriceWithoutVat": 23250,
- "basePrice": 26900,
- "basePriceWithoutVat": 22416.67,
- "discountVat": 3.59,
- "discountAmount": 1000,
- "vat": 20,
- "vatAmount": 4483.33
}, - "grandTotalPrice": {
- "unitPrice": 27900,
- "unitPriceWithoutVat": 23250,
- "basePrice": 26900,
- "basePriceWithoutVat": 22416.67,
- "discountVat": 3.59,
- "discountAmount": 1000,
- "vat": 20,
- "vatAmount": 4650
}
}
], - "totalDetails": {
- "basePrice": 26900,
- "basePriceWithoutVat": 22416.67,
- "vatAmount": 4483.33,
- "chargedPrice": 26900
}
}, - "taxRateSpecification": {
- "taxRateSpecification": [
- {
- "label": "Ж",
- "name": "О-ПДВ",
- "basePriceWithoutVat": 22416.67,
- "vat": 20,
- "vatAmount": 4483.33
}
], - "grandTotal": 4483.33
}
}
]
Get all invoices corrections
Successfully returned list of invoices
Invalid request
Internal server error
[- {
- "invoiceHeader": {
- "invoiceType": "FISCAL",
- "invoiceCorrectionReason": "Reklamacija",
- "merchantDetails": {
- "name": "Maki doo",
- "businessSpaceCode": "",
- "taxIdentificationNumber": "111606273",
- "identificationNumber": "20862467",
- "taxAdministrationId": "854/1.0",
- "cashier": "",
- "contactDetails": {
- "phone": "+381669879009",
- "email": "merchant@gmail.com"
}, - "address": {
- "street": "ZAOB.PUT ZVORNIK-LJUBOVIJA 23",
- "city": "LJUBOVIJA"
}
}, - "customerDetails": {
- "firstName": "Pera",
- "lastName": "Segedinac",
- "address": {
- "street": "PERE SEGEDINCA 55",
- "city": "BEOGRAD-NOVI BEOGRAD",
- "postcode": "11080"
}
}, - "fiscalDetails": {
- "invoiceCounter": "1757/3189ПП",
- "fiscalInvoiceDate": "2022-05-03T18:51:18Z",
- "referentDocumentNumber": "RERCZKM6-Dt1Ov1o0-3171"
}, - "orderDetails": {
- "invoiceNumber": "4599335419",
- "invoicedDate": "2022-05-03T00:00:00Z",
- "orderid": "69N73-9E0P9",
- "suborderId": "69N73-9E0P9-DS-1",
- "fba": "false,",
- "paymentMethods": [
- "PBC",
- "VOUCHER"
], - "warehouseAddress": {
- "warehouseId": 3,
- "street": "DRINSKA 23",
- "city": "LJUBOVIJA"
}, - "orderDate": "2022-05-03T00:00:00Z"
}
}, - "productSpecification": {
- "items": [
- {
- "productDetails": {
- "name": "TESLA Televizor 40T319SFS SMART",
- "apId": "VT8YI1VRS7",
- "sku": "AA-123456-AB",
- "ean": "8606018852161",
- "acode": "test123"
}, - "quantity": 1,
- "itemPrice": {
- "unitPrice": 27900,
- "unitPriceWithoutVat": 23250,
- "basePrice": 26900,
- "basePriceWithoutVat": 22416.67,
- "discountVat": 3.59,
- "discountAmount": 1000,
- "vat": 20,
- "vatAmount": 4483.33
}, - "grandTotalPrice": {
- "unitPrice": 27900,
- "unitPriceWithoutVat": 23250,
- "basePrice": 26900,
- "basePriceWithoutVat": 22416.67,
- "discountVat": 3.59,
- "discountAmount": 1000,
- "vat": 20,
- "vatAmount": 4650
}
}
], - "totalDetails": {
- "basePrice": 26900,
- "basePriceWithoutVat": 22416.67,
- "vatAmount": 4483.33,
- "chargedPrice": 26900
}
}, - "taxRateSpecification": {
- "taxRateSpecification": [
- {
- "label": "Ж",
- "name": "О-ПДВ",
- "basePriceWithoutVat": 22416.67,
- "vat": 20,
- "vatAmount": 4483.33
}
], - "grandTotal": 4483.33
}
}
]
Get merchant inventory prices
Successfully
Invalid request
Not found
Internal server error
[- {
- "merchantInventoryId": 1776331,
- "basePrice": 24000,
- "sellablePrice": 18000,
- "discountId": "b8a14bba-a504-46d4-a627-c8eb5eb262af"
}
]
Get Invoice URLs
Successfully
Invalid request
Not found
Internal server error
{- "suborderIdNumberValue": [
- {
- "documentCorrelationId": "0429118274",
- "link": "https://ananas-dev1-logistics.s3.eu-central- 1.amazonaws.com/order/XJLV3-CHBLH/invoice/080822_1848_Makidoo_Fiskalni_Ra%C4%8Dun_XJLV3-CHBLH_DS.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20220823T080849Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Credential=AKIA22VGE46BRDXKOUWD%2F20220823%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=7b7f22f6993b10ac892b073c0bb84c9a17acb71d1825ee65336081decccd242f"
}
]
}
Get Invoice Corrections URLs
Successfully
Invalid request
Not found
Internal server error
{- "suborderIdNumberValue": [
- {
- "documentCorrelationId": "0429118274",
- "link": "https://ananas-dev1-logistics.s3.eu-central- 1.amazonaws.com/order/XJLV3-CHBLH/invoice/080822_1848_Makidoo_Fiskalni_Ra%C4%8Dun_XJLV3-CHBLH_DS.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20220823T080849Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Credential=AKIA22VGE46BRDXKOUWD%2F20220823%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Signature=7b7f22f6993b10ac892b073c0bb84c9a17acb71d1825ee65336081decccd242f"
}
]
}
Schedule discounts in bulk
Optional description
Array of objects |
Successfully
Invalid request
Internal server error
{- "discounts": [
- {
- "merchantInventoryId": 1194,
- "discountPrice": 800,
- "discountPriceCurrency": "RSD",
- "dateFrom": "22/07/2022",
- "dateTo": "29/07/2022",
- "discountType": "SALE"
}, - {
- "merchantInventoryId": 1195,
- "discountPrice": 500,
- "discountPriceCurrency": "RSD",
- "dateFrom": "29/07/2022",
- "dateTo": "22/07/2022",
- "discountType": "SALE"
}
]
}
{- "scheduleResult": [
- {
- "success": true,
- "data": {
- "merchantInventoryId": 1194,
- "discountId": "ee7c907d-b2cc-48f8-9226-1ba6e4db1055"
}
}, - {
- "success": false,
- "error": {
- "merchantInventoryId": 1195,
- "errorMessage": "Discount start date can not be after end date"
}
}
]
}
Update discounts in bulk
Optional description
Array of objects |
Successfully
Invalid request
Internal server error
{- "discounts": [
- {
- "discountId": "43b49da5-9f9c-4458-b755-f9cb606aea85",
- "newDateFrom": "22/07/2022",
- "newDateTo": "29/07/2022",
- "newDiscountPrice": "900",
- "newDiscountPriceCurrency": "RSD",
- "newDiscountType": "SALE"
}, - {
- "discountId": "1433c6dd-4651-463b-bd76-002c0f1f824a",
- "newDateFrom": "30/07/2022",
- "newDateTo": "30/07/2022",
- "newDiscountPrice": "800",
- "newDiscountPriceCurrency": "RSD",
- "newDiscountType": "SALE"
}
]
}
{- "updateResult": [
- {
- "success": true,
- "data": {
- "discountId": "43b49da5-9f9c-4458-b755-f9cb606aea85"
}
}, - {
- "success": false,
- "error": {
- "discountId": "1433c6dd-4651-463b-bd76-002c0f1f824a",
- "errorMessage": "Discounts that are ended can not be updated"
}
}
]
}
Get discount prices
Successfully
Invalid request
Internal server error
[- {
- "discountId": "1433c6dd-4651-463b-bd76-002c0f1f824a",
- "merchantInventoryId": 889,
- "discountPrice": 2000,
- "dateFrom": "2022-01-26T00:00:00",
- "dateTo": "2022-01-28T00:00:00"
}, - {
- "discountId": "43b49da5-9f9c-4458-b755-f9cb606aea85",
- "merchantInventoryId": 900,
- "discountPrice": 3000,
- "dateFrom": "2022-01-26T00:00:00",
- "dateTo": "2022-01-28T00:00:00"
}
]
Cancel discount prices
Success
Invalid request
Not found
Internal server error
{- "message": "string"
}