POST api/sale/payment/createedit

Request Information

URI Parameters

None.

Body Parameters

SalePaymentCreateEditView
NameDescriptionTypeAdditional information
Id

integer

None.

IsCreate

boolean

None.

MethodUsedInWebPageId

integer

None.

MethodCode

integer

None.

MethodName

string

None.

MethodPercentage

byte

None.

Amount

decimal number

None.

InvoiceId

integer

None.

AccountId

integer

None.

PaymentDate

string

None.

TrackingNumber

string

None.

GalleryId

integer

None.

Description

string

None.

StatusId

integer

None.

CheckNumber

string

None.

CheckTypeId

integer

None.

CheckOwnerName

string

None.

CheckReceiveDate

string

None.

CheckDueDate

string

None.

CheckBankId

integer

None.

InstallmentId

integer

None.

CustomFieldDatas

Collection of CoreCustomFieldDataCreateEditView

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "IsCreate": true,
  "MethodUsedInWebPageId": 3,
  "MethodCode": 4,
  "MethodName": "sample string 5",
  "MethodPercentage": 64,
  "Amount": 7.0,
  "InvoiceId": 1,
  "AccountId": 8,
  "PaymentDate": "sample string 9",
  "TrackingNumber": "sample string 10",
  "GalleryId": 1,
  "Description": "sample string 11",
  "StatusId": 12,
  "CheckNumber": "sample string 13",
  "CheckTypeId": 1,
  "CheckOwnerName": "sample string 14",
  "CheckReceiveDate": "sample string 15",
  "CheckDueDate": "sample string 16",
  "CheckBankId": 1,
  "InstallmentId": 1,
  "CustomFieldDatas": [
    {
      "Field": {
        "FieldId": 1,
        "FieldDataTypeId": 2,
        "DataType": 0,
        "Title": "sample string 3",
        "Value": {},
        "Items": [
          {
            "Disabled": true,
            "Group": {
              "Disabled": true,
              "Name": "sample string 2"
            },
            "Selected": true,
            "Text": "sample string 3",
            "Value": "sample string 4"
          },
          {
            "Disabled": true,
            "Group": {
              "Disabled": true,
              "Name": "sample string 2"
            },
            "Selected": true,
            "Text": "sample string 3",
            "Value": "sample string 4"
          }
        ],
        "IsUnique": true,
        "IsRequired": true,
        "GridSize": 64,
        "CustomFieldDataId": 1,
        "IsPrimaryKey": true,
        "RelatedType": {
          "Id": 1,
          "Code": "sample string 2",
          "ParentCode": "sample string 3",
          "Icon": "sample string 4",
          "NameSingular": "sample string 5",
          "NamePlural": "sample string 6",
          "Route": "sample string 7",
          "HasBoard": true,
          "HasPeople": true,
          "HasPeopleMultiple": true,
          "HasCard": true
        },
        "SelectUrl": "sample string 9",
        "SelectIsSearchable": true,
        "DisplayableValue": "sample string 11"
      },
      "Group": {
        "Id": 1,
        "Title": "sample string 2"
      },
      "IsLabelMuted": true
    },
    {
      "Field": {
        "FieldId": 1,
        "FieldDataTypeId": 2,
        "DataType": 0,
        "Title": "sample string 3",
        "Value": {},
        "Items": [
          {
            "Disabled": true,
            "Group": {
              "Disabled": true,
              "Name": "sample string 2"
            },
            "Selected": true,
            "Text": "sample string 3",
            "Value": "sample string 4"
          },
          {
            "Disabled": true,
            "Group": {
              "Disabled": true,
              "Name": "sample string 2"
            },
            "Selected": true,
            "Text": "sample string 3",
            "Value": "sample string 4"
          }
        ],
        "IsUnique": true,
        "IsRequired": true,
        "GridSize": 64,
        "CustomFieldDataId": 1,
        "IsPrimaryKey": true,
        "RelatedType": {
          "Id": 1,
          "Code": "sample string 2",
          "ParentCode": "sample string 3",
          "Icon": "sample string 4",
          "NameSingular": "sample string 5",
          "NamePlural": "sample string 6",
          "Route": "sample string 7",
          "HasBoard": true,
          "HasPeople": true,
          "HasPeopleMultiple": true,
          "HasCard": true
        },
        "SelectUrl": "sample string 9",
        "SelectIsSearchable": true,
        "DisplayableValue": "sample string 11"
      },
      "Group": {
        "Id": 1,
        "Title": "sample string 2"
      },
      "IsLabelMuted": true
    }
  ]
}

