Skip to content

The register

GET
/api/v1/commerce/pos
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.

locationId

The location to sell from; the default one when left out.

string
>= 1 characters <= 64 characters

The location to sell from; the default one when left out.

Done

Media typeapplication/json
object
settings
required
object
cash
required
boolean
card
required
boolean
locationId
required
Any of:
string
<= 64 characters
receiptFooter
required
string
<= 300 characters
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
Allowed values: pending paid cancelled
method
required
string
Allowed values: cash card
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
receiptAt
required
Any of:
string format: date-time
error
required
string | null
actorName
required
string
createdAt
required
string format: date-time
completedAt
required
Any of:
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
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
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}