| POST, OPTIONS | /v1/OrderLinesToMulti |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CRM.AgencyPlatform.API.Internal;
namespace CRM.AgencyPlatform.API.Internal
{
public partial class OrderLine
{
public virtual int ID { get; set; }
public virtual Guid OrderHeaderID { get; set; }
public virtual short OrderLineNumber { get; set; }
public virtual short ProductID { get; set; }
public virtual string StripeProductId { get; set; }
public virtual short ProductCategory { get; set; }
public virtual short ProductSubCategory { get; set; }
public virtual short Quantity { get; set; }
public virtual decimal TotalOrderLineCost { get; set; }
public virtual decimal ProductCost { get; set; }
public virtual decimal PerUnitProductCost { get; set; }
public virtual decimal OrderLineTax { get; set; }
public virtual decimal OrderLineShippingCost { get; set; }
public virtual decimal PerUnitShippingCost { get; set; }
public virtual byte OrderLineStatusID { get; set; }
public virtual byte ShipMethodID { get; set; }
public virtual DateTime EstimatedShipDate { get; set; }
public virtual DateTime EstimatedDeliveryDate { get; set; }
public virtual DateTime ActualShipDate { get; set; }
public virtual DateTime ActualDeliveryDate { get; set; }
public virtual DateTime OrderLineCreatedDate { get; set; }
public virtual DateTime OrderLineModifiedDate { get; set; }
public virtual Guid UID { get; set; }
public virtual string ProductName { get; set; }
public virtual int AgentId { get; set; }
public virtual string Street { get; set; }
public virtual string City { get; set; }
public virtual string State { get; set; }
public virtual string Zip { get; set; }
public virtual string PhoneNumber { get; set; }
public virtual int AddressId { get; set; }
public virtual string ShippingAddress { get; set; }
public virtual string FullName { get; set; }
}
public partial class OrderLinesResponse
{
public virtual ResponseStatus ResponseStatus { get; set; }
public virtual List<OrderLine> OrderLines { get; set; } = [];
}
public partial class OrderLinesToMultiRequest
{
public virtual Guid OrderHeaderUID { get; set; }
public virtual List<OrderLine> OrderLines { get; set; } = [];
}
}
C# OrderLinesToMultiRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/OrderLinesToMulti HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"OrderHeaderUID":"00000000000000000000000000000000","OrderLines":[{"ID":0,"OrderHeaderID":"00000000000000000000000000000000","OrderLineNumber":0,"ProductID":0,"StripeProductId":"String","ProductCategory":0,"ProductSubCategory":0,"Quantity":0,"TotalOrderLineCost":0,"ProductCost":0,"PerUnitProductCost":0,"OrderLineTax":0,"OrderLineShippingCost":0,"PerUnitShippingCost":0,"OrderLineStatusID":0,"ShipMethodID":0,"EstimatedShipDate":"0001-01-01T00:00:00.0000000","EstimatedDeliveryDate":"0001-01-01T00:00:00.0000000","ActualShipDate":"0001-01-01T00:00:00.0000000","ActualDeliveryDate":"0001-01-01T00:00:00.0000000","OrderLineCreatedDate":"0001-01-01T00:00:00.0000000","OrderLineModifiedDate":"0001-01-01T00:00:00.0000000","UID":"00000000000000000000000000000000","ProductName":"String","AgentId":0,"Street":"String","City":"String","State":"String","Zip":"String","PhoneNumber":"String","AddressId":0,"ShippingAddress":"String","FullName":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"OrderLines":[{"ID":0,"OrderHeaderID":"00000000000000000000000000000000","OrderLineNumber":0,"ProductID":0,"StripeProductId":"String","ProductCategory":0,"ProductSubCategory":0,"Quantity":0,"TotalOrderLineCost":0,"ProductCost":0,"PerUnitProductCost":0,"OrderLineTax":0,"OrderLineShippingCost":0,"PerUnitShippingCost":0,"OrderLineStatusID":0,"ShipMethodID":0,"EstimatedShipDate":"0001-01-01T00:00:00.0000000","EstimatedDeliveryDate":"0001-01-01T00:00:00.0000000","ActualShipDate":"0001-01-01T00:00:00.0000000","ActualDeliveryDate":"0001-01-01T00:00:00.0000000","OrderLineCreatedDate":"0001-01-01T00:00:00.0000000","OrderLineModifiedDate":"0001-01-01T00:00:00.0000000","UID":"00000000000000000000000000000000","ProductName":"String","AgentId":0,"Street":"String","City":"String","State":"String","Zip":"String","PhoneNumber":"String","AddressId":0,"ShippingAddress":"String","FullName":"String"}]}