POST
http://appapi.sunhouse.com.vn/api/KTV/SaveWarrantyPartRequest?loginUser={loginUser}

Lưu phiếu tạo mới yêu cầu linh kiện KTV

Yêu cầu

URI Parameters

NameDescriptionTypeAdditional information
loginUser

string

Required

Body Parameters

WarrantyPartTransMaster_ViewModel
NameDescriptionTypeAdditional information
RequestNumber

string

None.

RequestDate

date

None.

strRequestDate

string

None.

disRequestDate

string

None.

MasterNote

string

None.

ordernr

string

None.

RequestStatus

string

None.

strRequestStatus

string

None.

ApprovalBy

string

None.

ApprovalDate

date

None.

strApprovalDate

string

None.

disApprovalDate

string

None.

lstDetails

Collection of WarrantyPartTransDetail_ViewModel

None.

NeedReceiveDate

date

None.

strNeedReceiveDate

string

None.

disNeedReceiveDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RequestNumber": "sample string 1",
  "RequestDate": "2024-10-30T19:09:01.8400608+07:00",
  "strRequestDate": "2024-10-30",
  "disRequestDate": "30/10/2024",
  "MasterNote": "sample string 3",
  "ordernr": "sample string 4",
  "RequestStatus": "sample string 5",
  "strRequestStatus": "Chờ duyệt",
  "ApprovalBy": "sample string 6",
  "ApprovalDate": "2024-10-30T19:09:01.8400608+07:00",
  "strApprovalDate": "2024-10-30",
  "disApprovalDate": "30/10/2024",
  "lstDetails": [
    {
      "ItemCode": "sample string 1",
      "magcode": "sample string 2",
      "afldat": "2024-10-30T19:09:01.8400608+07:00",
      "strafldat": "2024-10-30",
      "RequestQuantity": 3,
      "ReceiveQuantity": 4,
      "RequestNote": "sample string 5",
      "ResponseNote": "sample string 6",
      "Id": "sample string 7",
      "ItemName": "sample string 8",
      "ordernr": "sample string 9",
      "StockQuantity": 10.1
    },
    {
      "ItemCode": "sample string 1",
      "magcode": "sample string 2",
      "afldat": "2024-10-30T19:09:01.8400608+07:00",
      "strafldat": "2024-10-30",
      "RequestQuantity": 3,
      "ReceiveQuantity": 4,
      "RequestNote": "sample string 5",
      "ResponseNote": "sample string 6",
      "Id": "sample string 7",
      "ItemName": "sample string 8",
      "ordernr": "sample string 9",
      "StockQuantity": 10.1
    }
  ],
  "NeedReceiveDate": "2024-10-30T19:09:01.8400608+07:00",
  "strNeedReceiveDate": "2024-10-30",
  "disNeedReceiveDate": "30/10/2024"
}

application/xml, text/xml

Sample:
<WarrantyPartTransMaster_ViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SH.KTVBH.Models">
  <ApprovalBy>sample string 6</ApprovalBy>
  <ApprovalDate>2024-10-30T19:09:01.8400608+07:00</ApprovalDate>
  <MasterNote>sample string 3</MasterNote>
  <NeedReceiveDate>2024-10-30T19:09:01.8400608+07:00</NeedReceiveDate>
  <RequestDate>2024-10-30T19:09:01.8400608+07:00</RequestDate>
  <RequestNumber>sample string 1</RequestNumber>
  <RequestStatus>sample string 5</RequestStatus>
  <lstDetails>
    <WarrantyPartTransDetail_ViewModel>
      <Id>sample string 7</Id>
      <ItemCode>sample string 1</ItemCode>
      <ItemName>sample string 8</ItemName>
      <ReceiveQuantity>4</ReceiveQuantity>
      <RequestNote>sample string 5</RequestNote>
      <RequestQuantity>3</RequestQuantity>
      <ResponseNote>sample string 6</ResponseNote>
      <StockQuantity>10.1</StockQuantity>
      <afldat>2024-10-30T19:09:01.8400608+07:00</afldat>
      <magcode>sample string 2</magcode>
      <ordernr>sample string 9</ordernr>
    </WarrantyPartTransDetail_ViewModel>
    <WarrantyPartTransDetail_ViewModel>
      <Id>sample string 7</Id>
      <ItemCode>sample string 1</ItemCode>
      <ItemName>sample string 8</ItemName>
      <ReceiveQuantity>4</ReceiveQuantity>
      <RequestNote>sample string 5</RequestNote>
      <RequestQuantity>3</RequestQuantity>
      <ResponseNote>sample string 6</ResponseNote>
      <StockQuantity>10.1</StockQuantity>
      <afldat>2024-10-30T19:09:01.8400608+07:00</afldat>
      <magcode>sample string 2</magcode>
      <ordernr>sample string 9</ordernr>
    </WarrantyPartTransDetail_ViewModel>
  </lstDetails>
  <ordernr>sample string 4</ordernr>
</WarrantyPartTransMaster_ViewModel>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.