POST | /v1/User/RefreshToken | Refresh user token before timeout |
---|
export class Account
{
public GasUserId?: string;
public UserId: number;
public UserRoleId?: number[];
public UserRoleRedirectUrl?: string;
public UserToken: string;
public RetailerGroupId?: string;
public Modified: string;
public Exists: boolean;
public DefaultVehicleType?: string;
public DefaultRetailerGssn?: string;
public constructor(init?: Partial<Account>) { (Object as any).assign(this, init); }
}
export class RefreshUserTokenResponse
{
public Account: Account;
public IsValid: boolean;
public constructor(init?: Partial<RefreshUserTokenResponse>) { (Object as any).assign(this, init); }
}
export class RefreshUserTokenRequest implements IPost
{
public constructor(init?: Partial<RefreshUserTokenRequest>) { (Object as any).assign(this, init); }
}
TypeScript RefreshUserTokenRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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}