POST api/CreditNote/SendCreditNote

Request Information

URI Parameters

None.

Body Parameters

SaveInvoiceAPIViewModel
NameDescriptionTypeAdditional information
InvoiceId

integer

None.

CustomerId

integer

None.

TaxTypeId

integer

None.

LanguageId

integer

None.

InvoiceDate

date

None.

InvoiceDueDate

date

None.

Reference

string

None.

InvoiceNumber

string

None.

InvoiceNote

string

None.

CurrencyId

integer

None.

Net

decimal number

None.

Total

decimal number

None.

MultiCurrencyNet

decimal number

None.

MultiCurrencyVAT

decimal number

None.

MultiCurrencyTotal

decimal number

None.

VAT

decimal number

None.

TotalDiscount

decimal number

None.

CurrencyRate

string

None.

SelectedFiles

string

None.

ProjectId

integer

None.

TimeSlips

boolean

None.

CustomerAddressDetailsData

InvoiceBillAddress

None.

ThemeId

integer

None.

IsFrom

string

None.

IsTempInvoice

boolean

None.

MarkAsApproveBy

integer

None.

Deliveryoption

integer

None.

EmailAddress

string

None.

CostCenterList

Collection of SelectListItem

None.

CostCenterIds

Collection of AssetMasterBranchCategoryId

None.

LineItemDetails

Collection of LineItemDetails

None.

CostCenterId

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CostCenterList": [
    {
      "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"
    }
  ],
  "CostCenterIds": [
    {
      "MasterBranchCategoryIds": 1
    },
    {
      "MasterBranchCategoryIds": 1
    }
  ],
  "LineItemDetails": [
    {
      "CostCenterId": [
        1,
        2
      ],
      "IndexId": 1,
      "InvoiceDetailId": 2,
      "ItemId": 3,
      "ItemName": "sample string 4",
      "Description": "sample string 5",
      "AccountName": "sample string 6",
      "AccountNameId": 7,
      "VATId": 8,
      "UnitPrice": "sample string 9",
      "Quantity": "sample string 10",
      "Discount": "sample string 11",
      "DiscountPercentage": "sample string 12",
      "NetAmount": "sample string 13",
      "VATAmount": "sample string 14",
      "TotalAmount": "sample string 15",
      "Unit": 16,
      "TimeTrackingId": 17,
      "ProjectExpencesNumber": "sample string 18",
      "IsStandardVatRate": true
    },
    {
      "CostCenterId": [
        1,
        2
      ],
      "IndexId": 1,
      "InvoiceDetailId": 2,
      "ItemId": 3,
      "ItemName": "sample string 4",
      "Description": "sample string 5",
      "AccountName": "sample string 6",
      "AccountNameId": 7,
      "VATId": 8,
      "UnitPrice": "sample string 9",
      "Quantity": "sample string 10",
      "Discount": "sample string 11",
      "DiscountPercentage": "sample string 12",
      "NetAmount": "sample string 13",
      "VATAmount": "sample string 14",
      "TotalAmount": "sample string 15",
      "Unit": 16,
      "TimeTrackingId": 17,
      "ProjectExpencesNumber": "sample string 18",
      "IsStandardVatRate": true
    }
  ],
  "CostCenterId": [
    1,
    2
  ],
  "InvoiceId": 1,
  "CustomerId": 1,
  "TaxTypeId": 2,
  "LanguageId": 3,
  "InvoiceDate": "2021-10-27T08:09:39.3354733+01:00",
  "InvoiceDueDate": "2021-10-27T08:09:39.3354733+01:00",
  "Reference": "sample string 4",
  "InvoiceNumber": "sample string 5",
  "InvoiceNote": "sample string 6",
  "CurrencyId": 1,
  "Net": 7.0,
  "Total": 8.0,
  "MultiCurrencyNet": 9.0,
  "MultiCurrencyVAT": 10.0,
  "MultiCurrencyTotal": 11.0,
  "VAT": 12.0,
  "TotalDiscount": 13.0,
  "CurrencyRate": "sample string 14",
  "SelectedFiles": "sample string 15",
  "ProjectId": 16,
  "TimeSlips": true,
  "CustomerAddressDetailsData": {
    "BillingAddress1": "sample string 1",
    "BillingAddress2": "sample string 2",
    "BillingTown": "sample string 3",
    "BillingPincode": "sample string 4",
    "BillingState": "sample string 5",
    "BillingCountry": "sample string 6",
    "ShippingAddress1": "sample string 7",
    "ShippingAddress2": "sample string 8",
    "ShippingTown": "sample string 9",
    "ShippingPincode": "sample string 10",
    "ShippingState": "sample string 11",
    "ShippingCountry": "sample string 12",
    "PlaceOfSupply": 13
  },
  "ThemeId": 18,
  "IsFrom": "sample string 19",
  "IsTempInvoice": true,
  "MarkAsApproveBy": 21,
  "Deliveryoption": 22,
  "EmailAddress": "sample string 23"
}

