POST api/CardWarehouse/InsertCardWithParent

Request Information

URI Parameters

None.

Body Parameters

CardWarehouse
NameDescriptionTypeAdditional information
Id

integer

None.

CardCode

string

None.

ParentId

integer

None.

BkavCardTypeId

integer

None.

DateTimeCreate

date

None.

DateTimeActive

date

None.

DateTimeInstall

date

None.

Value01

string

None.

Value02

string

None.

Value03

string

None.

Status

integer

None.

AgencyId

integer

None.

OrderId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CardCode": "sample string 2",
  "ParentId": 1,
  "BkavCardTypeId": 1,
  "DateTimeCreate": "2025-12-12T07:41:09.6493582+07:00",
  "DateTimeActive": "2025-12-12T07:41:09.6493582+07:00",
  "DateTimeInstall": "2025-12-12T07:41:09.6493582+07:00",
  "Value01": "sample string 3",
  "Value02": "sample string 4",
  "Value03": "sample string 5",
  "Status": 1,
  "AgencyId": 1,
  "OrderId": 1
}

application/xml, text/xml

Sample:
<CardWarehouse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMSApi.Model">
  <AgencyId>1</AgencyId>
  <BkavCardTypeId>1</BkavCardTypeId>
  <CardCode>sample string 2</CardCode>
  <DateTimeActive>2025-12-12T07:41:09.6493582+07:00</DateTimeActive>
  <DateTimeCreate>2025-12-12T07:41:09.6493582+07:00</DateTimeCreate>
  <DateTimeInstall>2025-12-12T07:41:09.6493582+07:00</DateTimeInstall>
  <Id>1</Id>
  <OrderId>1</OrderId>
  <ParentId>1</ParentId>
  <Status>1</Status>
  <Value01>sample string 3</Value01>
  <Value02>sample string 4</Value02>
  <Value03>sample string 5</Value03>
</CardWarehouse>

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 'CardWarehouse'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.