| POST | /uplift/auth |
|---|
"use strict";
export class ApiServiceRequest {
/** @param {{apiKey?:string,latitude?:number,longitude?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description The API Key required for authentication */
apiKey;
/**
* @type {number}
* @description Latitude of the user making this request */
latitude;
/**
* @type {number}
* @description Longitude of the user making this request */
longitude;
}
export class ApiServiceResponse {
/** @param {{description?:string,heading?:string,wasSuccessful?:boolean,responseStatus?:ResponseStatus}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {string}
* @description Information about the response. */
description;
/**
* @type {string}
* @description Heading or summary of the response. */
heading;
/**
* @type {boolean}
* @description Did the intended operation for this response complete successfully? */
wasSuccessful;
/** @type {ResponseStatus} */
responseStatus;
}
export class UpliftAuthRequestResponse extends ApiServiceResponse {
/** @param {{upliftAuthRequestId?:string,description?:string,heading?:string,wasSuccessful?:boolean,responseStatus?:ResponseStatus}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
upliftAuthRequestId;
}
export class UpliftProductData {
/** @param {{upliftProductId?:number,upliftId?:number,productId?:number,unitPrice?:number,name?:string,category?:string,unitBarcode?:string,unitSize?:string,unitWeight?:number,code?:string,upliftImages?:Object[],quantity?:number,value?:number,priceOverMax?:boolean,quantityOverMax?:boolean,quantityOverRequirement?:boolean,serialNumber?:string,batchCode?:string,stockStatusId?:number,lotNumber?:string,expiryDate?:string,manufactureDate?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
upliftProductId;
/** @type {number} */
upliftId;
/** @type {number} */
productId;
/** @type {number} */
unitPrice;
/** @type {string} */
name;
/** @type {string} */
category;
/** @type {string} */
unitBarcode;
/** @type {string} */
unitSize;
/** @type {number} */
unitWeight;
/** @type {string} */
code;
/** @type {Object[]} */
upliftImages;
/** @type {number} */
quantity;
/** @type {number} */
value;
/** @type {boolean} */
priceOverMax;
/** @type {boolean} */
quantityOverMax;
/** @type {boolean} */
quantityOverRequirement;
/** @type {string} */
serialNumber;
/** @type {string} */
batchCode;
/** @type {number} */
stockStatusId;
/** @type {string} */
lotNumber;
/** @type {string} */
expiryDate;
/** @type {string} */
manufactureDate;
}
export class UpliftSealData {
/** @param {{unbagged?:boolean,sealNumber?:string,antelSealNumber?:string,products?:UpliftProductData[],totalPrice?:number,totalQuantity?:number,netWeight?:number,grossWeight?:number,billableSeal?:boolean,invalidAntelSealNumber?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
unbagged;
/** @type {string} */
sealNumber;
/** @type {string} */
antelSealNumber;
/** @type {UpliftProductData[]} */
products;
/** @type {number} */
totalPrice;
/** @type {number} */
totalQuantity;
/** @type {number} */
netWeight;
/** @type {number} */
grossWeight;
/** @type {boolean} */
billableSeal;
/** @type {boolean} */
invalidAntelSealNumber;
}
export class UpliftAuthRequest extends ApiServiceRequest {
/** @param {{upliftSchedulePrincipleId?:number,totalValue?:number,totalUnits?:number,region?:string,channel?:string,seals?:UpliftSealData[],unbaggedItems?:UpliftSealData,apiKey?:string,latitude?:number,longitude?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
upliftSchedulePrincipleId;
/** @type {number} */
totalValue;
/** @type {number} */
totalUnits;
/** @type {string} */
region;
/** @type {string} */
channel;
/** @type {UpliftSealData[]} */
seals;
/** @type {UpliftSealData} */
unbaggedItems;
}
JavaScript UpliftAuthRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /uplift/auth HTTP/1.1
Host: antel.api.dev.86degrees.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"upliftSchedulePrincipleId":0,"totalValue":0,"totalUnits":0,"region":"String","channel":"String","seals":[{"unbagged":false,"sealNumber":"String","antelSealNumber":"String","products":[{"upliftProductId":0,"upliftId":0,"productId":0,"unitPrice":0,"name":"String","category":"String","unitBarcode":"String","unitSize":"String","unitWeight":0,"code":"String","upliftImages":[{}],"quantity":0,"value":0,"priceOverMax":false,"quantityOverMax":false,"quantityOverRequirement":false,"serialNumber":"String","batchCode":"String","stockStatusId":0,"lotNumber":"String","expiryDate":"String","manufactureDate":"String"}],"totalPrice":0,"totalQuantity":0,"netWeight":0,"grossWeight":0,"billableSeal":false,"invalidAntelSealNumber":false}],"unbaggedItems":{"unbagged":false,"sealNumber":"String","antelSealNumber":"String","products":[{"upliftProductId":0,"upliftId":0,"productId":0,"unitPrice":0,"name":"String","category":"String","unitBarcode":"String","unitSize":"String","unitWeight":0,"code":"String","upliftImages":[{}],"quantity":0,"value":0,"priceOverMax":false,"quantityOverMax":false,"quantityOverRequirement":false,"serialNumber":"String","batchCode":"String","stockStatusId":0,"lotNumber":"String","expiryDate":"String","manufactureDate":"String"}],"totalPrice":0,"totalQuantity":0,"netWeight":0,"grossWeight":0,"billableSeal":false,"invalidAntelSealNumber":false},"apiKey":"String","latitude":0,"longitude":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"description":"String","heading":"String","wasSuccessful":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}