# Get session Retrieves session details by ID. Endpoint: GET /ipp/v1/sessions/{session_id} Version: 1.0.0 ## Path parameters: - `session_id` (string, required) ## Response 200 fields (application/json): - `session_id` (string) Unique session identifier. Example: "550e8400-e29b-41d4-a716-446655440000" - `status` (string) Current session status. Enum: "CREATED", "ACTIVE", "FINALIZED", "CANCELLED", "EXPIRED", "FAILED" - `device_id` (string) Device ID handling the session. Example: "660e8400-e29b-41d4-a716-446655440001" - `order_id` (string) Order ID once created. Example: "770e8400-e29b-41d4-a716-446655440002" - `order_amount` (integer) Total order amount in minor units. Example: 2000 - `purchase_currency` (string) Currency code (ISO 4217). Example: "SEK" - `purchase_started_at` (string) Timestamp when the purchase started. Example: "2024-01-15T10:30:00Z" - `purchase_completed_at` (string) Timestamp when the purchase was completed. Example: "2024-01-15T10:35:00Z" - `order_items` (array) List of line items in the order. - `order_items.type` (string) Type of the line item. Enum: "physical", "discount" - `order_items.reference` (string) External reference ID for the item (e.g., SKU). Example: "SKU-12345" - `order_items.name` (string, required) Name or description of the item. Example: "T-Shirt" - `order_items.quantity` (integer) Quantity of the item. Example: 2 - `order_items.unit_price` (integer, required) Unit price in minor units (e.g., cents). Example: 1000 - `order_items.total_amount` (integer, required) Total amount for this line in minor units. Example: 2000 - `order_items.tax_rate` (integer, required) Tax rate in basis points (e.g., 2500 for 25%). Example: 2500 - `order_items.total_discount_amount` (integer) Total discount amount in minor units. Example: 200 - `order_items.total_tax_amount` (integer, required) Total tax amount for this line in minor units. Example: 400 - `merchant_reference1` (string) First merchant reference. Example: "ORDER-12345" - `merchant_reference2` (string) Second merchant reference. Example: "REF-67890" - `order_tax_amount` (integer) Total tax amount in minor units. Example: 400 - `merchant_data` (string) Arbitrary merchant data. Example: {"customer_id":"C123"} - `created_at` (string) Timestamp when the session was created. Example: "2024-01-15T10:30:00Z" - `expires_at` (string) Timestamp when the session expires. Example: "2024-01-15T11:30:00Z" - `updated_at` (string) Timestamp when the session was last updated. Example: "2024-01-15T10:35:00Z" ## Response 401 fields ## Response 404 fields