DX STF Client API

<back to all web services

GetPurchaseConditionByType

Purchase Conditions Requests

Purchase Conditions

Requires Authentication
The following routes are available for this service:
GET/api/purchaseCondition/type/{Type}Get paged Purchase Condition response by type

/** @description Purchase Conditions */
// @Api(Description="Purchase Conditions")
// @ApiResponse(Description="Paged Purchase Condition response by type", IsDefaultResponse=true, StatusCode=200)
export class GetPurchaseConditionByType
{
    /** @description Not used */
    // @ApiMember(Description="Not used")
    public searchTerm: string;

    /** @description Requested page number, starting at 1 */
    // @ApiMember(Description="Requested page number, starting at 1")
    public requestedPage: number;

    /** @description Number of records to return on a page */
    // @ApiMember(Description="Number of records to return on a page")
    public numberOfRecordsPerPage: number;

    /** @description PurchaseCondition type to be returned */
    // @ApiMember(Description="PurchaseCondition type to be returned", ExcludeInSchema=true, ParameterType="path")
    public type: string;

    public constructor(init?: Partial<GetPurchaseConditionByType>) { (Object as any).assign(this, init); }
}

export class PagedQueryResult<T>
{
    public startIndex: number;
    public endIndex: number;
    public numberOfRecordsReturned: number;
    public totalNumberOfPages: number;
    public totalNumberOfRecords: number;
    public results: ResultItem<ClaimMessage>[] = [];

    public constructor(init?: Partial<PagedQueryResult<T>>) { (Object as any).assign(this, init); }
}

TypeScript GetPurchaseConditionByType 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 /api/purchaseCondition/type/{Type} HTTP/1.1 
Host: stf-api-uat.data-xchange.co.za 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"startIndex":0,"endIndex":0,"numberOfRecordsReturned":0,"totalNumberOfPages":0,"totalNumberOfRecords":0,"results":[{}]}