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
"use strict";
export class Account {
    /** @param {{GasUserId?:string,UserId?:number,UserRoleId?:number[],UserRoleRedirectUrl?:string,UserToken?:string,RetailerGroupId?:string,Modified?:string,Exists?:boolean,DefaultVehicleType?:string,DefaultRetailerGssn?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {?string} */
    GasUserId;
    /** @type {number} */
    UserId;
    /** @type {?number[]} */
    UserRoleId;
    /** @type {?string} */
    UserRoleRedirectUrl;
    /** @type {string} */
    UserToken;
    /** @type {?string} */
    RetailerGroupId;
    /** @type {string} */
    Modified;
    /** @type {boolean} */
    Exists;
    /** @type {?string} */
    DefaultVehicleType;
    /** @type {?string} */
    DefaultRetailerGssn;
}
export class RefreshUserTokenResponse {
    /** @param {{Account?:Account,IsValid?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {Account} */
    Account;
    /** @type {boolean} */
    IsValid;
}
export class RefreshUserTokenRequest {
    constructor(init) { Object.assign(this, init) }
}

JavaScript 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}