Richemont.Booster2.PublicApi

<back to all web services

GetTaskDetail

Requires Authentication
The following routes are available for this service:
GET/tasks/{asyncTaskId}Get task detail 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 GetTaskDetailResponse extends 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) { super(init); Object.assign(this, init) }
}
export class GetTaskDetail {
    /** @param {{asyncTaskId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description Async task ID */
    asyncTaskId;
}

JavaScript GetTaskDetail 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.

GET /tasks/{asyncTaskId} HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetTaskDetailResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.NightlyProcess.ServiceModel">
  <asyncTaskId>00000000-0000-0000-0000-000000000000</asyncTaskId>
  <brand>String</brand>
  <downloadUrl>String</downloadUrl>
  <percentage>0</percentage>
  <requestDate>String</requestDate>
  <signedDownloadUrl>String</signedDownloadUrl>
  <status>String</status>
  <totalFailed>0</totalFailed>
  <totalResults>0</totalResults>
  <totalSucceeded>0</totalSucceeded>
  <type>String</type>
</GetTaskDetailResponse>