Operation 2: Update Session
PUT https://{{domain}}/api/rest/version/{{collectionVersion}}/merchant/{{merchantId}}/session/{{tokenSessionId}}
Request Body
{"correlationId"=>"test adding correlationId", "transaction"=>{"amount"=>500.0, "reference"=>"{{transactionIdforToken}}", "id"=>"{{transactionIdforToken}}"}, "customer"=>{"dateOfBirth"=>"1980-10-10", "firstName"=>"TEST", "lastName"=>"TEST", "mobilePhone"=>" +1 607 1234 5678", "phone"=>" +1 607 1234 5678", "nationalId"=>"TESTNATIONALId", "taxRegistrationId"=>"TESTtaxRegId", "account"=>{"authentication"=>{"cardAssociation"=>{"action"=>"AUTHENTICATION"}, "data"=>"dkalslsks", "method"=>"ISSUER_ACCOUNT_LOGIN", "time"=>"2022-08-01T15:45:55.080Z"}, "history"=>{"addCardAttempts"=>99, "annualActivity"=>999, "creationDate"=>"2022-09-01", "lastUpdated"=>"2022-10-01", "passwordLastChanged"=>"2022-10-01", "recentActivity"=>99, "shippingAddressDate"=>"2022-10-01", "suspiciousActivity"=>false}}}, "billing"=>{"address"=>{"city"=>"Tampa", "company"=>"ARC", "country"=>"USA", "postcodeZip"=>"11124", "stateProvinceCode"=>"FL", "street"=>"123 test street", "street2"=>"323 qe drive"}}, "order"=>{"id"=>"{{orderIdForToken}}", "reference"=>"{{orderIdForToken}}", "currency"=>"USD", "amount"=>144.0}, "sourceOfFunds"=>{"type"=>"CARD", "provided"=>{"card"=>{"number"=>"5123456789012346", "expiry"=>{"month"=>"01", "year"=>"39"}, "securityCode"=>"100"}}}, "airline"=>{"bookingReference"=>"MC12D8", "itinerary"=>{"leg"=>[{"carrierCode"=>"MA", "departureAirport"=>"STL", "departureDate"=>"2019-06-07", "destinationAirport"=>"ORD"}, {"carrierCode"=>"MA", "departureAirport"=>"ORD", "departureDate"=>"2019-06-09", "destinationAirport"=>"STL"}], "numberInParty"=>"2"}, "passenger"=>[{"firstName"=>"JOHN", "lastName"=>"SMITH"}, {"firstName"=>"JANE", "lastName"=>"SMITH"}]}}
RESPONSES
status: OK
{"airline":{"bookingReference":"MC12D8","itinerary":{"leg":[{"carrierCode":"MA","departureAirport":"STL","departureDate":"2019-06-07","destinationAirport":"ORD"},{"carrierCode":"MA","departureAirport":"ORD","departureDate":"2019-06-09","destinationAirport":"STL"}],"numberInParty":"2"},"passenger":[{"firstName":"JOHN","lastName":"SMITH"},{"firstName":"JANE","lastName":"SMITH"}]},"billing":{"address":{"city":"Tampa","company":"ARC","country":"USA","postcodeZip":"11124","stateProvinceCode":"FL","street":"123 test street","street2":"323 qe drive"}},"correlationId":"test adding correlationId","customer":{"account":{"authentication":{"cardAssociation":{"action":"AUTHENTICATION"},"data":"dkalslsks","method":"ISSUER_ACCOUNT_LOGIN","time":"2022-08-01T15:45:55.080Z"},"history":{"addCardAttempts":"99","annualActivity":"999","creationDate":"2022-09-01","lastUpdated":"2022-10-01","passwordLastChanged":"2022-10-01","recentActivity":"99","shippingAddressDate":"2022-10-01","suspiciousActivity":"false"}},"dateOfBirth":"1980-10-10","firstName":"TEST","lastName":"TEST","mobilePhone":" +1 607 1234 5678","nationalId":"TESTNATIONALId","phone":" +1 607 1234 5678","taxRegistrationId":"TESTtaxRegId"},"merchant":"merchantId","order":{"amount":"144.00","currency":"USD","id":"51bd1ce1-163e-49c1-a6ac-9e89d3874e62","reference":"51bd1ce1-163e-49c1-a6ac-9e89d3874e62"},"session":{"id":"SESSION0002809872868M7037428G45","updateStatus":"SUCCESS","version":"3d87705502"},"sourceOfFunds":{"provided":{"card":{"brand":"MASTERCARD","expiry":{"month":"1","year":"39"},"fundingMethod":"CREDIT","number":"512345xxxxxx2346","scheme":"MASTERCARD","securityCode":"xxx"}},"type":"CARD"},"transaction":{"amount":"500.00","id":"322dd3f5-feda-4939-9b62-10224644084b","reference":"322dd3f5-feda-4939-9b62-10224644084b"},"version":"70"}