POST api/Ecatalog/OrderItem/Insert

Request Information

URI Parameters

None.

Body Parameters

Collection of ECatalogOrderItemRequest
NameDescriptionTypeAdditional information
OrderID

string

None.

MemoId

integer

None.

ItemID

integer

None.

OrderTotal

integer

None.

ItemPrice

decimal number

None.

ItemVat

decimal number

None.

ItemBeforVat

decimal number

None.

CreatedBy

string

None.

CreatedDate

date

None.

ModifiedBy

string

None.

ModifiedDate

date

None.

userPrincipalName

string

None.

connectionString

string

None.

SecretId

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "OrderID": "sample string 1",
    "MemoId": 2,
    "ItemID": 3,
    "OrderTotal": 4,
    "ItemPrice": 1.0,
    "ItemVat": 1.0,
    "ItemBeforVat": 1.0,
    "CreatedBy": "sample string 5",
    "CreatedDate": "2025-06-17T22:04:59.4105287+07:00",
    "ModifiedBy": "sample string 7",
    "ModifiedDate": "2025-06-17T22:04:59.4105287+07:00",
    "userPrincipalName": "sample string 9",
    "connectionString": "sample string 10",
    "SecretId": null
  },
  {
    "OrderID": "sample string 1",
    "MemoId": 2,
    "ItemID": 3,
    "OrderTotal": 4,
    "ItemPrice": 1.0,
    "ItemVat": 1.0,
    "ItemBeforVat": 1.0,
    "CreatedBy": "sample string 5",
    "CreatedDate": "2025-06-17T22:04:59.4105287+07:00",
    "ModifiedBy": "sample string 7",
    "ModifiedDate": "2025-06-17T22:04:59.4105287+07:00",
    "userPrincipalName": "sample string 9",
    "connectionString": "sample string 10",
    "SecretId": null
  }
]

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'System.Security.Cryptography.CryptoStream' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.