SPI Digital Receipts
Lookup recipient
post /recipient-lookupLooks up a user that can be identified by the one of the provided properties and accepts receiving of receipts.
| HTTP Status Code Summary | |
|---|---|
| 200 | User found |
| 400 | Invalid request. Data sent from client is invalid. |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 429 | Too many requests |
| 500 | Internal server error |
| 502 | Bad gateway |
Create a digital receipt
post /digital-receiptsCreates a digital receipt in the system that implementing this API.
| HTTP Status Code Summary | |
|---|---|
| 204 | Receipt successfully created |
| 400 | Invalid request. Data sent from client is invalid. |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not found |
| 429 | Too many requests |
| 500 | Internal server error |
| 502 | Bad gateway |
Objects
ErrorCodestring
Error code describing the type of error that occurred. The error_data property might contain additional information.
ErrorMessageobject
Loyaltyobject
Loyalty information for the recipient.
Loyalty ID for the customer in the CRM system.
Name of the loyalty program provider.
Loyalty tier or level of the customer.
Recipientobject
Identifies a recipient for digital receipts.
The type used to identify a recipient.
| VALUES |
|---|
| personal-id |
| phone-number |
A value that identifies a recipient, matching the provided type.
RecipientLookupobject
Lookup object to identify a user as recipient of receipts. At least one field must be provided.
Personal ID of the user, e.g. a national ID number or SSN.
Email address of the user.
Phone number of the user, in E.164 format.
ReceiptItemDiscountobject
The ID for the discount (voucherid in Sitoo Vouchers)
The name of the discount (vouchername in Sitoo Vouchers)
The group name for the discount (vouchercode in Sitoo Vouchers)
The total money amount of the discount
The total money VAT amount for the discount
Additional data for this discount
ReceiptSalesTaxobject
The ID of the sales tax
The name of the sales tax
The code used for the sales tax
External ID for the salestaxproductgrouprule that was used for the sales tax
The region for the salestaxgroup that was used for the sales tax
The tax percentage used for the sales tax
The total amount that the sales tax was applied towards
The amount taxed for the sales tax
PrintLineobject
The type of print formatting for this line
1Text: Prints a line of text fromvalue1.2TextBold: Prints a line of text fromvalue1in bold font.3TextDouble: Prints a line of text fromvalue1in bold font with double size, centered.4Info2: Printsvalue1with a colon beforevalue2.5Item2: Printsvalue1in the first columna andvalue2in the second (right aligned).7SepSpace: Prints an empty line.8SepDashed: Prints an separator line.9Sign: Prints an signature line.10Barcode128: Prints a barcode in Code 128 format.value1is the barcode data andvalue2is printed below the barcode.11BarcodeQR: Prints a QR code.value1is the QR data andvalue2is printed below the QR code.12TextCenter: Prints a line of text fromvalue1centered.
The scope for printing this line if applicable (1: Customer, 2: Store)
1Customer2Store
First value for the print line
Second value for the print line
ReceiptItemobject
The product SKU for the item
The product name for the item
The product variant information for the item
The discount name for the item
The note for the item
The product group type (10: Product, 20: Service, 30: GiftCard, 40: Deposit)
10Product20Service30GiftCard40Deposit
The product group name for the item
The unit label for the item
The number of items purchased
The total amount for the item
The discount amount for the item (Including VAT)
The VAT amount for the item
The unit price amount for the item
The unit quantity decimal value for the item (if applicable)
The VAT ID for the item
The VAT value for the item
An array of JournalReceiptItemDiscount applied to this item
An array of JournalReceiptSalesTax applied to this item
Additional data for this receipt item
An array of PrintLine
An array of PrintLine
PaymentMethodinteger
ID for the payment method used
100Cash110CreditNote200PointAirPay210VerifoneLPP220Host2T300ExtCard400Custom5500GiftCard510GiftCardCreditNote600Invoice610CashOnDelivery700Klarna705KlarnaV3710Swish711SwishQR720MobilePay730Vipps1000Custom11100Custom21200Custom31300Custom41400CustomInvoice2000CustomApi2100Adyen2110AdyenAPI2200Nets2300Coiney2400Zettle
ReceiptPaymentobject
The name of the payment
External ID for the payment (if applicable)
The total amount of the payment
The amount captured for the payment
The amount captured for the payment for items that were not delivered
Additional data for this payment
An array of PrintLine
An array of PrintLine
ReceiptVatobject
The vat value in percentage
The amount for the receipt VAT
The amount that the receipt VAT was calculated from
ReceiptCustomerobject
The customer for the receipt
The ID for the customer
The email for the customer
The first name for the customer
The last name for the customer
The personal ID for the customer
The company ID for the customer
The company for the customer
The mobile phone number for the customer
Reference for the customer
Invoice address for the customer
Extra invoice address field for the customer
Invoice zip/postal code for the customer
Invoice city for the customer
Invoice state/region for the customer
Invoice country ID for the customer
Delivery address for the customer
Extra delivery address field for the customer
Delivery zip/postal code for the customer
Delivery city for the customer
Delivery state/region for the customer
Delivery country ID for the customer
Receiptobject
The receipt number. Incremental number, unique to a cash register. Used together with the registerkey to produce the receipt ID (receiptid = <registerkey><receiptnumber>) which is the unique reference to the receipt.
The total amount for this receipt
The total item quantity for this receipt
The sub total amount before sales tax for the receipt (if applicable).
The roundoff amount for the receipt
Currency code for the receipt (3-letter ISO 4217)
True if the receipt is for a refund
The name of the staff that handled the transaction
The user ID for the staff that handled the transaction
Order ID in Sitoo for the purchase that a refund is referencing
An array of JournalReceiptItem with the items for the receipt
An array of JournalReceiptPayment with the payments for the receipt
An array of JournalReceiptVat with the VAT details for the receipt
An array of JournalReceiptSalesTax with the sales tax details for the receipt
The amount for the sales tax for not delivered items
Additional data for this receipt
An array of PrintLine
A comment/note associated with the receipt
The name of the cash register that generated the receipt
The version of the cash register that generated the receipt
ReceiptEntryobject
A receipt entry for a Sitoo POS (Cash Register)
The ID generated by the POS client for this entry. Note! All clients will have these in the order of when they were created, but for some clients the IDs will not be in sequence.
Unix timestamp for when the entry was created on the POS client
The ID for the POS that generated the entry
The key for the POS that generated the entry
The company ID for the POS that generated the entry
If true, then this is a receipt copy
If true, then this entry was generated in practice mode
The barcode for the receipt
The barcode for the original receipt if this is a return receipt
A text string for the header print section
An array of strings for the footer print section