Richemont.Booster2.PublicApi

<back to all web services

GetTask

Requires Authentication
The following routes are available for this service:
GET/tasksGet tasks of authorized user
"use strict";
export class Task {
    /** @param {{asyncTaskId?:string,type?:string,requestDate?:string,status?:string,percentage?:number,brand?:string,downloadUrl?:string,signedDownloadUrl?:string,totalResults?:number,totalSucceeded?:number,totalFailed?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Async task ID */
    asyncTaskId;
    /**
     * @type {string}
     * @description Type of requested async task, e.g 'stock', 'sellout', 'crm' */
    type;
    /**
     * @type {string}
     * @description Async task creation date */
    requestDate;
    /**
     * @type {string}
     * @description Status of requested async task, e.g 'REQ', 'INP', 'COM', 'ERR' */
    status;
    /**
     * @type {number}
     * @description Percentage of completion */
    percentage;
    /**
     * @type {string}
     * @description Brand Trigram */
    brand;
    /**
     * @type {string}
     * @description Download url of created files */
    downloadUrl;
    /**
     * @type {string}
     * @description Presigned expiring download url */
    signedDownloadUrl;
    /**
     * @type {?number}
     * @description Total count of operations */
    totalResults;
    /**
     * @type {?number}
     * @description Count of successful operations */
    totalSucceeded;
    /**
     * @type {?number}
     * @description Count of failed operations */
    totalFailed;
}
export class GetTaskResponse extends Array {
    constructor(init) { super(init); Object.assign(this, init) }
}
export class GetTask {
    constructor(init) { Object.assign(this, init) }
}

JavaScript GetTask DTOs

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

HTTP + CSV

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

GET /tasks HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

[]