Mercedes.Auth.API

<back to all web services

RefreshUserTokenRequest

UserSession
Requires Authentication
The following routes are available for this service:
POST/v1/User/RefreshTokenRefresh user token before timeout
namespace Mercedes.Auth.API.ServiceModel.UserSession

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type Account() = 
        member val GasUserId:String = null with get,set
        member val UserId:Int32 = new Int32() with get,set
        member val UserRoleId:ResizeArray<Int32> = null with get,set
        member val UserRoleRedirectUrl:String = null with get,set
        member val UserToken:Guid = new Guid() with get,set
        member val RetailerGroupId:String = null with get,set
        member val Modified:DateTime = new DateTime() with get,set
        member val Exists:Boolean = new Boolean() with get,set
        member val DefaultVehicleType:String = null with get,set
        member val DefaultRetailerGssn:String = null with get,set

    [<AllowNullLiteral>]
    type RefreshUserTokenResponse() = 
        member val Account:Account = null with get,set
        member val IsValid:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type RefreshUserTokenRequest() = 
        interface IPost

F# RefreshUserTokenRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/User/RefreshToken HTTP/1.1 
Host: prod-api-auth-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Account":{"GasUserId":"String","UserId":0,"UserRoleId":[0],"UserRoleRedirectUrl":"String","UserToken":"00000000000000000000000000000000","RetailerGroupId":"String","Modified":"\/Date(-62135596800000-0000)\/","Exists":false,"DefaultVehicleType":"String","DefaultRetailerGssn":"String"},"IsValid":false}