application/xml, text/xml

Sample:
<SalePaymentCreateEditView xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KAdmin.Model.Models.SalePaymentView">
  <AccountId>8</AccountId>
  <Amount>7</Amount>
  <CheckBankId>1</CheckBankId>
  <CheckDueDate>sample string 16</CheckDueDate>
  <CheckNumber>sample string 13</CheckNumber>
  <CheckOwnerName>sample string 14</CheckOwnerName>
  <CheckReceiveDate>sample string 15</CheckReceiveDate>
  <CheckTypeId>1</CheckTypeId>
  <CustomFieldDatas xmlns:d2p1="http://schemas.datacontract.org/2004/07/KCore.Model.Models.CustomFieldView">
    <d2p1:CoreCustomFieldDataCreateEditView>
      <d2p1:Field xmlns:d4p1="http://schemas.datacontract.org/2004/07/KCore.Model.Models.GeneralView">
        <d4p1:CustomFieldDataId>1</d4p1:CustomFieldDataId>
        <d4p1:DataType>None</d4p1:DataType>
        <d4p1:DisplayableValue>sample string 11</d4p1:DisplayableValue>
        <d4p1:FieldDataTypeId>2</d4p1:FieldDataTypeId>
        <d4p1:FieldId>1</d4p1:FieldId>
        <d4p1:GridSize>64</d4p1:GridSize>
        <d4p1:IsPrimaryKey>true</d4p1:IsPrimaryKey>
        <d4p1:IsRequired>true</d4p1:IsRequired>
        <d4p1:IsUnique>true</d4p1:IsUnique>
        <d4p1:Items>
          <d4p1:FieldInputSelectListItemView>
            <Disabled xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Disabled>
            <Group xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
              <Disabled>true</Disabled>
              <Name>sample string 2</Name>
            </Group>
            <Selected xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Selected>
            <Text xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 3</Text>
            <Value xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 4</Value>
          </d4p1:FieldInputSelectListItemView>
          <d4p1:FieldInputSelectListItemView>
            <Disabled xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Disabled>
            <Group xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
              <Disabled>true</Disabled>
              <Name>sample string 2</Name>
            </Group>
            <Selected xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Selected>
            <Text xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 3</Text>
            <Value xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 4</Value>
          </d4p1:FieldInputSelectListItemView>
        </d4p1:Items>
        <d4p1:RelatedType xmlns:d5p1="http://schemas.datacontract.org/2004/07/KCore.Model.Models.RelatedTypeView">
          <d5p1:Code>sample string 2</d5p1:Code>
          <d5p1:HasBoard>true</d5p1:HasBoard>
          <d5p1:HasCard>true</d5p1:HasCard>
          <d5p1:HasPeople>true</d5p1:HasPeople>
          <d5p1:HasPeopleMultiple>true</d5p1:HasPeopleMultiple>
          <d5p1:Icon>sample string 4</d5p1:Icon>
          <d5p1:Id>1</d5p1:Id>
          <d5p1:NamePlural>sample string 6</d5p1:NamePlural>
          <d5p1:NameSingular>sample string 5</d5p1:NameSingular>
          <d5p1:ParentCode>sample string 3</d5p1:ParentCode>
          <d5p1:Route>sample string 7</d5p1:Route>
        </d4p1:RelatedType>
        <d4p1:SelectIsSearchable>true</d4p1:SelectIsSearchable>
        <d4p1:SelectUrl>sample string 9</d4p1:SelectUrl>
        <d4p1:Title>sample string 3</d4p1:Title>
        <d4p1:Value />
      </d2p1:Field>
      <d2p1:Group>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:Group>
      <d2p1:IsLabelMuted>true</d2p1:IsLabelMuted>
    </d2p1:CoreCustomFieldDataCreateEditView>
    <d2p1:CoreCustomFieldDataCreateEditView>
      <d2p1:Field xmlns:d4p1="http://schemas.datacontract.org/2004/07/KCore.Model.Models.GeneralView">
        <d4p1:CustomFieldDataId>1</d4p1:CustomFieldDataId>
        <d4p1:DataType>None</d4p1:DataType>
        <d4p1:DisplayableValue>sample string 11</d4p1:DisplayableValue>
        <d4p1:FieldDataTypeId>2</d4p1:FieldDataTypeId>
        <d4p1:FieldId>1</d4p1:FieldId>
        <d4p1:GridSize>64</d4p1:GridSize>
        <d4p1:IsPrimaryKey>true</d4p1:IsPrimaryKey>
        <d4p1:IsRequired>true</d4p1:IsRequired>
        <d4p1:IsUnique>true</d4p1:IsUnique>
        <d4p1:Items>
          <d4p1:FieldInputSelectListItemView>
            <Disabled xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Disabled>
            <Group xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
              <Disabled>true</Disabled>
              <Name>sample string 2</Name>
            </Group>
            <Selected xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Selected>
            <Text xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 3</Text>
            <Value xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 4</Value>
          </d4p1:FieldInputSelectListItemView>
          <d4p1:FieldInputSelectListItemView>
            <Disabled xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Disabled>
            <Group xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
              <Disabled>true</Disabled>
              <Name>sample string 2</Name>
            </Group>
            <Selected xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">true</Selected>
            <Text xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 3</Text>
            <Value xmlns="http://schemas.datacontract.org/2004/07/System.Web.Mvc">sample string 4</Value>
          </d4p1:FieldInputSelectListItemView>
        </d4p1:Items>
        <d4p1:RelatedType xmlns:d5p1="http://schemas.datacontract.org/2004/07/KCore.Model.Models.RelatedTypeView">
          <d5p1:Code>sample string 2</d5p1:Code>
          <d5p1:HasBoard>true</d5p1:HasBoard>
          <d5p1:HasCard>true</d5p1:HasCard>
          <d5p1:HasPeople>true</d5p1:HasPeople>
          <d5p1:HasPeopleMultiple>true</d5p1:HasPeopleMultiple>
          <d5p1:Icon>sample string 4</d5p1:Icon>
          <d5p1:Id>1</d5p1:Id>
          <d5p1:NamePlural>sample string 6</d5p1:NamePlural>
          <d5p1:NameSingular>sample string 5</d5p1:NameSingular>
          <d5p1:ParentCode>sample string 3</d5p1:ParentCode>
          <d5p1:Route>sample string 7</d5p1:Route>
        </d4p1:RelatedType>
        <d4p1:SelectIsSearchable>true</d4p1:SelectIsSearchable>
        <d4p1:SelectUrl>sample string 9</d4p1:SelectUrl>
        <d4p1:Title>sample string 3</d4p1:Title>
        <d4p1:Value />
      </d2p1:Field>
      <d2p1:Group>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:Title>sample string 2</d2p1:Title>
      </d2p1:Group>
      <d2p1:IsLabelMuted>true</d2p1:IsLabelMuted>
    </d2p1:CoreCustomFieldDataCreateEditView>
  </CustomFieldDatas>
  <Description>sample string 11</Description>
  <GalleryId>1</GalleryId>
  <Id>1</Id>
  <InstallmentId>1</InstallmentId>
  <InvoiceId>1</InvoiceId>
  <IsCreate>true</IsCreate>
  <MethodCode>4</MethodCode>
  <MethodName>sample string 5</MethodName>
  <MethodPercentage>64</MethodPercentage>
  <MethodUsedInWebPageId>3</MethodUsedInWebPageId>
  <PaymentDate>sample string 9</PaymentDate>
  <StatusId>12</StatusId>
  <TrackingNumber>sample string 10</TrackingNumber>
</SalePaymentCreateEditView>

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.