Mercedes.Agency.Orchestration.API

<back to all web services

OrderResolveAuditByGuidRequest

Order
Requires Authentication
The following routes are available for this service:
GET/v1/order/resolve/{OrderGuid}/auditGet mismatched order audits for given order
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.OrderResolve;
using Mercedes.Agency.API.Shared.POCO.OrderResolve;
using Mercedes.Agency.API.Shared.POCO;

namespace Mercedes.Agency.API.Shared.POCO
{
    public partial class DisplayOrderResolveAudit
    {
        public virtual int Id { get; set; }
        public virtual string Action { get; set; }
        public virtual DateTime Created { get; set; }
        public virtual Guid Guid { get; set; }
        public virtual string Reference { get; set; }
        public virtual string User { get; set; }
    }

}

namespace Mercedes.Agency.API.Shared.POCO.OrderResolve
{
    public partial class OrderResolveAuditResponse
    {
        public virtual List<DisplayOrderResolveAudit> Audits { get; set; } = [];
    }

}

namespace Mercedes.Agency.Orchestration.API.ServiceModel.OrderResolve
{
    public partial class BaseOrderResolveRequest
    {
        public virtual string OrderGuid { get; set; }
    }

    public partial class OrderResolveAuditByGuidRequest
        : BaseOrderResolveRequest
    {
    }

}

C# OrderResolveAuditByGuidRequest 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.

GET /v1/order/resolve/{OrderGuid}/audit HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Audits":[{"Id":0,"Action":"String","Created":"\/Date(-62135596800000-0000)\/","Guid":"00000000000000000000000000000000","Reference":"String","User":"String"}]}