# Session Details

GET /shops/:shop_uuid/pos_sessions/:pos_session_uuid

When a user is redirected back to e-shop, or when a callback notification is received, the e-shop should make a GET /shops/:shop_uuid/pos_sessions/:pos_session_uuid request to inspect session details.
The response contains the credit_contract_uuid value which is used in the  GET /contracts request to check the status of the contract. If the flow is configured to request merchant approval before credit contract activation, this value is also used in the POST /:contract\_uuid/merchant\_approval or the POST /:contract_uuid/cancel request, to either approve or cancel the credit contract.

It is important to inspect the value of the status. If the status is completed, then from the e-shop order perspective it has been paid, and the goods can be shipped.

Endpoint: GET /partner/v2/shops/{shop_uuid}/pos_sessions/{pos_session_uuid}
Security: bearerAuth

## Path parameters:

  - `shop_uuid` (string, required)
    Example: "a93f1f44-d5dd-4469-bfcc-c1de9e969213"

  - `pos_session_uuid` (string, required)
    Example: "5e3a459a-aada-4d81-b6ad-09cb9483c8bf"

## Response 200 fields (application/json):

  - `uuid` (string)
    Pos session UUID.
    Example: "5e3a459a-aada-4d81-b6ad-09cb9483c8bf"

  - `product_code` (string)
    Product code.
    Example: "product_code_here"

  - `total_amount` (number)
    Total amount paid by customer.
    Example: 300

  - `currency` (string)
    Currency ISO code.
    Example: "EUR"

  - `status` (string)
    Session status.Payment for the e-shop order can be considered successfully completed when the status = completed.For more details, see the [State model](#statemodel) chapter.
    Example: "pending"

  - `salesperson_reference` (string)
    First name and last name of the sales person as it should appear on reports.
    Example: "Earl James"

  - `locale` (string)
    Language - country codes.
    Example: "et-ET"

  - `user_ip` (string)
    A user agent (browser) IP address as seen by ePOS.

  - `partner_urls` (object)

  - `customer_data` (object)
    Customer basic data.

  - `customer_contact_data` (object)
    Customer contact data.

  - `customer_address_data` (object)
    Customer address data.

  - `credit_application_data` (object)
    Credit application data.

  - `integration_info` (object)
    Integration data.

  - `additional_data` (object)
    Additional data.

  - `purchase` (string)

  - `created_at` (string)
    Creation time.

  - `valid_until` (string)
    POS session expiration time.

  - `show_expiration_counter` (string)
    Indicates if pos session session expiration counter should be shown.

  - `credit_application_uuid` (string)
    Identifier of the credit application in Inbank systems.This parameter appears in the response once the customer has submitted the application during dialogs.Example b1904cd8-f5b0-4610-b87c-97a512d6125f
    Example: "471e6282-3384-412b-af7b-646eb8f04391"

  - `credit_contract_uuid` (string)
    The unique identifier of the credit contract associated with the session. This identifier is used in the [GET /:contract_uuid/contracts](./api/epos-flow-archived/other/getcontract) request to check the status of the contract or  in the [POST /merchant_approval](./api/epos-flow-archived/other/postmerchantapproval) or the [POST /:contract_uuid/cancel](./api/epos-flow-archived/other/cancelcontract) request, to either approve or cancel the credit contract.
    Example: "788ec8c4-c497-470b-8505-2303f151d427"

  - `credit_purchase_uuid` (string)
    Credit purchase UUID.

  - `customer_details` (object)

  - `customer_details.email` (string)
    Customer email.
    Example: "test@test.com"

  - `customer_details.first_name` (string)
    Customer first name.
    Example: "Test"

  - `customer_details.last_name` (string)
    Customer last name.
    Example: "Test"

  - `customer_uuid` (string)
    Customer UUID.
    Example: "fac6e447-aa40-48ec-a65d-a4acb24eceb6"

  - `shop_public_name` (string)
    Shop public name.
    Example: "Test Shop"

## Response 401 fields (application/json):

  - `message` (string)
    Unauthorized
    Example: "unauthorized"

## Response 403 fields (application/json):

  - `message` (string)
    Unauthorized access
    Example: "User is not authorized to access this resource with an explicit deny"

## Response 404 fields (application/json):

  - `message` (string)
    Not found

## Response 500 fields (application/json):

  - `message` (string)
    Internal server error
    Example: "internal_server_error"


