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
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Mercedes.Auth.API.ServiceModel.UserSession;
using Mercedes.Auth.API.Shared.POCO;

namespace Mercedes.Auth.API.ServiceModel.UserSession
{
    public partial class RefreshUserTokenRequest
        : IPost
    {
    }

    public partial class RefreshUserTokenResponse
    {
        public virtual Account Account { get; set; }
        public virtual bool IsValid { get; set; }
    }

}

namespace Mercedes.Auth.API.Shared.POCO
{
    public partial class Account
    {
        public virtual string GasUserId { get; set; }
        public virtual int UserId { get; set; }
        public virtual List<int> UserRoleId { get; set; }
        public virtual string UserRoleRedirectUrl { get; set; }
        public virtual Guid UserToken { get; set; }
        public virtual string RetailerGroupId { get; set; }
        public virtual DateTime Modified { get; set; }
        public virtual bool Exists { get; set; }
        public virtual string DefaultVehicleType { get; set; }
        public virtual string DefaultRetailerGssn { get; set; }
    }

}

C# RefreshUserTokenRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: application/json
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}