tvpl.api

<back to all web services

MisaESignCallbackRequest

The following routes are available for this service:
POST/api/misa-esign/callback

export class MisaESignCallbackResponse
{
    public errorCode: string;
    public devMsg?: string;
    public userMsg?: string;

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

export class MisaESignCallbackSignature
{
    public documentId?: string;
    public signature?: string;

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

export class MisaESignCallbackRequest implements IPost
{
    public messageId?: string;
    public clientId?: string;
    public extraData?: Object;
    public status?: string;
    public errorCode?: string;
    public transactionId?: string;
    public signatures?: MisaESignCallbackSignature[];

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

TypeScript MisaESignCallbackRequest 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.

POST /api/misa-esign/callback HTTP/1.1 
Host: qlcn-api.vsmlab.vn 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	messageId: String,
	clientId: String,
	extraData: {},
	status: String,
	errorCode: String,
	transactionId: String,
	signatures: 
	[
		{
			documentId: String,
			signature: String
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	errorCode: String,
	devMsg: String,
	userMsg: String
}