POST api/ECommerceCreditGateway/UpdateAssetListProposal

Consente la modifica del carrello beni e dell’importo di una proposta.

Request Information

URI Parameters

None.

Body Parameters

UpdateAssetListModel
NameDescriptionTypeAdditional information
Login

string

Required

TOKEN

string

Required

AssetList

Collection of Asset

Required

VatIncluded

boolean

None.

Installment

Installment

Required

Request Formats

application/json, text/json

Sample:
{
  "Login": "sample string 1",
  "TOKEN": "sample string 2",
  "AssetList": [
    {
      "Code": "sample string 1",
      "Amount": 2.0,
      "Description": "sample string 3",
      "ExternalCode": "sample string 4",
      "VatCode": "sample string 5",
      "IsUsedAsset": true
    },
    {
      "Code": "sample string 1",
      "Amount": 2.0,
      "Description": "sample string 3",
      "ExternalCode": "sample string 4",
      "VatCode": "sample string 5",
      "IsUsedAsset": true
    }
  ],
  "VatIncluded": true,
  "Installment": {
    "Duration": 1,
    "Frequency": 2,
    "Amount": 3.0,
    "AmountDiscount": 4.0,
    "Rate": 5.0,
    "ProductCode": "sample string 6",
    "AgreementCode": "sample string 7",
    "AssetsWithFees": [
      {
        "Fee": 1.0,
        "FeeDiscount": 2.0,
        "Discount": 3.0,
        "OriginalAmount": 4.0,
        "RealCost": 5.0,
        "DealerAmount": 6.0,
        "DealerCost": 7.0,
        "SupplierCode": "sample string 8",
        "SupplierOrderCode": "sample string 9",
        "SupplierName": "sample string 10",
        "ExternalCategoryCode1": "sample string 11",
        "ExternalCategoryCode2": "sample string 12",
        "ExternalCategoryCode3": "sample string 13",
        "BrandCode": "sample string 14",
        "Availability": true,
        "IsDealerBuyer": true,
        "IsDealerSupplier": true,
        "InitialAmount": 18.0,
        "InitialGain": 19.0,
        "MinimumGain": 20.0,
        "DealerMarkup": 21.0,
        "MarkupJumpTable": 22.0,
        "DealerMarkupJumpTable": 23.0,
        "Rate": 24.0,
        "DifrentlyServiceCost": 25.0,
        "Code": "sample string 26",
        "Amount": 27.0,
        "Description": "sample string 28",
        "ExternalCode": "sample string 29",
        "VatCode": "sample string 30",
        "IsUsedAsset": true
      },
      {
        "Fee": 1.0,
        "FeeDiscount": 2.0,
        "Discount": 3.0,
        "OriginalAmount": 4.0,
        "RealCost": 5.0,
        "DealerAmount": 6.0,
        "DealerCost": 7.0,
        "SupplierCode": "sample string 8",
        "SupplierOrderCode": "sample string 9",
        "SupplierName": "sample string 10",
        "ExternalCategoryCode1": "sample string 11",
        "ExternalCategoryCode2": "sample string 12",
        "ExternalCategoryCode3": "sample string 13",
        "BrandCode": "sample string 14",
        "Availability": true,
        "IsDealerBuyer": true,
        "IsDealerSupplier": true,
        "InitialAmount": 18.0,
        "InitialGain": 19.0,
        "MinimumGain": 20.0,
        "DealerMarkup": 21.0,
        "MarkupJumpTable": 22.0,
        "DealerMarkupJumpTable": 23.0,
        "Rate": 24.0,
        "DifrentlyServiceCost": 25.0,
        "Code": "sample string 26",
        "Amount": 27.0,
        "Description": "sample string 28",
        "ExternalCode": "sample string 29",
        "VatCode": "sample string 30",
        "IsUsedAsset": true
      }
    ],
    "InsuranceCost": 8.0
  }
}

application/xml, text/xml

