POST api/CreatePurchased

Request Information

URI Parameters

None.

Body Parameters

PurchasedRequest
NameDescriptionTypeAdditional information
SMBcode

string

Required

SCAplan

integer

Required

SCAaddMod

string

None.

SCAnoUser

integer

Required

SCAnoCom

integer

Required

SCAnoBrch

integer

Required

SCAdevItem

string

None.

SCAextraItem

string

None.

SCAcycleDate

date

Required

SCAlang1

integer

Required

SCAlang2

integer

Required

SCAlang3

integer

None.

SCAbizType

integer

Required

SCAccyid

integer

Required

SCAbrhAF

integer

Required

SRCtaxID

string

Required

String length: inclusive between 0 and 20

SRCcpName1

string

Required

String length: inclusive between 0 and 100

SRCaddress1

string

None.

SRCdistrict

string

String length: inclusive between 0 and 30

SRCprovince

string

String length: inclusive between 0 and 30

SRCcountry

string

String length: inclusive between 0 and 30

SRCpostcode

string

String length: inclusive between 0 and 10

STH

STH

None.

Request Formats

application/json, text/json

Sample:
{
  "SMBcode": "sample string 1",
  "SCAplan": 2,
  "SCAaddMod": "sample string 3",
  "SCAnoUser": 4,
  "SCAnoCom": 5,
  "SCAnoBrch": 6,
  "SCAdevItem": "sample string 7",
  "SCAextraItem": "sample string 8",
  "SCAcycleDate": "2024-11-29T01:52:51.508793+07:00",
  "SCAlang1": 10,
  "SCAlang2": 11,
  "SCAlang3": 12,
  "SCAbizType": 13,
  "SCAccyid": 14,
  "SCAbrhAF": 15,
  "SRCtaxID": "sample string 16",
  "SRCcpName1": "sample string 17",
  "SRCaddress1": "sample string 18",
  "SRCdistrict": "sample string 19",
  "SRCprovince": "sample string 20",
  "SRCcountry": "sample string 21",
  "SRCpostcode": "sample string 22",
  "STH": {
    "STHscaid": 1,
    "STHtype": 2,
    "STHvcNo": "sample string 3",
    "STHvcDate": "2024-11-29T01:52:51.508793+07:00",
    "STHinvid": 5,
    "STHpaidUp": 6,
    "STHtimesMail": 7,
    "STHpayMethod": 8,
    "STHpayInfo": "sample string 9",
    "STHtaxInvNo": "sample string 10",
    "STHccy": 11,
    "STHcog": 12.0,
    "STHdiscA": 13.0,
    "STHdiscP": 14.0,
    "STHvatA": 15.0,
    "STHvatP": 16.0,
    "STHnet": 17.0,
    "STHwht": 18.0,
    "STLlist": [
      {
        "STLsthid": 1,
        "STLlistno": 2,
        "STLspdid": 3,
        "STLquan": 4,
        "STLtbud": 5,
        "STLexpire": "2024-11-29T01:52:51.508793+07:00",
        "STLcogW": 7.0,
        "STLdiscAW": 8.0,
        "STLdiscPW": 9.0,
        "STLcogP": 10.0,
        "STLdiscAP": 11.0,
        "STLdiscPP": 12.0,
        "STLsum": 13.0
      },
      {
        "STLsthid": 1,
        "STLlistno": 2,
        "STLspdid": 3,
        "STLquan": 4,
        "STLtbud": 5,
        "STLexpire": "2024-11-29T01:52:51.508793+07:00",
        "STLcogW": 7.0,
        "STLdiscAW": 8.0,
        "STLdiscPW": 9.0,
        "STLcogP": 10.0,
        "STLdiscAP": 11.0,
        "STLdiscPP": 12.0,
        "STLsum": 13.0
      }
    ]
  }
}

application/xml, text/xml

Sample:
<PurchasedRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SPRING_WEBAPI.Models">
  <SCAaddMod>sample string 3</SCAaddMod>
  <SCAbizType>13</SCAbizType>
  <SCAbrhAF>15</SCAbrhAF>
  <SCAccyid>14</SCAccyid>
  <SCAcycleDate>2024-11-29T01:52:51.508793+07:00</SCAcycleDate>
  <SCAdevItem>sample string 7</SCAdevItem>
  <SCAextraItem>sample string 8</SCAextraItem>
  <SCAlang1>10</SCAlang1>
  <SCAlang2>11</SCAlang2>
  <SCAlang3>12</SCAlang3>
  <SCAnoBrch>6</SCAnoBrch>
  <SCAnoCom>5</SCAnoCom>
  <SCAnoUser>4</SCAnoUser>
  <SCAplan>2</SCAplan>
  <SMBcode>sample string 1</SMBcode>
  <SRCaddress1>sample string 18</SRCaddress1>
  <SRCcountry>sample string 21</SRCcountry>
  <SRCcpName1>sample string 17</SRCcpName1>
  <SRCdistrict>sample string 19</SRCdistrict>
  <SRCpostcode>sample string 22</SRCpostcode>
  <SRCprovince>sample string 20</SRCprovince>
  <SRCtaxID>sample string 16</SRCtaxID>
  <STH>
    <STHccy>11</STHccy>
    <STHcog>12</STHcog>
    <STHdiscA>13</STHdiscA>
    <STHdiscP>14</STHdiscP>
    <STHinvid>5</STHinvid>
    <STHnet>17</STHnet>
    <STHpaidUp>6</STHpaidUp>
    <STHpayInfo>sample string 9</STHpayInfo>
    <STHpayMethod>8</STHpayMethod>
    <STHscaid>1</STHscaid>
    <STHtaxInvNo>sample string 10</STHtaxInvNo>
    <STHtimesMail>7</STHtimesMail>
    <STHtype>2</STHtype>
    <STHvatA>15</STHvatA>
    <STHvatP>16</STHvatP>
    <STHvcDate>2024-11-29T01:52:51.508793+07:00</STHvcDate>
    <STHvcNo>sample string 3</STHvcNo>
    <STHwht>18</STHwht>
    <STLlist>
      <STL>
        <STLcogP>10</STLcogP>
        <STLcogW>7</STLcogW>
        <STLdiscAP>11</STLdiscAP>
        <STLdiscAW>8</STLdiscAW>
        <STLdiscPP>12</STLdiscPP>
        <STLdiscPW>9</STLdiscPW>
        <STLexpire>2024-11-29T01:52:51.508793+07:00</STLexpire>
        <STLlistno>2</STLlistno>
        <STLquan>4</STLquan>
        <STLspdid>3</STLspdid>
        <STLsthid>1</STLsthid>
        <STLsum>13</STLsum>
        <STLtbud>5</STLtbud>
      </STL>
      <STL>
        <STLcogP>10</STLcogP>
        <STLcogW>7</STLcogW>
        <STLdiscAP>11</STLdiscAP>
        <STLdiscAW>8</STLdiscAW>
        <STLdiscPP>12</STLdiscPP>
        <STLdiscPW>9</STLdiscPW>
        <STLexpire>2024-11-29T01:52:51.508793+07:00</STLexpire>
        <STLlistno>2</STLlistno>
        <STLquan>4</STLquan>
        <STLspdid>3</STLspdid>
        <STLsthid>1</STLsthid>
        <STLsum>13</STLsum>
        <STLtbud>5</STLtbud>
      </STL>
    </STLlist>
  </STH>
</PurchasedRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.