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
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class RefreshUserTokenRequest implements IPost
    {
        
    }

    public static class RefreshUserTokenResponse
    {
        public Account Account = null;
        public Boolean IsValid = null;
        
        public Account getAccount() { return Account; }
        public RefreshUserTokenResponse setAccount(Account value) { this.Account = value; return this; }
        public Boolean getIsValid() { return IsValid; }
        public RefreshUserTokenResponse setIsValid(Boolean value) { this.IsValid = value; return this; }
    }

    public static class Account
    {
        public String GasUserId = null;
        public Integer UserId = null;
        public ArrayList<Integer> UserRoleId = null;
        public String UserRoleRedirectUrl = null;
        public UUID UserToken = null;
        public String RetailerGroupId = null;
        public Date Modified = null;
        public Boolean Exists = null;
        public String DefaultVehicleType = null;
        public String DefaultRetailerGssn = null;
        
        public String getGasUserId() { return GasUserId; }
        public Account setGasUserId(String value) { this.GasUserId = value; return this; }
        public Integer getUserId() { return UserId; }
        public Account setUserId(Integer value) { this.UserId = value; return this; }
        public ArrayList<Integer> getUserRoleId() { return UserRoleId; }
        public Account setUserRoleId(ArrayList<Integer> value) { this.UserRoleId = value; return this; }
        public String getUserRoleRedirectUrl() { return UserRoleRedirectUrl; }
        public Account setUserRoleRedirectUrl(String value) { this.UserRoleRedirectUrl = value; return this; }
        public UUID getUserToken() { return UserToken; }
        public Account setUserToken(UUID value) { this.UserToken = value; return this; }
        public String getRetailerGroupId() { return RetailerGroupId; }
        public Account setRetailerGroupId(String value) { this.RetailerGroupId = value; return this; }
        public Date getModified() { return Modified; }
        public Account setModified(Date value) { this.Modified = value; return this; }
        public Boolean isExists() { return Exists; }
        public Account setExists(Boolean value) { this.Exists = value; return this; }
        public String getDefaultVehicleType() { return DefaultVehicleType; }
        public Account setDefaultVehicleType(String value) { this.DefaultVehicleType = value; return this; }
        public String getDefaultRetailerGssn() { return DefaultRetailerGssn; }
        public Account setDefaultRetailerGssn(String value) { this.DefaultRetailerGssn = value; return this; }
    }

}

Java RefreshUserTokenRequest DTOs

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

HTTP + CSV

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/csv
Content-Type: text/csv
Content-Length: length

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