Skip to content

Transactions

Endpoint for transactions

List Transactions

Request

Returns all transactions for a member.

Security
api_key
Path
customerIdstringrequired

Member identifier, depending on configuration one of the following identifers could be in use:

  • Mobile phone
  • Unique id (oipId or externalSystemId)
curl -i -X GET \
  'https://api.oculos.no/v4/transactions/customerId/{customerId}' \
  -H 'x-api-key: YOUR_API_KEY_HERE'

Responses

OK

Bodyapplication/json
Array [
receiptIdstring

Unique id of receipt/transaction

Example:"122014"
receiptDatestring

Date of purchase

Example:"2023-10-03T19:00:53"
storeIdstring

Id of store

Example:"332"
storeNamestring

Name of store

Example:"Our main store"
grossAmountnumber

Total amount of transaction

Example:979.3
vatnumber

Total VAT amount of transaction

Example:195.86
netAmountnumber

Totalt amount of transction without VAT

Example:783.44
discountnumber

Totalt discount given on transaction

Example:0
rowsArray of objects

List of products / line items

]
Response
[ { "receiptId": "122014", "receiptDate": "2023-10-03T19:00:53", "storeId": "332", "storeName": "Our main store", "grossAmount": 979.3, "vat": 195.86, "netAmount": 783.44, "discount": 0, "rows": [ … ] } ]