API reference · v1.0
Salesift API
Send a shop's till sales to Salesift, and read the public mall directory.
Sales API — one HTTPS request per sale, authenticated with the shop's API key in the api-key header. Resending a sale with the same transactionId never creates a duplicate, so retries are always safe. For a walkthrough with a sending pattern and a go-live checklist, read the integration guide .
Public directory API — read-only, no key: a mall's directory (by the mall's slug, which the mall team shares), its shops and each shop's profile. There is no list of all malls. Use it to show a mall's shops on your own site or kiosk.
Errors answer JSON with a readable message in error.message.
Integration guide OpenAPI spec (YAML)
Authentication
Base URL: https://api.salesift.com. Sales API requests send the shop's key in the api-key header. The shop's API key, made in Salesift under Shops → View API keys and shown once.
Header Copy
api-key: 5f0c2c…your key…9a3f
Sales
Send, correct and read back a shop's sales. Needs the shop's API key.
Send a sale
POST /salesApi/shops/{shopId}/sales
Send each sale once it is closed at the till. If a sale with this transactionId was already stored for the shop, the answer is 200 with the stored sale and nothing new is saved; otherwise 201 . Treat both as success.
Parameters
Field Type Notes
shopIdRequired integer In the path. The shop's id. A key only reaches its own shop.
Body
Field Type Notes
transactionIdRequired string, up to 64 The till's receipt or transaction number. Unique within the shop; it makes retries safe.
occurredAtRequired ISO 8601 date-time When the sale happened, with offset or Z. Up to 24 hours in the future is accepted.
totalAmountRequired number ≥ 0 The total before discount and taxes.
discountoptional number ≥ 0 Defaults to 0.
totalTaxesoptional number ≥ 0 Defaults to 0.
netTotaloptional number ≥ 0 What the customer paid. Defaults to totalAmount − discount + totalTaxes. Turnover rent uses this figure.
currencyCodeoptional string A currency the mall has set up with an exchange rate. Defaults to USD.
saleTypeIdoptional integer One of the mall's sale type ids.
paymentsoptional array of objects, up to 50
payments[].paymentAmountRequired number ≥ 0 The amount paid this way.
payments[].paymentMethodoptional integer One of the mall's payment method ids.
payments[].paymentCurrencyoptional string Defaults to the sale's currency.
Example
curl Node Python Copy
curl -X POST https://api.salesift.com/salesApi/shops/14/sales \
-H "api-key: $SALESIFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"transactionId": "T-48213", "occurredAt": "2026-10-18T14:02:11+03:00", "totalAmount": 99.0, "discount": 9.1, "totalTaxes": 0, "currencyCode": "USD", "saleTypeId": 1, "payments": [{"paymentMethod": 1, "paymentAmount": 89.9}]}' const res = await fetch("https://api.salesift.com/salesApi/shops/14/sales" , {
method: "POST" ,
headers: { "api-key" : process.env.SALESIFT_API_KEY, "Content-Type" : "application/json" },
body: JSON.stringify({
"transactionId": "T-48213",
"occurredAt": "2026-10-18T14:02:11+03:00",
"totalAmount": 99.0,
"discount": 9.1,
"totalTaxes": 0,
"currencyCode": "USD",
"saleTypeId": 1,
"payments": [
{
"paymentMethod": 1,
"paymentAmount": 89.9
}
]
}),
});
const data = await res.json();import os, requests
res = requests.post(
"https://api.salesift.com/salesApi/shops/14/sales" ,
headers={"api-key" : os.environ["SALESIFT_API_KEY" ]},
json={
"transactionId": "T-48213",
"occurredAt": "2026-10-18T14:02:11+03:00",
"totalAmount": 99.0,
"discount": 9.1,
"totalTaxes": 0,
"currencyCode": "USD",
"saleTypeId": 1,
"payments": [
{
"paymentMethod": 1,
"paymentAmount": 89.9
}
]
},
timeout=10,
)
res.raise_for_status()
data = res.json()
Responses
Status Meaning
201Stored.
200This transactionId was already stored; the stored sale is returned.
400The body is wrong: a missing or negative amount, a bad date, an unknown currency, sale type or payment method. Fix the data; don't retry unchanged.
403The key is missing, wrong, expired or revoked, or its role lacks the permission. May come back with no JSON body.
404Not found, or the key belongs to another shop.
413The body is over 1 MB. Send one sale per request.
201 response Copy
{
"id" : 90412 ,
"transactionId" : "T-48213" ,
"version" : 1 ,
"shopId" : 14 ,
"occurredAt" : "2026-10-18T14:02:11+03:00" ,
"currencyCode" : "USD" ,
"totalAmount" : 99 ,
"discount" : 9.1 ,
"totalTaxes" : 0 ,
"netTotal" : 89.9 ,
"fxRate" : 1 ,
"netTotalSystem" : 89.9 ,
"payments" : [
{
"paymentAmount" : 0 ,
"paymentMethod" : 1 ,
"paymentCurrency" : "USD"
}
]
}
Response fields
Field Type Notes
idinteger
transactionIdstring
versioninteger
shopIdinteger
occurredAtISO 8601 date-time
currencyCodestring
totalAmountnumber
discountnumber
totalTaxesnumber
netTotalnumber
fxRatenumber
netTotalSystemnumber The net total in the mall's reporting currency.
paymentsarray of objects
payments[].paymentAmountnumber ≥ 0 The amount paid this way.
payments[].paymentMethodinteger One of the mall's payment method ids.
payments[].paymentCurrencystring Defaults to the sale's currency.
Try it
Correct a sale
PUT /salesApi/shops/{shopId}/sales/{saleId}
Send only the fields that change, plus a modificationReason. The original is kept and the change is saved as a new version with a new id. Always correct the newest version. The key's role needs the update sale permission.
Parameters
Field Type Notes
shopIdRequired integer In the path. The shop's id. A key only reaches its own shop.
saleIdRequired integer In the path. The id of the sale's newest version.
Body
Field Type Notes
modificationReasonRequired string, up to 255
occurredAtoptional ISO 8601 date-time
totalAmountoptional number ≥ 0
discountoptional number ≥ 0
totalTaxesoptional number ≥ 0
netTotaloptional number ≥ 0
currencyCodeoptional string
saleTypeIdoptional integer
Example
curl Node Python Copy
curl -X PUT https://api.salesift.com/salesApi/shops/14/sales/90412 \
-H "api-key: $SALESIFT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"discount": 19.1, "modificationReason": "Discount left off at the till"}' const res = await fetch("https://api.salesift.com/salesApi/shops/14/sales/90412" , {
method: "PUT" ,
headers: { "api-key" : process.env.SALESIFT_API_KEY, "Content-Type" : "application/json" },
body: JSON.stringify({
"discount": 19.1,
"modificationReason": "Discount left off at the till"
}),
});
const data = await res.json();import os, requests
res = requests.put(
"https://api.salesift.com/salesApi/shops/14/sales/90412" ,
headers={"api-key" : os.environ["SALESIFT_API_KEY" ]},
json={
"discount": 19.1,
"modificationReason": "Discount left off at the till"
},
timeout=10,
)
res.raise_for_status()
data = res.json()
Responses
Status Meaning
202Saved as a new version.
400The body is wrong: a missing or negative amount, a bad date, an unknown currency, sale type or payment method. Fix the data; don't retry unchanged.
403The key is missing, wrong, expired or revoked, or its role lacks the permission. May come back with no JSON body.
404Not found, or the key belongs to another shop.
409This sale was already modified; use its newest id.
202 response Copy
{
"id" : 90412 ,
"transactionId" : "T-48213" ,
"version" : 1 ,
"shopId" : 14 ,
"occurredAt" : "2026-10-18T14:02:11+03:00" ,
"currencyCode" : "USD" ,
"totalAmount" : 99 ,
"discount" : 9.1 ,
"totalTaxes" : 0 ,
"netTotal" : 89.9 ,
"fxRate" : 1 ,
"netTotalSystem" : 89.9 ,
"payments" : [
{
"paymentAmount" : 0 ,
"paymentMethod" : 1 ,
"paymentCurrency" : "USD"
}
]
}
Response fields
Field Type Notes
idinteger
transactionIdstring
versioninteger
shopIdinteger
occurredAtISO 8601 date-time
currencyCodestring
totalAmountnumber
discountnumber
totalTaxesnumber
netTotalnumber
fxRatenumber
netTotalSystemnumber The net total in the mall's reporting currency.
paymentsarray of objects
payments[].paymentAmountnumber ≥ 0 The amount paid this way.
payments[].paymentMethodinteger One of the mall's payment method ids.
payments[].paymentCurrencystring Defaults to the sale's currency.
Try it
Uses the API key from Authentication . Requests reach live data.
shopId path, required saleId path, required Body JSON {
"discount": 19.1,
"modificationReason": "Discount left off at the till"
}
Send PUT request
Replace a sale's payments
PUT /salesApi/shops/{shopId}/sales/{saleId}/payments
Replaces the sale's payments and saves a new version with a new id. Needs the update sale permission.
Parameters
Field Type Notes
shopIdRequired integer In the path. The shop's id. A key only reaches its own shop.
saleIdRequired integer In the path. The id of the sale's newest version.
Body
A JSON array of up to 50 items, each:
Field Type Notes
[].paymentAmountRequired number ≥ 0 The amount paid this way.
[].paymentMethodoptional integer One of the mall's payment method ids.
[].paymentCurrencyoptional string Defaults to the sale's currency.
Example
curl Node Python Copy
curl -X PUT https://api.salesift.com/salesApi/shops/14/sales/90412/payments \
-H "api-key: $SALESIFT_API_KEY" \
-H "Content-Type: application/json" \
-d '[{"paymentMethod": 1, "paymentAmount": 50.0}, {"paymentMethod": 2, "paymentAmount": 29.9}]' const res = await fetch("https://api.salesift.com/salesApi/shops/14/sales/90412/payments" , {
method: "PUT" ,
headers: { "api-key" : process.env.SALESIFT_API_KEY, "Content-Type" : "application/json" },
body: JSON.stringify([
{
"paymentMethod": 1,
"paymentAmount": 50.0
},
{
"paymentMethod": 2,
"paymentAmount": 29.9
}
]),
});
const data = await res.json();import os, requests
res = requests.put(
"https://api.salesift.com/salesApi/shops/14/sales/90412/payments" ,
headers={"api-key" : os.environ["SALESIFT_API_KEY" ]},
json=[
{
"paymentMethod": 1,
"paymentAmount": 50.0
},
{
"paymentMethod": 2,
"paymentAmount": 29.9
}
],
timeout=10,
)
res.raise_for_status()
data = res.json()
Responses
Status Meaning
201Saved as a new version.
400The body is wrong: a missing or negative amount, a bad date, an unknown currency, sale type or payment method. Fix the data; don't retry unchanged.
403The key is missing, wrong, expired or revoked, or its role lacks the permission. May come back with no JSON body.
404Not found, or the key belongs to another shop.
409This sale was already modified; use its newest id.
201 response Copy
{
"id" : 90412 ,
"transactionId" : "T-48213" ,
"version" : 1 ,
"shopId" : 14 ,
"occurredAt" : "2026-10-18T14:02:11+03:00" ,
"currencyCode" : "USD" ,
"totalAmount" : 99 ,
"discount" : 9.1 ,
"totalTaxes" : 0 ,
"netTotal" : 89.9 ,
"fxRate" : 1 ,
"netTotalSystem" : 89.9 ,
"payments" : [
{
"paymentAmount" : 0 ,
"paymentMethod" : 1 ,
"paymentCurrency" : "USD"
}
]
}
Response fields
Field Type Notes
idinteger
transactionIdstring
versioninteger
shopIdinteger
occurredAtISO 8601 date-time
currencyCodestring
totalAmountnumber
discountnumber
totalTaxesnumber
netTotalnumber
fxRatenumber
netTotalSystemnumber The net total in the mall's reporting currency.
paymentsarray of objects
payments[].paymentAmountnumber ≥ 0 The amount paid this way.
payments[].paymentMethodinteger One of the mall's payment method ids.
payments[].paymentCurrencystring Defaults to the sale's currency.
Try it
Uses the API key from Authentication . Requests reach live data.
shopId path, required saleId path, required Body JSON [
{
"paymentMethod": 1,
"paymentAmount": 50.0
},
{
"paymentMethod": 2,
"paymentAmount": 29.9
}
]
Send PUT request
Read sales back
GET /salesApi/sales
The shop's sales between two date-times, newest first, up to 20,000 per request. Use it to reconcile the till at the end of the day.
Parameters
Field Type Notes
shopIdRequired integer In the query string.
fromRequired ISO 8601 date-time In the query string. ISO 8601 date-time with offset.
toRequired ISO 8601 date-time In the query string.
Example
curl Node Python Copy
curl "https://api.salesift.com/salesApi/sales?shopId=14&from=2026-10-18T00:00:00+03:00&to=2026-10-19T00:00:00+03:00" \
-H "api-key: $SALESIFT_API_KEY" const res = await fetch("https://api.salesift.com/salesApi/sales?shopId=14&from=2026-10-18T00:00:00+03:00&to=2026-10-19T00:00:00+03:00" , {
method: "GET" ,
headers: { "api-key" : process.env.SALESIFT_API_KEY },
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.salesift.com/salesApi/sales?shopId=14&from=2026-10-18T00:00:00+03:00&to=2026-10-19T00:00:00+03:00" ,
headers={"api-key" : os.environ["SALESIFT_API_KEY" ]},
timeout=10,
)
res.raise_for_status()
data = res.json()
Responses
Status Meaning
200Sales, newest first.
403The key is missing, wrong, expired or revoked, or its role lacks the permission. May come back with no JSON body.
200 response Copy
[
{
"id" : 90412 ,
"transactionId" : "T-48213" ,
"version" : 1 ,
"shopId" : 14 ,
"occurredAt" : "2026-10-18T14:02:11+03:00" ,
"currencyCode" : "USD" ,
"totalAmount" : 99 ,
"discount" : 9.1 ,
"totalTaxes" : 0 ,
"netTotal" : 89.9 ,
"fxRate" : 1 ,
"netTotalSystem" : 89.9 ,
"payments" : [
{
"paymentAmount" : 0 ,
"paymentMethod" : 1 ,
"paymentCurrency" : "USD"
}
]
}
]
Response fields
Field Type Notes
[].idinteger
[].transactionIdstring
[].versioninteger
[].shopIdinteger
[].occurredAtISO 8601 date-time
[].currencyCodestring
[].totalAmountnumber
[].discountnumber
[].totalTaxesnumber
[].netTotalnumber
[].fxRatenumber
[].netTotalSystemnumber The net total in the mall's reporting currency.
[].paymentsarray of objects
[].payments[].paymentAmountnumber ≥ 0 The amount paid this way.
[].payments[].paymentMethodinteger One of the mall's payment method ids.
[].payments[].paymentCurrencystring Defaults to the sale's currency.
Try it
Uses the API key from Authentication . Requests reach live data.
shopId query, required from query, required to query, required
Send GET request
This month's total
GET /salesApi/shops/{shopId}/monthly
Parameters
Field Type Notes
shopIdRequired integer In the path. The shop's id. A key only reaches its own shop.
Example
curl Node Python Copy
curl https://api.salesift.com/salesApi/shops/14/monthly \
-H "api-key: $SALESIFT_API_KEY" const res = await fetch("https://api.salesift.com/salesApi/shops/14/monthly" , {
method: "GET" ,
headers: { "api-key" : process.env.SALESIFT_API_KEY },
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.salesift.com/salesApi/shops/14/monthly" ,
headers={"api-key" : os.environ["SALESIFT_API_KEY" ]},
timeout=10,
)
res.raise_for_status()
data = res.json()
Responses
Status Meaning
200The shop's total for the current month.
403The key is missing, wrong, expired or revoked, or its role lacks the permission. May come back with no JSON body.
Try it
Uses the API key from Authentication . Requests reach live data.
shopId path, required
Send GET request
Public directory
Malls, shops and shop profiles. No key needed.
Get a mall and its filters
GET /public/malls/{mall} No key
Parameters
Field Type Notes
mallRequired string In the path.
Example
curl Node Python Copy
curl https://api.salesift.com/public/malls/corniche-mallconst res = await fetch("https://api.salesift.com/public/malls/corniche-mall" , {
method: "GET" ,
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.salesift.com/public/malls/corniche-mall" ,
timeout=10,
)
res.raise_for_status()
data = res.json()
Responses
Status Meaning
200The mall, with the categories, types and floors that have listed shops.
404Not found, or the key belongs to another shop.
200 response Copy
{
"id" : 1 ,
"slug" : "corniche-mall" ,
"name" : "Corniche Mall" ,
"city" : "string" ,
"address" : "string" ,
"phone" : "string" ,
"website" : "string" ,
"openingHours" : "string" ,
"description" : "string" ,
"logoUrl" : "string" ,
"shopCount" : 1 ,
"filters" : {
"categories" : [
{
"id" : 1 ,
"name" : "string" ,
"count" : 1
}
],
"activities" : [
{
"id" : 1 ,
"name" : "string" ,
"count" : 1
}
],
"floors" : [
{
"id" : 1 ,
"name" : "string" ,
"count" : 1
}
]
}
}
Response fields
Field Type Notes
idinteger
slugstring
namestring
citystring or null
addressstring or null
phonestring or null
websitestring or null
openingHoursstring or null
descriptionstring or null
logoUrlstring or null Path on api.salesift.com, such as /public/malls/corniche-mall/logo?v=…
shopCountinteger
filtersobject
filters.categoriesarray of objects
filters.categories[].idinteger Absent for floors.
filters.categories[].namestring
filters.categories[].countinteger
filters.activitiesarray of objects
filters.activities[].idinteger Absent for floors.
filters.activities[].namestring
filters.activities[].countinteger
filters.floorsarray of objects
filters.floors[].idinteger Absent for floors.
filters.floors[].namestring
filters.floors[].countinteger
Try it
No key needed.
mall path, required
Send GET request
Search a mall's shops
GET /public/malls/{mall}/shops No key
Parameters
Field Type Notes
mallRequired string In the path.
qoptional string In the query string. Words to match in the name, short info, category or type.
categoryoptional integer In the query string. Category id.
activityoptional integer In the query string. Type (activity) id.
flooroptional string In the query string.
Example
curl Node Python Copy
curl https://api.salesift.com/public/malls/corniche-mall/shopsconst res = await fetch("https://api.salesift.com/public/malls/corniche-mall/shops" , {
method: "GET" ,
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.salesift.com/public/malls/corniche-mall/shops" ,
timeout=10,
)
res.raise_for_status()
data = res.json()
Responses
Status Meaning
200Listed shops, by name.
404Not found, or the key belongs to another shop.
200 response Copy
[
{
"id" : 1 ,
"slug" : "byblos-grill" ,
"name" : "Byblos Grill" ,
"tagline" : "Charcoal grills, mezze and fresh juices" ,
"floor" : "1" ,
"apartmentNumber" : "112" ,
"openingHours" : "string" ,
"category" : {
"id" : 1 ,
"name" : "string"
},
"activity" : {
"id" : 1 ,
"name" : "string"
},
"logoUrl" : "string"
}
]
Response fields
Field Type Notes
[].idinteger
[].slugstring
[].namestring
[].taglinestring or null
[].floorstring or null
[].apartmentNumberstring or null
[].openingHoursstring or null
[].categoryobject or null
[].category.idinteger
[].category.namestring
[].activityobject or null
[].activity.idinteger
[].activity.namestring
[].logoUrlstring or null
Try it
No key needed.
mall path, required q query category query activity query floor query
Send GET request
Get a shop's profile
GET /public/malls/{mall}/shops/{shop} No key
Parameters
Field Type Notes
mallRequired string In the path.
shopRequired string In the path.
Example
curl Node Python Copy
curl https://api.salesift.com/public/malls/corniche-mall/shops/byblos-grillconst res = await fetch("https://api.salesift.com/public/malls/corniche-mall/shops/byblos-grill" , {
method: "GET" ,
});
const data = await res.json();import os, requests
res = requests.get(
"https://api.salesift.com/public/malls/corniche-mall/shops/byblos-grill" ,
timeout=10,
)
res.raise_for_status()
data = res.json()
Responses
Status Meaning
200The shop's one-page profile and up to four shops in the same category.
404Not found, or the key belongs to another shop.
200 response Copy
{
"mall" : {
"id" : 1 ,
"slug" : "corniche-mall" ,
"name" : "Corniche Mall" ,
"city" : "string" ,
"address" : "string" ,
"phone" : "string" ,
"website" : "string" ,
"openingHours" : "string" ,
"description" : "string" ,
"logoUrl" : "string" ,
"shopCount" : 1
},
"shop" : {
"id" : 1 ,
"slug" : "byblos-grill" ,
"name" : "Byblos Grill" ,
"tagline" : "Charcoal grills, mezze and fresh juices" ,
"floor" : "1" ,
"apartmentNumber" : "112" ,
"openingHours" : "string" ,
"category" : {
"id" : 1 ,
"name" : "string"
},
"activity" : {
"id" : 1 ,
"name" : "string"
},
"logoUrl" : "string" ,
"description" : "string" ,
"website" : "string" ,
"instagram" : "string" ,
"facebook" : "string" ,
"phone" : "string" ,
"coverUrl" : "string"
},
"related" : [
{
"id" : 1 ,
"slug" : "byblos-grill" ,
"name" : "Byblos Grill" ,
"tagline" : "Charcoal grills, mezze and fresh juices" ,
"floor" : "1" ,
"apartmentNumber" : "112" ,
"openingHours" : "string" ,
"category" : {
"id" : 1 ,
"name" : "string"
},
"activity" : {
"id" : 1 ,
"name" : "string"
},
"logoUrl" : "string"
}
]
}
Response fields
Field Type Notes
mallobject
mall.idinteger
mall.slugstring
mall.namestring
mall.citystring or null
mall.addressstring or null
mall.phonestring or null
mall.websitestring or null
mall.openingHoursstring or null
mall.descriptionstring or null
mall.logoUrlstring or null Path on api.salesift.com, such as /public/malls/corniche-mall/logo?v=…
mall.shopCountinteger
shopobject
shop.idinteger
shop.slugstring
shop.namestring
shop.taglinestring or null
shop.floorstring or null
shop.apartmentNumberstring or null
shop.openingHoursstring or null
shop.categoryobject or null
shop.category.idinteger
shop.category.namestring
shop.activityobject or null
shop.activity.idinteger
shop.activity.namestring
shop.logoUrlstring or null
shop.descriptionstring or null
shop.websitestring or null
shop.instagramstring or null
shop.facebookstring or null
shop.phonestring or null
shop.coverUrlstring or null
relatedarray of objects
related[].idinteger
related[].slugstring
related[].namestring
related[].taglinestring or null
related[].floorstring or null
related[].apartmentNumberstring or null
related[].openingHoursstring or null
related[].categoryobject or null
related[].category.idinteger
related[].category.namestring
related[].activityobject or null
related[].activity.idinteger
related[].activity.namestring
related[].logoUrlstring or null
Try it
No key needed.
mall path, required shop path, required
Send GET request
Previous Integration guide Next All guides