text/html

Sample:
{"CostCenterList":[{"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"}],"CostCenterIds":[{"MasterBranchCategoryIds":1},{"MasterBranchCategoryIds":1}],"LineItemDetails":[{"CostCenterId":[1,2],"IndexId":1,"InvoiceDetailId":2,"ItemId":3,"ItemName":"sample string 4","Description":"sample string 5","AccountName":"sample string 6","AccountNameId":7,"VATId":8,"UnitPrice":"sample string 9","Quantity":"sample string 10","Discount":"sample string 11","DiscountPercentage":"sample string 12","NetAmount":"sample string 13","VATAmount":"sample string 14","TotalAmount":"sample string 15","Unit":16,"TimeTrackingId":17,"ProjectExpencesNumber":"sample string 18","IsStandardVatRate":true},{"CostCenterId":[1,2],"IndexId":1,"InvoiceDetailId":2,"ItemId":3,"ItemName":"sample string 4","Description":"sample string 5","AccountName":"sample string 6","AccountNameId":7,"VATId":8,"UnitPrice":"sample string 9","Quantity":"sample string 10","Discount":"sample string 11","DiscountPercentage":"sample string 12","NetAmount":"sample string 13","VATAmount":"sample string 14","TotalAmount":"sample string 15","Unit":16,"TimeTrackingId":17,"ProjectExpencesNumber":"sample string 18","IsStandardVatRate":true}],"CostCenterId":[1,2],"InvoiceId":1,"CustomerId":1,"TaxTypeId":2,"LanguageId":3,"InvoiceDate":"2021-10-27T08:09:39.3354733+01:00","InvoiceDueDate":"2021-10-27T08:09:39.3354733+01:00","Reference":"sample string 4","InvoiceNumber":"sample string 5","InvoiceNote":"sample string 6","CurrencyId":1,"Net":7.0,"Total":8.0,"MultiCurrencyNet":9.0,"MultiCurrencyVAT":10.0,"MultiCurrencyTotal":11.0,"VAT":12.0,"TotalDiscount":13.0,"CurrencyRate":"sample string 14","SelectedFiles":"sample string 15","ProjectId":16,"TimeSlips":true,"CustomerAddressDetailsData":{"BillingAddress1":"sample string 1","BillingAddress2":"sample string 2","BillingTown":"sample string 3","BillingPincode":"sample string 4","BillingState":"sample string 5","BillingCountry":"sample string 6","ShippingAddress1":"sample string 7","ShippingAddress2":"sample string 8","ShippingTown":"sample string 9","ShippingPincode":"sample string 10","ShippingState":"sample string 11","ShippingCountry":"sample string 12","PlaceOfSupply":13},"ThemeId":18,"IsFrom":"sample string 19","IsTempInvoice":true,"MarkAsApproveBy":21,"Deliveryoption":22,"EmailAddress":"sample string 23"}

application/xml, text/xml

