POST api/srm/PaAnnualContract/createBatch

Request Information

URI Parameters

None.

Body Parameters

GeneratePaAnnualContractBatchDto
NameDescriptionTypeAdditional information
ID

string

None.

Creator

string

None.

isElectronicSignature

string

None.

IsStandard

string

None.

Summary

string

None.

Contracts

Collection of Contract

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": "sample string 1",
  "Creator": "sample string 2",
  "isElectronicSignature": "sample string 3",
  "IsStandard": "sample string 4",
  "Summary": "sample string 5",
  "Contracts": [
    {
      "ContractId": "sample string 1",
      "ContractCode": "sample string 2",
      "ContractName": "sample string 3",
      "CompanyId": "sample string 4",
      "CompanyName": "sample string 5",
      "OurSignCompanyId": "sample string 6",
      "OurSignCompanyName": "sample string 7",
      "SupplierHandlerContact": "sample string 8",
      "SupplierHandlerName": "sample string 9",
      "TotalSum": 10.0,
      "Remark": "sample string 11",
      "ContractPath": "sample string 12",
      "ContractType": "sample string 13",
      "InnerAttachments": [
        {
          "AttachmentPath": "sample string 1",
          "AttachmentName": "sample string 2"
        },
        {
          "AttachmentPath": "sample string 1",
          "AttachmentName": "sample string 2"
        }
      ],
      "OuterAttachments": [
        {
          "AttachmentPath": "sample string 1",
          "AttachmentName": "sample string 2"
        },
        {
          "AttachmentPath": "sample string 1",
          "AttachmentName": "sample string 2"
        }
      ]
    },
    {
      "ContractId": "sample string 1",
      "ContractCode": "sample string 2",
      "ContractName": "sample string 3",
      "CompanyId": "sample string 4",
      "CompanyName": "sample string 5",
      "OurSignCompanyId": "sample string 6",
      "OurSignCompanyName": "sample string 7",
      "SupplierHandlerContact": "sample string 8",
      "SupplierHandlerName": "sample string 9",
      "TotalSum": 10.0,
      "Remark": "sample string 11",
      "ContractPath": "sample string 12",
      "ContractType": "sample string 13",
      "InnerAttachments": [
        {
          "AttachmentPath": "sample string 1",
          "AttachmentName": "sample string 2"
        },
        {
          "AttachmentPath": "sample string 1",
          "AttachmentName": "sample string 2"
        }
      ],
      "OuterAttachments": [
        {
          "AttachmentPath": "sample string 1",
          "AttachmentName": "sample string 2"
        },
        {
          "AttachmentPath": "sample string 1",
          "AttachmentName": "sample string 2"
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<GeneratePaAnnualContractBatchDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Strong.WebAPI.Model.SRM.Dto">
  <Contracts>
    <GeneratePaAnnualContractBatchDto.Contract>
      <CompanyId>sample string 4</CompanyId>
      <CompanyName>sample string 5</CompanyName>
      <ContractCode>sample string 2</ContractCode>
      <ContractId>sample string 1</ContractId>
      <ContractName>sample string 3</ContractName>
      <ContractPath>sample string 12</ContractPath>
      <ContractType>sample string 13</ContractType>
      <InnerAttachments>
        <PaAnnualContractAttachment>
          <AttachmentName>sample string 2</AttachmentName>
          <AttachmentPath>sample string 1</AttachmentPath>
        </PaAnnualContractAttachment>
        <PaAnnualContractAttachment>
          <AttachmentName>sample string 2</AttachmentName>
          <AttachmentPath>sample string 1</AttachmentPath>
        </PaAnnualContractAttachment>
      </InnerAttachments>
      <OurSignCompanyId>sample string 6</OurSignCompanyId>
      <OurSignCompanyName>sample string 7</OurSignCompanyName>
      <OuterAttachments>
        <PaAnnualContractAttachment>
          <AttachmentName>sample string 2</AttachmentName>
          <AttachmentPath>sample string 1</AttachmentPath>
        </PaAnnualContractAttachment>
        <PaAnnualContractAttachment>
          <AttachmentName>sample string 2</AttachmentName>
          <AttachmentPath>sample string 1</AttachmentPath>
        </PaAnnualContractAttachment>
      </OuterAttachments>
      <Remark>sample string 11</Remark>
      <SupplierHandlerContact>sample string 8</SupplierHandlerContact>
      <SupplierHandlerName>sample string 9</SupplierHandlerName>
      <TotalSum>10</TotalSum>
    </GeneratePaAnnualContractBatchDto.Contract>
    <GeneratePaAnnualContractBatchDto.Contract>
      <CompanyId>sample string 4</CompanyId>
      <CompanyName>sample string 5</CompanyName>
      <ContractCode>sample string 2</ContractCode>
      <ContractId>sample string 1</ContractId>
      <ContractName>sample string 3</ContractName>
      <ContractPath>sample string 12</ContractPath>
      <ContractType>sample string 13</ContractType>
      <InnerAttachments>
        <PaAnnualContractAttachment>
          <AttachmentName>sample string 2</AttachmentName>
          <AttachmentPath>sample string 1</AttachmentPath>
        </PaAnnualContractAttachment>
        <PaAnnualContractAttachment>
          <AttachmentName>sample string 2</AttachmentName>
          <AttachmentPath>sample string 1</AttachmentPath>
        </PaAnnualContractAttachment>
      </InnerAttachments>
      <OurSignCompanyId>sample string 6</OurSignCompanyId>
      <OurSignCompanyName>sample string 7</OurSignCompanyName>
      <OuterAttachments>
        <PaAnnualContractAttachment>
          <AttachmentName>sample string 2</AttachmentName>
          <AttachmentPath>sample string 1</AttachmentPath>
        </PaAnnualContractAttachment>
        <PaAnnualContractAttachment>
          <AttachmentName>sample string 2</AttachmentName>
          <AttachmentPath>sample string 1</AttachmentPath>
        </PaAnnualContractAttachment>
      </OuterAttachments>
      <Remark>sample string 11</Remark>
      <SupplierHandlerContact>sample string 8</SupplierHandlerContact>
      <SupplierHandlerName>sample string 9</SupplierHandlerName>
      <TotalSum>10</TotalSum>
    </GeneratePaAnnualContractBatchDto.Contract>
  </Contracts>
  <Creator>sample string 2</Creator>
  <ID>sample string 1</ID>
  <IsStandard>sample string 4</IsStandard>
  <Summary>sample string 5</Summary>
  <isElectronicSignature>sample string 3</isElectronicSignature>
</GeneratePaAnnualContractBatchDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SrmResult
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<SrmResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Strong.WebAPI.Model.SRM.Dto">
  <Data />
  <Message>sample string 2</Message>
  <Success>true</Success>
</SrmResult>