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.
Download OpenAPI description
Languages
Servers
Production
https://api.kustom.co
Playground
https://api.playground.kustom.co
- Productionhttps://api.kustom.co/ipp/v1/enrollments
- Playgroundhttps://api.playground.kustom.co/ipp/v1/enrollments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.kustom.co/ipp/v1/enrollments?location_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&metadata=store_id%3A123&include_consumed=true&page_number=0&page_size=20' \
-H 'x-merchant-id: string'Response
application/json
{ "content": [ { … }, { … } ], "total_elements": 2, "total_pages": 1, "page_number": 0, "page_size": 20, "first": true, "last": true }
Bodyapplication/jsonrequired
Custom metadata key-value pairs for the enrollment.
Example: {"store_id":"123","terminal_type":"checkout"}
Time in milliseconds until the enrollment code expires. Defaults to 7200000 (2 hours).
Example: 360000
- Productionhttps://api.kustom.co/ipp/v1/enrollments
- Playgroundhttps://api.playground.kustom.co/ipp/v1/enrollments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.kustom.co/ipp/v1/enrollments \
-H 'Content-Type: application/json' \
-d '{
"location_id": "550e8400-e29b-41d4-a716-446655440000",
"expires_in": 360000,
"metadata": {
"store_id": "123",
"terminal_type": "checkout"
}
}'Response
application/json
{ "enrollment_id": "660e8400-e29b-41d4-a716-446655440001", "enrollment_code": "ABC123XYZ", "expires_at": "2024-01-15T11:30:00Z", "status": "PENDING", "metadata": { "store_id": "123", "terminal_type": "checkout" } }
- Productionhttps://api.kustom.co/ipp/v1/enrollments/{enrollment_id}
- Playgroundhttps://api.playground.kustom.co/ipp/v1/enrollments/{enrollment_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://api.kustom.co/ipp/v1/enrollments/{enrollment_id}'