Sample:
<SaveInvoiceAPIViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EasyAccounting.ViewModel">
  <CostCenterId xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </CostCenterId>
  <CostCenterIds>
    <AssetMasterBranchCategoryId>
      <MasterBranchCategoryIds>1</MasterBranchCategoryIds>
    </AssetMasterBranchCategoryId>
    <AssetMasterBranchCategoryId>
      <MasterBranchCategoryIds>1</MasterBranchCategoryIds>
    </AssetMasterBranchCategoryId>
  </CostCenterIds>
  <CostCenterList xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Web.Mvc">
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
    <d2p1:SelectListItem>
      <d2p1:Disabled>true</d2p1:Disabled>
      <d2p1:Group>
        <d2p1:Disabled>true</d2p1:Disabled>
        <d2p1:Name>sample string 2</d2p1:Name>
      </d2p1:Group>
      <d2p1:Selected>true</d2p1:Selected>
      <d2p1:Text>sample string 3</d2p1:Text>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:SelectListItem>
  </CostCenterList>
  <CurrencyId>1</CurrencyId>
  <CurrencyRate>sample string 14</CurrencyRate>
  <CustomerAddressDetailsData>
    <BillingAddress1>sample string 1</BillingAddress1>
    <BillingAddress2>sample string 2</BillingAddress2>
    <BillingCountry>sample string 6</BillingCountry>
    <BillingPincode>sample string 4</BillingPincode>
    <BillingState>sample string 5</BillingState>
    <BillingTown>sample string 3</BillingTown>
    <PlaceOfSupply>13</PlaceOfSupply>
    <ShippingAddress1>sample string 7</ShippingAddress1>
    <ShippingAddress2>sample string 8</ShippingAddress2>
    <ShippingCountry>sample string 12</ShippingCountry>
    <ShippingPincode>sample string 10</ShippingPincode>
    <ShippingState>sample string 11</ShippingState>
    <ShippingTown>sample string 9</ShippingTown>
  </CustomerAddressDetailsData>
  <CustomerId>1</CustomerId>
  <Deliveryoption>22</Deliveryoption>
  <EmailAddress>sample string 23</EmailAddress>
  <InvoiceDate>2021-10-27T08:09:39.3354733+01:00</InvoiceDate>
  <InvoiceDueDate>2021-10-27T08:09:39.3354733+01:00</InvoiceDueDate>
  <InvoiceId>1</InvoiceId>
  <InvoiceNote>sample string 6</InvoiceNote>
  <InvoiceNumber>sample string 5</InvoiceNumber>
  <IsFrom>sample string 19</IsFrom>
  <IsTempInvoice>true</IsTempInvoice>
  <LanguageId>3</LanguageId>
  <LineItemDetails>
    <LineItemDetails>
      <AccountName>sample string 6</AccountName>
      <AccountNameId>7</AccountNameId>
      <CostCenterId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </CostCenterId>
      <Description>sample string 5</Description>
      <Discount>sample string 11</Discount>
      <DiscountPercentage>sample string 12</DiscountPercentage>
      <IndexId>1</IndexId>
      <InvoiceDetailId>2</InvoiceDetailId>
      <IsStandardVatRate>true</IsStandardVatRate>
      <ItemId>3</ItemId>
      <ItemName>sample string 4</ItemName>
      <NetAmount>sample string 13</NetAmount>
      <ProjectExpencesNumber>sample string 18</ProjectExpencesNumber>
      <Quantity>sample string 10</Quantity>
      <TimeTrackingId>17</TimeTrackingId>
      <TotalAmount>sample string 15</TotalAmount>
      <Unit>16</Unit>
      <UnitPrice>sample string 9</UnitPrice>
      <VATAmount>sample string 14</VATAmount>
      <VATId>8</VATId>
    </LineItemDetails>
    <LineItemDetails>
      <AccountName>sample string 6</AccountName>
      <AccountNameId>7</AccountNameId>
      <CostCenterId xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:long>1</d4p1:long>
        <d4p1:long>2</d4p1:long>
      </CostCenterId>
      <Description>sample string 5</Description>
      <Discount>sample string 11</Discount>
      <DiscountPercentage>sample string 12</DiscountPercentage>
      <IndexId>1</IndexId>
      <InvoiceDetailId>2</InvoiceDetailId>
      <IsStandardVatRate>true</IsStandardVatRate>
      <ItemId>3</ItemId>
      <ItemName>sample string 4</ItemName>
      <NetAmount>sample string 13</NetAmount>
      <ProjectExpencesNumber>sample string 18</ProjectExpencesNumber>
      <Quantity>sample string 10</Quantity>
      <TimeTrackingId>17</TimeTrackingId>
      <TotalAmount>sample string 15</TotalAmount>
      <Unit>16</Unit>
      <UnitPrice>sample string 9</UnitPrice>
      <VATAmount>sample string 14</VATAmount>
      <VATId>8</VATId>
    </LineItemDetails>
  </LineItemDetails>
  <MarkAsApproveBy>21</MarkAsApproveBy>
  <MultiCurrencyNet>9</MultiCurrencyNet>
  <MultiCurrencyTotal>11</MultiCurrencyTotal>
  <MultiCurrencyVAT>10</MultiCurrencyVAT>
  <Net>7</Net>
  <ProjectId>16</ProjectId>
  <Reference>sample string 4</Reference>
  <SelectedFiles>sample string 15</SelectedFiles>
  <TaxTypeId>2</TaxTypeId>
  <ThemeId>18</ThemeId>
  <TimeSlips>true</TimeSlips>
  <Total>8</Total>
  <TotalDiscount>13</TotalDiscount>
  <VAT>12</VAT>
</SaveInvoiceAPIViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

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.