Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

UpdateReturnsItemBatchNumber

Requires Authentication
The following routes are available for this service:
All Verbs/UpdateReturnsItemBatchNumber
"use strict";
export class StockAdditional {
    /** @param {{StockID?:number,Gtin?:string,StockLocation?:string,PhysicalQuantityStockLocation?:number}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    StockID;
    /** @type {string} */
    Gtin;
    /** @type {string} */
    StockLocation;
    /** @type {number} */
    PhysicalQuantityStockLocation;
}
export class Stock {
    /** @param {{StockID?:number,ProductID?:string,ProductAttributeID?:string,Reference?:string,Gtin?:string,GtinAttribute?:string,Label?:string,StockLocation?:string,PhysicalQuantityStockLocation?:number,ReserveStockLocation?:string,PhysicalQuantityReserveStockLocation?:number,NbSKUInPackage?:number,PackageReference?:string,NbSKUInPackage2?:number,PackageReference2?:string,Weight?:string,FillInBatchNumber?:boolean,FillInDate?:boolean,PictureURL?:string,StockAdditionals?:StockAdditional[],SearchKey?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    StockID;
    /** @type {string} */
    ProductID;
    /** @type {string} */
    ProductAttributeID;
    /** @type {string} */
    Reference;
    /** @type {string} */
    Gtin;
    /** @type {string} */
    GtinAttribute;
    /** @type {string} */
    Label;
    /** @type {string} */
    StockLocation;
    /** @type {number} */
    PhysicalQuantityStockLocation;
    /** @type {string} */
    ReserveStockLocation;
    /** @type {number} */
    PhysicalQuantityReserveStockLocation;
    /** @type {?number} */
    NbSKUInPackage;
    /** @type {string} */
    PackageReference;
    /** @type {?number} */
    NbSKUInPackage2;
    /** @type {string} */
    PackageReference2;
    /** @type {string} */
    Weight;
    /** @type {boolean} */
    FillInBatchNumber;
    /** @type {boolean} */
    FillInDate;
    /** @type {string} */
    PictureURL;
    /** @type {StockAdditional[]} */
    StockAdditionals = [];
    /** @type {string} */
    SearchKey;
}
/** @typedef {'EMPTY'|'USED'|'FULL'} */
export var ReturnRackPositionStatus;
(function (ReturnRackPositionStatus) {
    ReturnRackPositionStatus["EMPTY"] = "EMPTY"
    ReturnRackPositionStatus["USED"] = "USED"
    ReturnRackPositionStatus["FULL"] = "FULL"
})(ReturnRackPositionStatus || (ReturnRackPositionStatus = {}));
export class ReturnsDispatchingRackPosition {
    /** @param {{ID?:number,ReturnsDispersionRackID?:number,Name?:string,EAN?:string,BatchNumber?:string,ItemDate?:string,Quantity?:number,Status?:ReturnRackPositionStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ID;
    /** @type {number} */
    ReturnsDispersionRackID;
    /** @type {string} */
    Name;
    /** @type {string} */
    EAN;
    /** @type {string} */
    BatchNumber;
    /** @type {?string} */
    ItemDate;
    /** @type {number} */
    Quantity;
    /** @type {ReturnRackPositionStatus} */
    Status;
}
export class ReturnsResultInfo {
    /** @param {{Result?:string,Error?:string,Stock?:Stock,RackPosition?:ReturnsDispatchingRackPosition,RackID?:number,EAN?:string,BatchNumber?:string,ItemDate?:string,SpecificCaseToBeTreated?:string[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Result;
    /** @type {string} */
    Error;
    /** @type {Stock} */
    Stock;
    /** @type {ReturnsDispatchingRackPosition} */
    RackPosition;
    /** @type {number} */
    RackID;
    /** @type {string} */
    EAN;
    /** @type {string} */
    BatchNumber;
    /** @type {?string} */
    ItemDate;
    /** @type {string[]} */
    SpecificCaseToBeTreated = [];
}
export class UpdateReturnsItemBatchNumber {
    /** @param {{ReturnsResult?:ReturnsResultInfo,BatchNumber?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {ReturnsResultInfo}
     * @description Returns rack id */
    ReturnsResult;
    /**
     * @type {string}
     * @description batch number */
    BatchNumber;
}

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

POST /UpdateReturnsItemBatchNumber HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateReturnsItemBatchNumber xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoToLightAPI">
  <BatchNumber>String</BatchNumber>
  <ReturnsResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/GoToLightAPI.Entities">
    <d2p1:BatchNumber>String</d2p1:BatchNumber>
    <d2p1:EAN>String</d2p1:EAN>
    <d2p1:Error>String</d2p1:Error>
    <d2p1:ItemDate>0001-01-01T00:00:00</d2p1:ItemDate>
    <d2p1:RackID>0</d2p1:RackID>
    <d2p1:RackPosition>
      <d2p1:BatchNumber>String</d2p1:BatchNumber>
      <d2p1:EAN>String</d2p1:EAN>
      <d2p1:ID>0</d2p1:ID>
      <d2p1:ItemDate>0001-01-01T00:00:00</d2p1:ItemDate>
      <d2p1:Name>String</d2p1:Name>
      <d2p1:Quantity>0</d2p1:Quantity>
      <d2p1:ReturnsDispersionRackID>0</d2p1:ReturnsDispersionRackID>
      <d2p1:Status>EMPTY</d2p1:Status>
    </d2p1:RackPosition>
    <d2p1:Result>String</d2p1:Result>
    <d2p1:SpecificCaseToBeTreated xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </d2p1:SpecificCaseToBeTreated>
    <d2p1:Stock>
      <FillInBatchNumber>false</FillInBatchNumber>
      <FillInDate>false</FillInDate>
      <Gtin>String</Gtin>
      <GtinAttribute>String</GtinAttribute>
      <Label>String</Label>
      <NbSKUInPackage>0</NbSKUInPackage>
      <NbSKUInPackage2>0</NbSKUInPackage2>
      <PackageReference>String</PackageReference>
      <PackageReference2>String</PackageReference2>
      <PhysicalQuantityReserveStockLocation>0</PhysicalQuantityReserveStockLocation>
      <PhysicalQuantityStockLocation>0</PhysicalQuantityStockLocation>
      <PictureURL>String</PictureURL>
      <ProductAttributeID>String</ProductAttributeID>
      <ProductID>String</ProductID>
      <Reference>String</Reference>
      <ReserveStockLocation>String</ReserveStockLocation>
      <StockAdditionals>
        <StockAdditional>
          <Gtin>String</Gtin>
          <PhysicalQuantityStockLocation>0</PhysicalQuantityStockLocation>
          <StockID>0</StockID>
          <StockLocation>String</StockLocation>
        </StockAdditional>
      </StockAdditionals>
      <StockID>0</StockID>
      <StockLocation>String</StockLocation>
      <Weight>String</Weight>
    </d2p1:Stock>
  </ReturnsResult>
</UpdateReturnsItemBatchNumber>