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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<MisaESignCallbackRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
  <ClientId>String</ClientId>
  <ErrorCode>String</ErrorCode>
  <ExtraData />
  <MessageId>String</MessageId>
  <Signatures>
    <MisaESignCallbackSignature>
      <DocumentId>String</DocumentId>
      <Signature>String</Signature>
    </MisaESignCallbackSignature>
  </Signatures>
  <Status>String</Status>
  <TransactionId>String</TransactionId>
</MisaESignCallbackRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<MisaESignCallbackResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
  <DevMsg>String</DevMsg>
  <ErrorCode>String</ErrorCode>
  <UserMsg>String</UserMsg>
</MisaESignCallbackResponse>