POST api/Insurance/SaveInsurance

Request Information

URI Parameters

None.

Body Parameters

SaveInsuranceRequest
NameDescriptionTypeAdditional information
InsuranceDocumentNumber

string

None.

IdInsuranceExternal

string

None.

CompanyId

decimal number

None.

ETTN

string

None.

ReceiverInboxTag

string

None.

IssueDate

string

None.

IssueTime

string

None.

InsuranceType

InsuranceType

None.

TotalAllowanceAmount

decimal number

None.

TotalChargeAmount

decimal number

None.

InsurancePeriodStartDate

string

None.

InsurancePeriodEndDate

string

None.

CopyIndicator

boolean

None.

ReceiverId

decimal number

None.

Notes

Collection of string

None.

AttachmentList

Collection of AttachmentMobileModel

None.

InsuranceDetails

Collection of InsuranceDetailMobileModel

None.

CurrencyCode

string

None.

CrossRate

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "InsuranceDocumentNumber": "sample string 1",
  "IdInsuranceExternal": "sample string 2",
  "CompanyId": 3.0,
  "ETTN": "sample string 4",
  "ReceiverInboxTag": "sample string 5",
  "IssueDate": "sample string 6",
  "IssueTime": "sample string 7",
  "InsuranceType": 1,
  "TotalAllowanceAmount": 8.0,
  "TotalChargeAmount": 9.0,
  "InsurancePeriodStartDate": "sample string 10",
  "InsurancePeriodEndDate": "sample string 11",
  "CopyIndicator": true,
  "ReceiverId": 13.0,
  "Notes": [
    "sample string 1",
    "sample string 2"
  ],
  "AttachmentList": [
    {
      "AttachmentModelId": 1.0,
      "FileAsBase64": "sample string 2",
      "FileName": "sample string 3",
      "FilePath": "sample string 4",
      "MimeCode": "sample string 5",
      "Deleted": true
    },
    {
      "AttachmentModelId": 1.0,
      "FileAsBase64": "sample string 2",
      "FileName": "sample string 3",
      "FilePath": "sample string 4",
      "MimeCode": "sample string 5",
      "Deleted": true
    }
  ],
  "InsuranceDetails": [
    {
      "InsuranceDetailModelId": 1.0,
      "Description": "sample string 2",
      "CancelAllowanceChargeAmount": 3.0,
      "ProcureAllowanceChargeAmount": 4.0
    },
    {
      "InsuranceDetailModelId": 1.0,
      "Description": "sample string 2",
      "CancelAllowanceChargeAmount": 3.0,
      "ProcureAllowanceChargeAmount": 4.0
    }
  ],
  "CurrencyCode": "sample string 14",
  "CrossRate": 15.0
}

application/xml, text/xml

Sample:
<SaveInsuranceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.MobileModel">
  <AttachmentList xmlns:d2p1="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">
    <d2p1:AttachmentMobileModel>
      <d2p1:AttachmentModelId>1</d2p1:AttachmentModelId>
      <d2p1:Deleted>true</d2p1:Deleted>
      <d2p1:FileAsBase64>sample string 2</d2p1:FileAsBase64>
      <d2p1:FileName>sample string 3</d2p1:FileName>
      <d2p1:FilePath>sample string 4</d2p1:FilePath>
      <d2p1:MimeCode>sample string 5</d2p1:MimeCode>
    </d2p1:AttachmentMobileModel>
    <d2p1:AttachmentMobileModel>
      <d2p1:AttachmentModelId>1</d2p1:AttachmentModelId>
      <d2p1:Deleted>true</d2p1:Deleted>
      <d2p1:FileAsBase64>sample string 2</d2p1:FileAsBase64>
      <d2p1:FileName>sample string 3</d2p1:FileName>
      <d2p1:FilePath>sample string 4</d2p1:FilePath>
      <d2p1:MimeCode>sample string 5</d2p1:MimeCode>
    </d2p1:AttachmentMobileModel>
  </AttachmentList>
  <CompanyId>3</CompanyId>
  <CopyIndicator>true</CopyIndicator>
  <CrossRate>15</CrossRate>
  <CurrencyCode>sample string 14</CurrencyCode>
  <ETTN>sample string 4</ETTN>
  <IdInsuranceExternal>sample string 2</IdInsuranceExternal>
  <InsuranceDetails>
    <InsuranceDetailMobileModel>
      <CancelAllowanceChargeAmount>3</CancelAllowanceChargeAmount>
      <Description>sample string 2</Description>
      <InsuranceDetailModelId>1</InsuranceDetailModelId>
      <ProcureAllowanceChargeAmount>4</ProcureAllowanceChargeAmount>
    </InsuranceDetailMobileModel>
    <InsuranceDetailMobileModel>
      <CancelAllowanceChargeAmount>3</CancelAllowanceChargeAmount>
      <Description>sample string 2</Description>
      <InsuranceDetailModelId>1</InsuranceDetailModelId>
      <ProcureAllowanceChargeAmount>4</ProcureAllowanceChargeAmount>
    </InsuranceDetailMobileModel>
  </InsuranceDetails>
  <InsuranceDocumentNumber>sample string 1</InsuranceDocumentNumber>
  <InsurancePeriodEndDate>sample string 11</InsurancePeriodEndDate>
  <InsurancePeriodStartDate>sample string 10</InsurancePeriodStartDate>
  <InsuranceType>SIGORTAKOMISYONGIDERBELGESI</InsuranceType>
  <IssueDate>sample string 6</IssueDate>
  <IssueTime>sample string 7</IssueTime>
  <Notes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Notes>
  <ReceiverId>13</ReceiverId>
  <ReceiverInboxTag>sample string 5</ReceiverInboxTag>
  <TotalAllowanceAmount>8</TotalAllowanceAmount>
  <TotalChargeAmount>9</TotalChargeAmount>
</SaveInsuranceRequest>

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

Response Information

Resource Description

SaveInsuranceResponse
NameDescriptionTypeAdditional information
InsuranceDocumentNumber

string

None.

Ettn

string

None.

Result

ResultType

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "InsuranceDocumentNumber": "sample string 1",
  "Ettn": "sample string 2",
  "Result": 0,
  "ErrorMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<SaveInsuranceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.MobileModel">
  <_x003C_ErrorMessage_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">sample string 3</_x003C_ErrorMessage_x003E_k__BackingField>
  <_x003C_Result_x003E_k__BackingField xmlns="http://schemas.datacontract.org/2004/07/EInvoice.Service.Model.Mobile">Success</_x003C_Result_x003E_k__BackingField>
  <Ettn>sample string 2</Ettn>
  <InsuranceDocumentNumber>sample string 1</InsuranceDocumentNumber>
</SaveInsuranceResponse>