# Payment Session Details To check that the payment session has been concluded successfully and the purchase has been financed, the partner needs to check the details of the payment session and credit contract. Information about the payment session can be retrieved using the GET /partner/v2/shops/:shop_uuid/pos_sessions/:session_uuid request. The response includes the credit_contract_uuid parameter which will then be used to check the status of the credit contract. 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. E.g. 5e3a459a-aada-4d81-b6ad-09cb9483c8bf - `product_code` (string) E.g. loan - `total_amount` (number) E.g. 9000 - `currency` (string) E.g. EUR - `status` (string) Credit contract status. E.g. pending - `salesperson_reference` (string) Example: "E.g. `REF120`" - `locale` (string) Example: "E.g. `et-ET`" - `user_ip` (string) E.g. 192.128.00.01 - `partner_urls` (object) Partnern urls. - `partner_urls.return_url` (string) E.g. "https://campaign.inbank.ee/tmp/post.php?type=return - `partner_urls.cancel_url` (string) E.g. https://campaign.inbank.ee/tmp/post.php?type=cancel - `partner_urls.callback_url` (string) E.g. https://campaign.inbank.ee/tmp/post.php?type=callback - `customer_data` (object) Data used to pre-fill credit application fields regarding the customer. - `customer_data.identity_code` (string) E.g 37811120001 - `customer_data.first_name` (string) E.g. John - `customer_data.last_name` (string) E.g. Smith - `customer_data.gender` (string) Enum: "f", "m" - `customer_contact_data` (object) Data used to pre-fill credit application fields regarding customer contact information. - `customer_contact_data.email` (string) E.g. john.smith@session.pos - `customer_contact_data.mobile` (string) E.g. 51231412 - `customer_contact_data.phone` (string) E.g. 6123123 - `customer_address_data` (object) Data used to pre-fill credit application fields regarding customer address. - `customer_address_data.type` (string) E.g. legal - `customer_address_data.street` (string) E.g. NIINE - `customer_address_data.country` (string) Enum: "EE", "LV", "LT", "RU", "FI", "SE", "NO", "PL", "CZ", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "ET", "FK", "FO", "FJ", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LB", "LS", "LR", "LY", "LI", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PT", "PR", "QA", "RE", "RO", "RW", "SH", "KN", "LC", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW" - `customer_address_data.county` (string) E.g. HARJU MAAKOND - `customer_address_data.city` (string) E.g. TALLINN - `customer_address_data.zip_code` (string) E.g. 10414 - `customer_address_data.house` (string) E.g. 11 - `customer_address_data.township` (string) E.g. HARJU - `credit_application_data` (object) Credit application related attributes that a merchant can pass, and Inbank can use to pre-fill applications in e-POS. - `credit_application_data.number` (number) E.g. 8000000123 - `credit_application_data.salesperson_reference` (string) E.g. SP_REF_001 - `integration_info` (object) Information about the technical environment of the partner side integration. - `integration_info.ecom_platform` (string) E.g. magento - `integration_info.module` (string) E.g. inbank-2.1.0 - `integration_info.extra_key_3` (string) E.g. #3 - `additional_data` (string) E.g. key1 - `purchase` (object) - `purchase.purchase_reference` (string) E.g. ORDER_000001 - `purchase.description` (string) E.g. Description of ORDER_000001 order - `purchase.additional_details` (object) - `purchase.additional_details.description` (string) E.g. Purchase additional details - `purchase.items` (object) - `purchase.items.item_reference` (string) E.g. 000001 - `purchase.items.type` (string) E.g. vehicle - `purchase.items.description` (string) E.g. audi A6 - `purchase.items.quantity` (string) E.g. 8 - `purchase.items.amount` (string) E.g. 4800 - `purchase.items.serial_number` (string) E.g. SN_000001 - `purchase.items.url` (string) E.g. https://en.wikipedia.org/wiki/Audi_A6 - `purchase.items.image_url` (string) E.g. https://en.wikipedia.org/wiki/Audi_A6#/media/File:2007_Audi_A6_(4F)_allroad_quattro_3.0_TDI_station_wagon_02.jpg - `purchase.created_at` (string) E.g. 2020-03-04T12:46:06+01:00 - `valid_until` (string) E.g. 2020-03-11T12:46:06+01:00 - `credit_application_uuid` (string) E.g. 471e6282-3384-412b-af7b-646eb8f04391 - `credit_contract_uuid` (string) E.g. 788ec8c4-c497-470b-8505-2303f151d427 ## 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 Example: "not_found" ## Response 500 fields (application/json): - `message` (string) Internal server error Example: "internal_server_error"