Richemont.Booster2.PublicApi

<back to all web services

AcceptDelivery

Requires Authentication
The following routes are available for this service:
POST/stock/{brand}/acceptDeliveryManual Order Reception
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Richemont.Booster2.PublicApi.Stock.ServiceModel;

namespace Richemont.Booster2.PublicApi.Stock.ServiceModel
{
    public partial class AcceptDelivery
    {
        public AcceptDelivery()
        {
            deliveryNotes = new List<AcceptDeliveryNoteItem>{};
        }

        ///<summary>
        ///Brand
        ///</summary>
        [ApiMember(Description="Brand", IsRequired=true)]
        public virtual string brand { get; set; }

        ///<summary>
        ///Pos Legacy Code with Legacy System ID, e.g. ES123:123456
        ///</summary>
        [ApiMember(Description="Pos Legacy Code with Legacy System ID, e.g. ES123:123456", IsRequired=true)]
        public virtual string posCode { get; set; }

        ///<summary>
        ///Received deliveries
        ///</summary>
        [ApiMember(Description="Received deliveries", IsRequired=true)]
        public virtual List<AcceptDeliveryNoteItem> deliveryNotes { get; set; }
    }

    public partial class AcceptDeliveryNoteItem
    {
        public AcceptDeliveryNoteItem()
        {
            serialNumbers = new List<string>{};
        }

        ///<summary>
        ///Delivery Notes Number, e.g. 7040123456
        ///</summary>
        [ApiMember(Description="Delivery Notes Number, e.g. 7040123456", IsRequired=true)]
        public virtual long deliveryNotesNumber { get; set; }

        ///<summary>
        ///Delivery Notes Date, e.g. 2022-10-10
        ///</summary>
        [ApiMember(Description="Delivery Notes Date, e.g. 2022-10-10", IsRequired=true)]
        public virtual DateTime deliveryNotesDate { get; set; }

        ///<summary>
        ///Delivery Notes Line Number (DeliveryNotesNoSplit), e.g. 10
        ///</summary>
        [ApiMember(Description="Delivery Notes Line Number (DeliveryNotesNoSplit), e.g. 10", IsRequired=true)]
        public virtual int deliveryNotesLineNumber { get; set; }

        ///<summary>
        ///ReceivedQuantity, e.g. 2
        ///</summary>
        [ApiMember(Description="ReceivedQuantity, e.g. 2", IsRequired=true)]
        public virtual int receivedQuantity { get; set; }

        ///<summary>
        ///Serial Numbers, e.g. '6361234', '6361235'
        ///</summary>
        [ApiMember(Description="Serial Numbers, e.g. '6361234', '6361235'")]
        public virtual List<string> serialNumbers { get; set; }
    }

    public partial class AcceptDeliveryResponse
    {
    }

}

C# AcceptDelivery DTOs

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

HTTP + OTHER

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

POST /stock/{brand}/acceptDelivery HTTP/1.1 
Host: dev-api-booster.richemont.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"brand":"String","posCode":"String","deliveryNotes":[{"deliveryNotesNumber":0,"deliveryNotesDate":"\/Date(-62135596800000-0000)\/","deliveryNotesLineNumber":0,"receivedQuantity":0,"serialNumbers":["String"]}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}