Device enrollment code management for pairing new devices.
In-Person Payments API (1.0.0)
API for accepting in-store payments through Kustom. Your backend creates payment sessions dispatched to registered devices, and the Kustom POS app handles collection. In-Person Payments supports card payments (tap-to-pay) as well as alternative payment methods — Klarna, Swish, and Vipps — collected via Scan to pay. Kustom delivers lifecycle callbacks back to your system.
A device is your own smartphone (iPhone or Android) running the Kustom POS app, installed from the App Store or Google Play. Each device is paired to your account using an enrollment code.
- Productionhttps://api.kustom.co/ipp/v1/sessions/{session_id}/cancel
- Playgroundhttps://api.playground.kustom.co/ipp/v1/sessions/{session_id}/cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.kustom.co/ipp/v1/sessions/{session_id}/cancel'Session cancelled.
Current session status.
Device ID handling the session.
Timestamp when the purchase started.
Timestamp when the purchase was completed.
{ "session_id": "660e8400-e29b-41d4-a716-446655440001", "status": "CANCELLED", "device_id": "550e8400-e29b-41d4-a716-446655440000", "order_amount": 240000, "purchase_currency": "SEK", "purchase_started_at": "2024-01-15T10:30:00Z", "order_tax_amount": 48000, "merchant_reference1": "ORDER-12345", "order_items": [ { … } ] }
Timestamp when the purchase started.
Timestamp when the purchase was completed.
- Productionhttps://api.kustom.co/ipp/v1/sessions
- Playgroundhttps://api.playground.kustom.co/ipp/v1/sessions
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.kustom.co/ipp/v1/sessions?location_id=497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Content-Type: application/json' \
-d '{
"device_id": "550e8400-e29b-41d4-a716-446655440000",
"order_amount": 240000,
"purchase_currency": "SEK",
"purchase_started_at": "2024-01-15T10:30:00Z",
"order_tax_amount": 48000,
"merchant_reference1": "ORDER-12345",
"order_items": [
{
"type": "physical",
"reference": "SKU-001",
"name": "T-Shirt",
"quantity": 2,
"unit_price": 100000,
"total_amount": 200000,
"tax_rate": 2500,
"total_tax_amount": 40000
},
{
"type": "physical",
"reference": "SKU-002",
"name": "Socks",
"quantity": 1,
"unit_price": 40000,
"total_amount": 40000,
"tax_rate": 2500,
"total_tax_amount": 8000
}
]
}'Session created and dispatched to device.
Current session status.
Device ID handling the session.
Timestamp when the purchase started.
Timestamp when the purchase was completed.
{ "session_id": "660e8400-e29b-41d4-a716-446655440001", "status": "CREATED", "device_id": "550e8400-e29b-41d4-a716-446655440000", "order_amount": 240000, "purchase_currency": "SEK", "purchase_started_at": "2024-01-15T10:30:00Z", "order_tax_amount": 48000, "merchant_reference1": "ORDER-12345", "order_items": [ { … }, { … } ] }
- Productionhttps://api.kustom.co/ipp/v1/sessions/{session_id}
- Playgroundhttps://api.playground.kustom.co/ipp/v1/sessions/{session_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.kustom.co/ipp/v1/sessions/{session_id}'Session details.
Current session status.
Device ID handling the session.
Timestamp when the purchase started.
Timestamp when the purchase was completed.
{ "session_id": "660e8400-e29b-41d4-a716-446655440001", "status": "ACTIVE", "device_id": "550e8400-e29b-41d4-a716-446655440000", "order_id": "770e8400-e29b-41d4-a716-446655440002", "order_amount": 240000, "purchase_currency": "SEK", "purchase_started_at": "2024-01-15T10:30:00Z", "order_tax_amount": 48000, "merchant_reference1": "ORDER-12345", "order_items": [ { … } ] }