The register
GET
/api/v1/commerce/pos
const url = 'https://digize.com/api/v1/commerce/pos';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/commerce/pos \ --header 'x-api-key: <x-api-key>'What the point of sale register needs: its settings, the store’s locations and their card reader setup, the tax it charges, the catalog with stock at the chosen location, card sales still waiting, and today’s takings.
Needs the commerce:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”locationId
The location to sell from; the default one when left out.
string
The location to sell from; the default one when left out.
Responses
Section titled “Responses”Done
Media typeapplication/json
object
settings
required
currency
required
string
storeName
required
string
locations
required
Array<object>
object
id
required
string
name
required
string
terminalLocationId
required
Its Stripe Terminal location, once card readers are set up there.
string | null
locationId
required
string | null
tax
required
object
name
required
string
rate
required
number
included
required
boolean
cardReady
required
boolean
testMode
required
boolean
products
required
Array<object>
object
id
required
string
name
required
string
category
required
string
type
required
string
imageUrl
required
string | null
taxable
required
boolean
variants
required
Array<object>
object
id
required
string
label
required
string
sku
required
string
barcode
required
string
price
required
number
stock
required
number | null
pending
required
Array<object>
object
id
required
string
status
required
string
method
required
string
locationId
required
string
locationName
required
string
lines
required
Array<object>
object
name
required
string
variant
required
string
quantity
required
number
price
required
number
totals
required
object
subtotal
required
number
discount
required
number
discountLabel
required
string | null
tax
required
number
taxName
required
string
taxIncluded
required
boolean
total
required
number
currency
required
string
email
required
string | null
phone
required
string | null
name
required
string | null
tendered
required
number | null
change
required
number | null
card
required
The card Stripe read: “Visa •••• 4242”.
string | null
paymentIntentId
required
string | null
orderId
required
string | null
orderNumber
required
number | null
receiptTo
required
string | null
error
required
string | null
actorName
required
string
createdAt
required
string format: date-time
today
required
object
sales
required
number
total
required
number
cash
required
number
card
required
number
Example
{ "pending": [ { "status": "pending", "method": "cash" } ]}What was sent isn’t valid (invalid).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}