1. Home
  2. Connect API
  3. Transaction Request Response Examples

Transaction Request Response Examples

Here are examples of POST requests and JSON responses for transactions using the Connect API and a device running Kinetic Go.

Magnetic Stripe Sale

This example uses MasterCard M-TIP04 test card to initiate the magnetic stripe test transaction.

Request:
curl -X "POST" "https://ip-10-0-1-62.devices.kineticsmart.com:44443/api/v1/sale.json" -H "Content-Type: application/json; charset=utf-8" -u kinetic_admin:8qhEaKoR -d $'{ "amount": 100 }'

Response:
{"success":true,"uuid":"0b6b8665-5430-4b68-cbe8-97453be7ce04"}

When transaction is completed, Request:
curl "https://ip-10-0-1-62.devices.kineticsmart.com:44443/api/v1/transaction.json?uuid=0b6b8665-5430-4b68-cbe8-97453be7ce04" -H "Content-Type: application/json; charset=utf-8" -u kinetic_admin:8qhEaKoR

Response: JSON, device generated receipts

EMV Contact Sale

This example uses Visa Contact ADVT 6.1.1 Test Case 01a for the sale of £1.00.

Request:
curl -X "POST" "https://ip-10-0-1-62.devices.kineticsmart.com:44443/api/v1/sale.json" -H "Content-Type: application/json; charset=utf-8" -u kinetic_admin:8qhEaKoR -d $'{ "amount": 100 }'

Response:
{"success":true,"uuid":"c0aeee0a-a0b6-4017-c019-3b3cb52f7d12"}

When transaction is completed, Request:
curl "https://ip-10-0-1-62.devices.kineticsmart.com:44443/api/v1/transaction.json?uuid=c0aeee0a-a0b6-4017-c019-3b3cb52f7d12" -H "Content-Type: application/json; charset=utf-8" -u kinetic_admin:8qhEaKoR

Response: JSON, device generated receipts

EMV Contactless Sale

This example uses Visa CDET v2.3 Card 01 available in the Visa CDET app on Google Play for the sale of £1.00.

Request:
curl -X "POST" "https://ip-10-0-1-62.devices.kineticsmart.com:44443/api/v1/sale.json" -H "Content-Type: application/json; charset=utf-8" -u kinetic_admin:8qhEaKoR -d $'{ "amount": 100 }'

Response:
{"success":true,"uuid":"46dfc19a-15a3-462f-c6a1-51ba71bcb752"}

When transaction is completed, Request:
curl "https://ip-10-0-1-62.devices.kineticsmart.com:44443/api/v1/transaction.json?uuid=46dfc19a-15a3-462f-c6a1-51ba71bcb752" -H "Content-Type: application/json; charset=utf-8" -u kinetic_admin:8qhEaKoR

Response: JSON, device generated receipts

Updated on 5th October 2017

Article Attachments

Was this article helpful?

Related Articles

Leave a Comment