BokaMera.API.Host

<back to all web services

ListWebhookEndpointAttempts

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
GET/webhook/endpoints/{EndpointId}/attemptsList webhook endpoint attempts
"use strict";
export class WebhookMessageAttempt {
    /** @param {{Id?:string,MessageId?:string,EndpointId?:string,Url?:string,Status?:string,ResponseStatusCode?:number,Timestamp?:string,TriggerType?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
    /** @type {string} */
    MessageId;
    /** @type {string} */
    EndpointId;
    /** @type {string} */
    Url;
    /** @type {string} */
    Status;
    /** @type {?number} */
    ResponseStatusCode;
    /** @type {string} */
    Timestamp;
    /** @type {string} */
    TriggerType;
}
export class ListMessageAttemptsResponse {
    /** @param {{Attempts?:WebhookMessageAttempt[],Done?:boolean,Iterator?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {WebhookMessageAttempt[]} */
    Attempts = [];
    /** @type {boolean} */
    Done;
    /** @type {?string} */
    Iterator;
}
export class ListWebhookEndpointAttempts {
    /** @param {{CompanyId?:string,EndpointId?:string,Iterator?:string,Limit?:number,Status?:number,EventTypes?:string[],Before?:string,After?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description The company id, if empty will use the company id for the user you are logged in with. */
    CompanyId;
    /**
     * @type {string}
     * @description The ID of the webhook endpoint. */
    EndpointId;
    /**
     * @type {?string}
     * @description Pagination iterator. */
    Iterator;
    /**
     * @type {?number}
     * @description Maximum number of attempts to return. */
    Limit;
    /**
     * @type {?number}
     * @description Filter by message status. 0 = Success, 1 = Pending, 2 = Fail, 3 = Sending. */
    Status;
    /**
     * @type {?string[]}
     * @description Filter by event types. */
    EventTypes;
    /**
     * @type {?string}
     * @description Filter attempts before this date. */
    Before;
    /**
     * @type {?string}
     * @description Filter attempts after this date. */
    After;
}

JavaScript ListWebhookEndpointAttempts 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

HTTP + JSON

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

GET /webhook/endpoints/{EndpointId}/attempts HTTP/1.1 
Host: api.bokamera.se 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Attempts":[{"Id":"String","MessageId":"String","EndpointId":"String","Url":"String","Status":"String","ResponseStatusCode":0,"TriggerType":"String"}],"Done":false,"Iterator":"String"}