Mercedes.Agency.Orchestration.API

<back to all web services

LinkedBackOrderCommAudit

Requires Authentication
The following routes are available for this service:
POST/v1/BackOrderLinkedCommsGet the audit for back orders linked comms
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Mercedes.Agency.Orchestration.API.ServiceModel.Audits;
using Mercedes.Agency.API.Shared.POCO;
using Mercedes.Agency.Orchestration.API.Clients.AgencyApi.Responses;
using Mercedes.Agency.API.Shared.Enums;

namespace Mercedes.Agency.API.Shared.POCO
{
    public partial class BackOrderLinkedCommsAudit
    {
        public virtual string Guid { get; set; }
        public virtual string BackOrderReference { get; set; }
        public virtual string UserId { get; set; }
        public virtual string Showroom { get; set; }
        public virtual string CommLinked { get; set; }
        public virtual string SalesDescription { get; set; }
        public virtual string Colour { get; set; }
        public virtual string Upholstery { get; set; }
        public virtual bool Sellable { get; set; }
        public virtual string LinkedDate { get; set; }
        public virtual BackOrderStatus Status { get; set; }
    }

    public partial class BackOrderLinkedCommsAuditDateCriteria
    {
        public virtual DateTime? From { get; set; }
        public virtual DateTime? To { get; set; }
    }

}

namespace Mercedes.Agency.Orchestration.API.Clients.AgencyApi.Responses
{
    public partial class LinkedBackOrderCommAuditResponse
    {
        public virtual List<BackOrderLinkedCommsAudit> Audits { get; set; } = [];
    }

}

namespace Mercedes.Agency.Orchestration.API.ServiceModel.Audits
{
    public partial class LinkedBackOrderCommAudit
    {
        public virtual List<string> GssnIds { get; set; }
        public virtual BackOrderLinkedCommsAuditDateCriteria DateCriteria { get; set; }
    }

}

C# LinkedBackOrderCommAudit DTOs

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

HTTP + JSV

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

POST /v1/BackOrderLinkedComms HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	GssnIds: 
	[
		String
	],
	DateCriteria: 
	{
		From: 0001-01-01,
		To: 0001-01-01
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Audits: 
	[
		{
			Guid: String,
			BackOrderReference: String,
			UserId: String,
			Showroom: String,
			CommLinked: String,
			SalesDescription: String,
			Colour: String,
			Upholstery: String,
			Sellable: False,
			LinkedDate: String,
			Status: Submitted
		}
	]
}