| GET,OPTIONS | /portal/{Token} |
|---|
"use strict";
export class PortalLandingResponse {
/** @param {{ResponseStatus?:ResponseStatus,Status?:string,ResourceType?:string,Title?:string,CanView?:boolean,Message?:string,StripePublishableKey?:string,AmountDue?:number,IsPaid?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {string} */
Status;
/** @type {string} */
ResourceType;
/** @type {string} */
Title;
/** @type {boolean} */
CanView;
/** @type {string} */
Message;
/** @type {string} */
StripePublishableKey;
/** @type {number} */
AmountDue;
/** @type {boolean} */
IsPaid;
}
export class PortalLandingRequest {
/** @param {{Token?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Token;
}
JavaScript PortalLandingRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /portal/{Token} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Status":"String","ResourceType":"String","Title":"String","CanView":false,"Message":"String","StripePublishableKey":"String","AmountDue":0,"IsPaid":false}