| POST | /v1/User/RefreshToken | Refresh user token before timeout |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Account | form | Account | No | |
| IsValid | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GasUserId | form | string | No | |
| UserId | form | int | No | |
| UserRoleId | form | List<int> | No | |
| UserRoleRedirectUrl | form | string | No | |
| UserToken | form | Guid | No | |
| RetailerGroupId | form | string | No | |
| Modified | form | DateTime | No | |
| Exists | form | bool | No | |
| DefaultVehicleType | form | string | No | |
| DefaultRetailerGssn | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Account:
{
GasUserId: String,
UserId: 0,
UserRoleId:
[
0
],
UserRoleRedirectUrl: String,
UserToken: 00000000000000000000000000000000,
RetailerGroupId: String,
Modified: 0001-01-01,
Exists: False,
DefaultVehicleType: String,
DefaultRetailerGssn: String
},
IsValid: False
}