Sample:
<UpdateAssetListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CreditGatewayBusiness">
  <AssetList>
    <Asset>
      <Amount>2</Amount>
      <Code>sample string 1</Code>
      <Description>sample string 3</Description>
      <ExternalCode>sample string 4</ExternalCode>
      <IsUsedAsset>true</IsUsedAsset>
      <VatCode>sample string 5</VatCode>
    </Asset>
    <Asset>
      <Amount>2</Amount>
      <Code>sample string 1</Code>
      <Description>sample string 3</Description>
      <ExternalCode>sample string 4</ExternalCode>
      <IsUsedAsset>true</IsUsedAsset>
      <VatCode>sample string 5</VatCode>
    </Asset>
  </AssetList>
  <Installment>
    <AgreementCode>sample string 7</AgreementCode>
    <Amount>3</Amount>
    <AmountDiscount>4</AmountDiscount>
    <AssetsWithFees>
      <AssetWithFees>
        <Amount>27</Amount>
        <Code>sample string 26</Code>
        <Description>sample string 28</Description>
        <ExternalCode>sample string 29</ExternalCode>
        <IsUsedAsset>true</IsUsedAsset>
        <VatCode>sample string 30</VatCode>
        <Availability>true</Availability>
        <BrandCode>sample string 14</BrandCode>
        <DealerAmount>6</DealerAmount>
        <DealerCost>7</DealerCost>
        <DealerMarkup>21</DealerMarkup>
        <DealerMarkupJumpTable>23</DealerMarkupJumpTable>
        <DifrentlyServiceCost>25</DifrentlyServiceCost>
        <Discount>3</Discount>
        <ExternalCategoryCode1>sample string 11</ExternalCategoryCode1>
        <ExternalCategoryCode2>sample string 12</ExternalCategoryCode2>
        <ExternalCategoryCode3>sample string 13</ExternalCategoryCode3>
        <Fee>1</Fee>
        <FeeDiscount>2</FeeDiscount>
        <InitialAmount>18</InitialAmount>
        <InitialGain>19</InitialGain>
        <IsDealerBuyer>true</IsDealerBuyer>
        <IsDealerSupplier>true</IsDealerSupplier>
        <MarkupJumpTable>22</MarkupJumpTable>
        <MinimumGain>20</MinimumGain>
        <OriginalAmount>4</OriginalAmount>
        <Rate>24</Rate>
        <RealCost>5</RealCost>
        <SupplierCode>sample string 8</SupplierCode>
        <SupplierName>sample string 10</SupplierName>
        <SupplierOrderCode>sample string 9</SupplierOrderCode>
      </AssetWithFees>
      <AssetWithFees>
        <Amount>27</Amount>
        <Code>sample string 26</Code>
        <Description>sample string 28</Description>
        <ExternalCode>sample string 29</ExternalCode>
        <IsUsedAsset>true</IsUsedAsset>
        <VatCode>sample string 30</VatCode>
        <Availability>true</Availability>
        <BrandCode>sample string 14</BrandCode>
        <DealerAmount>6</DealerAmount>
        <DealerCost>7</DealerCost>
        <DealerMarkup>21</DealerMarkup>
        <DealerMarkupJumpTable>23</DealerMarkupJumpTable>
        <DifrentlyServiceCost>25</DifrentlyServiceCost>
        <Discount>3</Discount>
        <ExternalCategoryCode1>sample string 11</ExternalCategoryCode1>
        <ExternalCategoryCode2>sample string 12</ExternalCategoryCode2>
        <ExternalCategoryCode3>sample string 13</ExternalCategoryCode3>
        <Fee>1</Fee>
        <FeeDiscount>2</FeeDiscount>
        <InitialAmount>18</InitialAmount>
        <InitialGain>19</InitialGain>
        <IsDealerBuyer>true</IsDealerBuyer>
        <IsDealerSupplier>true</IsDealerSupplier>
        <MarkupJumpTable>22</MarkupJumpTable>
        <MinimumGain>20</MinimumGain>
        <OriginalAmount>4</OriginalAmount>
        <Rate>24</Rate>
        <RealCost>5</RealCost>
        <SupplierCode>sample string 8</SupplierCode>
        <SupplierName>sample string 10</SupplierName>
        <SupplierOrderCode>sample string 9</SupplierOrderCode>
      </AssetWithFees>
    </AssetsWithFees>
    <Duration>1</Duration>
    <Frequency>2</Frequency>
    <InsuranceCost>8</InsuranceCost>
    <ProductCode>sample string 6</ProductCode>
    <Rate>5</Rate>
  </Installment>
  <Login>sample string 1</Login>
  <TOKEN>sample string 2</TOKEN>
  <VatIncluded>true</VatIncluded>
</UpdateAssetListModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UPDATEASSETLIST_PROPOSAL_RESPONSE
NameDescriptionTypeAdditional information
TOKEN

string

None.

ErrorList

Collection of Error

None.

HasError

boolean

None.

Response Formats

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

Sample:

Sample not available.