ConsumerApi

<back to all web services

VippsLoginCallbackRequest

Consumer
The following routes are available for this service:
GET/vipps/login/callback

export module ConsumerApi
{
    // @ts-nocheck

    export enum VippsAddressType
    {
        Home = 'Home',
        Work = 'Work',
        Other = 'Other',
    }

    export class VippsAddress
    {
        public addressType?: VippsAddressType;
        public country: string;
        public formatted: string;
        public postalCode: string;
        public region: string;
        public streetAddress: string;

        public constructor(init?: Partial<VippsAddress>) { (Object as any).assign(this, init); }
    }

    export class VippsUserInfo
    {
        public address: VippsAddress;
        public birthdate?: string;
        public email?: string;
        public emailVerified?: boolean;
        public familyName: string;
        public givenName: string;
        public name: string;
        public phoneNumber: string;
        public sessionIdentifier: string;
        public subjectIdentifier: string;

        public constructor(init?: Partial<VippsUserInfo>) { (Object as any).assign(this, init); }
    }

}

TypeScript VippsLoginCallbackRequest DTOs

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

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /vipps/login/callback HTTP/1.1 
Host: unstable-consumer-api.brovs.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	vippsUserInfo: 
	{
		address: 
		{
			addressType: Home,
			country: String,
			formatted: String,
			postalCode: String,
			region: String,
			streetAddress: String
		},
		birthdate: 0001-01-01T00:00:00.0000000+00:00,
		email: String,
		emailVerified: False,
		familyName: String,
		givenName: String,
		name: String,
		phoneNumber: String,
		sessionIdentifier: String,
		subjectIdentifier: String
	},
	nextRelativeUrl: String
}