SETUP

Kwick provides a REST API for you to post digital receipts. The payload format is XML following the ARTs Digital Receipt standard.

You can find the xml schemas here:

The required HTTP headers for your posted receipts are:

Content-Type: application/xml
Accept: application/xml
Authorization: Bearer <Token_from_Kwick>
X-Processes: kwick

To test the API, visit https://sandbox-developers.marcet.se or use your own HTTP Client, posting at https://sandbox-api.marcet.se/api/v1/digitalreceipts

The following Curl is an example on how to send a digital receipt to Kwick:

curl 
  -X POST "https://sandbox-api.marcet.se/api/v1/digitalreceipts" 
  -H "accept: application/xml” -H "X-Processes: kwick" 
  -H "Authorization: Bearer <Token_from_Kwick>” 
  -H "Content-Type: application/xml" 
  -d "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
     <DigitalReceipt xmlns=\"http://www.nrf-arts.org/IXRetail/namespace/\"MajorVersion=\"6\" MinorVersion=\"0\" FixVersion=\"0\">\t<Transaction MajorVersion=\"6\" MinorVersion=\"0\" FixVersion=\"0\" TypeCode=\"SaleTransaction\">\t</Transaction></DigitalReceipt>"

RESPONSE CODES

The following response codes are used:

200 Successful response No action required

401 Unauthenticated Make sure your access token is correct

403 Access denied Make sure your access token is correct

404 Not found Make sure the URL is correct

422 Validation error Correct the error and send again