Create a new location
Create a new location from user input.
POST
/v1/locations/authorization<token>
To get an API key, please contact us. We'll be happy to help you.
In: header
applicationstring
POS application
Value in
"POPINA" | "JALIA"nextClosingStartsAt?string|null
nextClosingEndsAt?string|null
groupItemsOnPreparation?boolean
currencyCode?string
Value in
"XFP" | "CHF" | "NGN" | "HNL" | "INR" | "USD" | "ETB" | "MOP" | "KHR" | "SSP" | "MMK" | "MZN" | "GHS" | "GBP" | "WST" | "MKD" | "BAM" | "MRU" | "BND" | "ERN" | "MGA" | "CAD" | "TOP" | "KMF" | "PAB" | "PLN" | "RSD" | "BSD" | "SZL" | "HTG" | "PKR" | "GTQ" | "KES" | "UYU" | "BTN" | "JOD" | "NOK" | "AMD" | "SAR" | "LYD" | "CDF" | "PHP" | "MVR" | "UZS" | "XPF" | "KWD" | "STN" | "SDG" | "SRD" | "DOP" | "UAH" | "CLP" | "IRR" | "BWP" | "GMD" | "NAD" | "ISK" | "QAR" | "COP" | "TND" | "JMD" | "MAD" | "MDL" | "BIF" | "NIO" | "BMD" | "EGP" | "RWF" | "IQD" | "CRC" | "IDR" | "ILS" | "BOB" | "SBD" | "SOS" | "CUP" | "JPY" | "SCR" | "CNY" | "THB" | "MWK" | "RON" | "KYD" | "GIP" | "CVE" | "BRL" | "DJF" | "PYG" | "AOA" | "ARS" | "SHP" | "AZN" | "VUV" | "KGS" | "LRD" | "AFN" | "ANG" | "FJD" | "NZD" | "FKP" | "LKR" | "BZD" | "SLL" | "BHD" | "SYP" | "LAK" | "NPR" | "BYN" | "AED" | "HUF" | "KPW" | "ALL" | "VES" | "TJS" | "SGD" | "TRY" | "XCD" | "KRW" | "TTD" | "MYR" | "ZMW" | "OMR" | "KZT" | "MXN" | "MUR" | "LBP" | "AUD" | "DZD" | "SEK" | "AWG" | "BBD" | "TWD" | "GNF" | "PGK" | "BDT" | "DKK" | "XOF" | "YER" | "UGX" | "PEN" | "GYD" | "GEL" | "TZS" | "VND" | "TMT" | "BGN" | "CZK" | "HKD" | "MNT" | "EUR" | "ZAR" | "RUB" | "XAF"exerciseMonth?integer
Range
-9007199254740991 <= valuemaxStepsCount?integer
Range
-9007199254740991 <= valuepreparationEnabled?boolean
printClaimTickets?boolean
printClaimContent?boolean
qrCodeAuthEnabled?boolean
printMealContent?boolean
printFullReport?boolean
promptCashFloat?boolean
closeOnTransmit?boolean
printAllClaims?boolean
printWhenPaid?boolean
compactOrder?boolean
gapAllowed?boolean
cutClaims?boolean
tipsConfig?|null
locationSettings
organizationIdstring
Organization ID
Format
uuidagencyIdstring
Agency ID
Format
uuidResponse Body
application/json
curl -X POST "https://api.pragma-project.dev/v1/locations/" \ -H "Content-Type: application/json" \ -d '{ "agencyId": "cd53ee79-98bb-42b5-913a-f9854b1e6177", "organizationId": "ed41b44e-01e6-4a5b-b9f0-fe365a40314c", "application": "JALIA", "nextClosingStartsAt": "2022-01-01T00:00:00Z", "nextClosingEndsAt": "2022-01-01T00:00:00Z", "groupItemsOnPreparation": true, "currencyCode": "USD", "exerciseMonth": 1, "maxStepsCount": 1, "preparationEnabled": true, "printClaimTickets": true, "printClaimContent": true, "qrCodeAuthEnabled": true, "printMealContent": true, "printFullReport": true, "promptCashFloat": true, "closeOnTransmit": true, "printAllClaims": true, "printWhenPaid": true, "compactOrder": true, "gapAllowed": true, "cutClaims": true, "tipsConfig": { "isEnabled": true, "predefinedValues": [ 5, 10, 15, 20 ], "format": "percentage" }, "locationSettings": { "address1": "123 Main St", "address2": "Suite 100", "city": "Springfield", "country": "USA", "companyName": "Pragma", "customFooter": "Thank you for your business!", "customHeader": "Welcome to Pragma", "logoUrl": "https://www.pragma.com/logo.png", "nafCode": "1234", "phoneNumber": "555-555-5555", "siretCode": "1234", "tvaCode": "1234", "allowGapInTillStats": true, "askForInitialCashFloat": true, "closeAfterOrderCall": true, "currencyLocale": "en-US", "timezone": "America/New_York", "cutBetweenSteps": true, "detailedReport": true, "doNotPrintClaim": true, "enablePreparationCall": true, "establishmentName": "Pragma", "groupProductsOnOrder": true, "groupProductsOnPrepaReceipt": true, "locationName": "Pragma", "menuButtonsCount": 1, "prepaStepsCount": 1, "printClaimWithoutDetail": true, "printMenuNameOnPrepaReceipt": true, "printMenuWithDetail": true, "printModifierGroupOnPrepaReceipt": true, "zipCode": "33270", "printOnlyFirstPrepaReceipt": true, "printOnPay": true, "qrCodeLogin": false, "website": "https://www.pragma.com", "closeFiscalYearDate": {} } }'{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}