﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Reference for  https://ip-ac102d8b:1903/ExpenseService1.svc/PutExpenseCode</title>
    <style>BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; } #content { margin-left: 30px; font-size: .70em; padding-bottom: 2em; } A:link { color: #336699; font-weight: bold; text-decoration: underline; } A:visited { color: #6699cc; font-weight: bold; text-decoration: underline; } A:active { color: #336699; font-weight: bold; text-decoration: underline; } .heading1 { background-color: #003366; border-bottom: #336699 6px solid; color: #ffffff; font-family: Tahoma; font-size: 26px; font-weight: normal;margin: 0em 0em 10px -20px; padding-bottom: 8px; padding-left: 30px;padding-top: 16px;} pre { font-size:small; background-color: #e5e5cc; padding: 5px; font-family: Courier New; margin-top: 0px; border: 1px #f0f0e0 solid; white-space: pre-wrap; white-space: -pre-wrap; word-wrap: break-word; } table { border-collapse: collapse; border-spacing: 0px; font-family: Verdana;} table th { border-right: 2px white solid; border-bottom: 2px white solid; font-weight: bold; background-color: #cecf9c;} table td { border-right: 2px white solid; border-bottom: 2px white solid; background-color: #e5e5cc;}</style>
  </head>
  <body>
    <div id="content">
      <p class="heading1">Reference for  https://ip-ac102d8b:1903/ExpenseService1.svc/PutExpenseCode</p>
      <p>Put the details of the expense code.  If ExpenseCodeParameter1.target.name is specified and not found, an expense code with that name will be created</p>
      <p xmlns="http://www.w3.org/1999/xhtml">
        <b>Url: </b>
        <span class="uri-template">https://ip-ac102d8b:1903/ExpenseService1.svc/PutExpenseCode</span>
      </p>
      <p xmlns="http://www.w3.org/1999/xhtml">
        <b>HTTP Method: </b>
        <span class="method">POST</span>
      </p>
      <table>
        <tr>
          <th>Message direction</th>
          <th>Format</th>
          <th>Body</th>
        </tr>
        <tr>
          <td>Request</td>
          <td>Xml</td>
          <td>
            <a href="#request-xml">Example</a>,<a href="#request-schema">Schema</a></td>
        </tr>
        <tr>
          <td>Request</td>
          <td>Json</td>
          <td>
            <a href="#request-json">Example</a>
          </td>
        </tr>
        <tr>
          <td>Response</td>
          <td>Xml</td>
          <td>
            <a href="#response-xml">Example</a>,<a href="#response-schema">Schema</a></td>
        </tr>
        <tr>
          <td>Response</td>
          <td>Json</td>
          <td>
            <a href="#response-json">Example</a>
          </td>
        </tr>
      </table>
      <p>
        <a name="request-xml">The following is an example request Xml body:</a>
        <pre class="request-xml">&lt;ExpenseCodeParameter1 xmlns="http://replicon.com/"&gt;
  &lt;applicableTaxes&gt;
    &lt;ExpenseCodeTaxParameter1&gt;
      &lt;taxCode&gt;
        &lt;name&gt;String content&lt;/name&gt;
        &lt;uri&gt;http://www.example.com/&lt;/uri&gt;
      &lt;/taxCode&gt;
      &lt;taxFormula&gt;
        &lt;formula&gt;String content&lt;/formula&gt;
      &lt;/taxFormula&gt;
    &lt;/ExpenseCodeTaxParameter1&gt;
    &lt;ExpenseCodeTaxParameter1&gt;
      &lt;taxCode&gt;
        &lt;name&gt;String content&lt;/name&gt;
        &lt;uri&gt;http://www.example.com/&lt;/uri&gt;
      &lt;/taxCode&gt;
      &lt;taxFormula&gt;
        &lt;formula&gt;String content&lt;/formula&gt;
      &lt;/taxFormula&gt;
    &lt;/ExpenseCodeTaxParameter1&gt;
  &lt;/applicableTaxes&gt;
  &lt;code&gt;String content&lt;/code&gt;
  &lt;description&gt;String content&lt;/description&gt;
  &lt;expenseType&gt;
    &lt;expenseTypeUri&gt;http://www.example.com/&lt;/expenseTypeUri&gt;
    &lt;flatAmountConfiguration&gt;
      &lt;grossToNetFormula&gt;
        &lt;formula&gt;String content&lt;/formula&gt;
      &lt;/grossToNetFormula&gt;
    &lt;/flatAmountConfiguration&gt;
    &lt;variableRateConfiguration&gt;
      &lt;amount&gt;
        &lt;amount&gt;12678967.543233&lt;/amount&gt;
        &lt;currencyUri&gt;http://www.example.com/&lt;/currencyUri&gt;
      &lt;/amount&gt;
      &lt;unitName&gt;String content&lt;/unitName&gt;
    &lt;/variableRateConfiguration&gt;
  &lt;/expenseType&gt;
  &lt;isEnabled&gt;true&lt;/isEnabled&gt;
  &lt;name&gt;String content&lt;/name&gt;
  &lt;target&gt;
    &lt;name&gt;String content&lt;/name&gt;
    &lt;uri&gt;http://www.example.com/&lt;/uri&gt;
  &lt;/target&gt;
&lt;/ExpenseCodeParameter1&gt;</pre>
      </p>
      <p>
        <a name="request-json">The following is an example request Json body:</a>
        <pre class="request-json">{
	"applicableTaxes":[{
		"taxCode":{
			"name":"String content",
			"uri":"http:\/\/www.example.com\/"
		},
		"taxFormula":{
			"formula":"String content"
		}
	}],
	"code":"String content",
	"description":"String content",
	"expenseType":{
		"expenseTypeUri":"http:\/\/www.example.com\/",
		"flatAmountConfiguration":{
			"grossToNetFormula":{
				"formula":"String content"
			}
		},
		"variableRateConfiguration":{
			"amount":{
				"amount":12678967.543233,
				"currencyUri":"http:\/\/www.example.com\/"
			},
			"unitName":"String content"
		}
	},
	"isEnabled":true,
	"name":"String content",
	"target":{
		"name":"String content",
		"uri":"http:\/\/www.example.com\/"
	}
}</pre>
      </p>
      <p>
        <a name="response-xml">The following is an example response Xml body:</a>
        <pre class="response-xml">&lt;ExpenseCodeReference1 xmlns="http://replicon.com/"&gt;
  &lt;displayText&gt;String content&lt;/displayText&gt;
  &lt;name&gt;String content&lt;/name&gt;
  &lt;uri&gt;http://www.example.com/&lt;/uri&gt;
&lt;/ExpenseCodeReference1&gt;</pre>
      </p>
      <p>
        <a name="response-json">The following is an example response Json body:</a>
        <pre class="response-json">{
	"displayText":"String content",
	"name":"String content",
	"uri":"http:\/\/www.example.com\/"
}</pre>
      </p>
      <p>
        <a name="request-schema">The following is the request Xml Schema:</a>
        <pre class="request-schema">&lt;xs:schema xmlns:tns="http://replicon.com/" elementFormDefault="qualified" targetNamespace="http://replicon.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;xs:complexType name="ExpenseCodeParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="applicableTaxes" nillable="true" type="tns:ArrayOfExpenseCodeTaxParameter1" /&gt;
      &lt;xs:element minOccurs="0" name="code" nillable="true" type="xs:string" /&gt;
      &lt;xs:element minOccurs="0" name="description" nillable="true" type="xs:string" /&gt;
      &lt;xs:element minOccurs="0" name="expenseType" nillable="true" type="tns:ExpenseCodeExpenseTypeParameter1" /&gt;
      &lt;xs:element minOccurs="0" name="isEnabled" type="xs:boolean" /&gt;
      &lt;xs:element minOccurs="0" name="name" nillable="true" type="xs:string" /&gt;
      &lt;xs:element minOccurs="0" name="target" nillable="true" type="tns:ExpenseCodeTargetParameter1" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ExpenseCodeParameter1" nillable="true" type="tns:ExpenseCodeParameter1" /&gt;
  &lt;xs:complexType name="ArrayOfExpenseCodeTaxParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" maxOccurs="unbounded" name="ExpenseCodeTaxParameter1" nillable="true" type="tns:ExpenseCodeTaxParameter1" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ArrayOfExpenseCodeTaxParameter1" nillable="true" type="tns:ArrayOfExpenseCodeTaxParameter1" /&gt;
  &lt;xs:complexType name="ExpenseCodeTaxParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="taxCode" nillable="true" type="tns:TaxCodeTargetParameter1" /&gt;
      &lt;xs:element minOccurs="0" name="taxFormula" nillable="true" type="tns:TaxCodeFormulaParameter1" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ExpenseCodeTaxParameter1" nillable="true" type="tns:ExpenseCodeTaxParameter1" /&gt;
  &lt;xs:complexType name="TaxCodeTargetParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="name" nillable="true" type="xs:string" /&gt;
      &lt;xs:element minOccurs="0" name="uri" nillable="true" type="xs:anyURI" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="TaxCodeTargetParameter1" nillable="true" type="tns:TaxCodeTargetParameter1" /&gt;
  &lt;xs:complexType name="TaxCodeFormulaParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="formula" nillable="true" type="xs:string" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="TaxCodeFormulaParameter1" nillable="true" type="tns:TaxCodeFormulaParameter1" /&gt;
  &lt;xs:complexType name="ExpenseCodeExpenseTypeParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="expenseTypeUri" nillable="true" type="xs:anyURI" /&gt;
      &lt;xs:element minOccurs="0" name="flatAmountConfiguration" nillable="true" type="tns:ExpenseCodeFlatAmountConfigurationParameter1" /&gt;
      &lt;xs:element minOccurs="0" name="variableRateConfiguration" nillable="true" type="tns:ExpenseCodeVariableRateConfigurationParameter1" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ExpenseCodeExpenseTypeParameter1" nillable="true" type="tns:ExpenseCodeExpenseTypeParameter1" /&gt;
  &lt;xs:complexType name="ExpenseCodeFlatAmountConfigurationParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="grossToNetFormula" nillable="true" type="tns:ExpenseCodeFormulaParameter1" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ExpenseCodeFlatAmountConfigurationParameter1" nillable="true" type="tns:ExpenseCodeFlatAmountConfigurationParameter1" /&gt;
  &lt;xs:complexType name="ExpenseCodeFormulaParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="formula" nillable="true" type="xs:string" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ExpenseCodeFormulaParameter1" nillable="true" type="tns:ExpenseCodeFormulaParameter1" /&gt;
  &lt;xs:complexType name="ExpenseCodeVariableRateConfigurationParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element name="amount" nillable="true" type="tns:MoneyParameter1" /&gt;
      &lt;xs:element minOccurs="0" name="unitName" nillable="true" type="xs:string" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ExpenseCodeVariableRateConfigurationParameter1" nillable="true" type="tns:ExpenseCodeVariableRateConfigurationParameter1" /&gt;
  &lt;xs:complexType name="MoneyParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element name="amount" type="xs:decimal" /&gt;
      &lt;xs:element name="currencyUri" nillable="true" type="xs:anyURI" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="MoneyParameter1" nillable="true" type="tns:MoneyParameter1" /&gt;
  &lt;xs:complexType name="ExpenseCodeTargetParameter1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="name" nillable="true" type="xs:string" /&gt;
      &lt;xs:element minOccurs="0" name="uri" nillable="true" type="xs:anyURI" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ExpenseCodeTargetParameter1" nillable="true" type="tns:ExpenseCodeTargetParameter1" /&gt;
&lt;/xs:schema&gt;</pre>
      </p>
      <p>
        <a name="request-schema">Additional request Xml Schemas:</a>
        <pre class="request-schema">&lt;xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;xs:element name="anyType" nillable="true" type="xs:anyType" /&gt;
  &lt;xs:element name="anyURI" nillable="true" type="xs:anyURI" /&gt;
  &lt;xs:element name="base64Binary" nillable="true" type="xs:base64Binary" /&gt;
  &lt;xs:element name="boolean" nillable="true" type="xs:boolean" /&gt;
  &lt;xs:element name="byte" nillable="true" type="xs:byte" /&gt;
  &lt;xs:element name="dateTime" nillable="true" type="xs:dateTime" /&gt;
  &lt;xs:element name="decimal" nillable="true" type="xs:decimal" /&gt;
  &lt;xs:element name="double" nillable="true" type="xs:double" /&gt;
  &lt;xs:element name="float" nillable="true" type="xs:float" /&gt;
  &lt;xs:element name="int" nillable="true" type="xs:int" /&gt;
  &lt;xs:element name="long" nillable="true" type="xs:long" /&gt;
  &lt;xs:element name="QName" nillable="true" type="xs:QName" /&gt;
  &lt;xs:element name="short" nillable="true" type="xs:short" /&gt;
  &lt;xs:element name="string" nillable="true" type="xs:string" /&gt;
  &lt;xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" /&gt;
  &lt;xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" /&gt;
  &lt;xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" /&gt;
  &lt;xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" /&gt;
  &lt;xs:element name="char" nillable="true" type="tns:char" /&gt;
  &lt;xs:simpleType name="char"&gt;
    &lt;xs:restriction base="xs:int" /&gt;
  &lt;/xs:simpleType&gt;
  &lt;xs:element name="duration" nillable="true" type="tns:duration" /&gt;
  &lt;xs:simpleType name="duration"&gt;
    &lt;xs:restriction base="xs:duration"&gt;
      &lt;xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" /&gt;
      &lt;xs:minInclusive value="-P10675199DT2H48M5.4775808S" /&gt;
      &lt;xs:maxInclusive value="P10675199DT2H48M5.4775807S" /&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  &lt;xs:element name="guid" nillable="true" type="tns:guid" /&gt;
  &lt;xs:simpleType name="guid"&gt;
    &lt;xs:restriction base="xs:string"&gt;
      &lt;xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" /&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  &lt;xs:attribute name="FactoryType" type="xs:QName" /&gt;
  &lt;xs:attribute name="Id" type="xs:ID" /&gt;
  &lt;xs:attribute name="Ref" type="xs:IDREF" /&gt;
&lt;/xs:schema&gt;</pre>
      </p>
      <p>
        <pre class="request-schema">&lt;tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;tns:element name="schema"&gt;
    &lt;tns:complexType /&gt;
  &lt;/tns:element&gt;
&lt;/tns:schema&gt;</pre>
      </p>
      <p>
        <a name="response-schema">The following is the response Xml Schema:</a>
        <pre class="response-schema">&lt;xs:schema xmlns:tns="http://replicon.com/" elementFormDefault="qualified" targetNamespace="http://replicon.com/" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;xs:complexType name="ExpenseCodeReference1"&gt;
    &lt;xs:sequence&gt;
      &lt;xs:element minOccurs="0" name="displayText" nillable="true" type="xs:string" /&gt;
      &lt;xs:element minOccurs="0" name="name" nillable="true" type="xs:string" /&gt;
      &lt;xs:element minOccurs="0" name="uri" nillable="true" type="xs:anyURI" /&gt;
    &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:element name="ExpenseCodeReference1" nillable="true" type="tns:ExpenseCodeReference1" /&gt;
&lt;/xs:schema&gt;</pre>
      </p>
      <p>
        <a name="response-schema">Additional response Xml Schemas:</a>
        <pre class="response-schema">&lt;xs:schema xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;xs:element name="anyType" nillable="true" type="xs:anyType" /&gt;
  &lt;xs:element name="anyURI" nillable="true" type="xs:anyURI" /&gt;
  &lt;xs:element name="base64Binary" nillable="true" type="xs:base64Binary" /&gt;
  &lt;xs:element name="boolean" nillable="true" type="xs:boolean" /&gt;
  &lt;xs:element name="byte" nillable="true" type="xs:byte" /&gt;
  &lt;xs:element name="dateTime" nillable="true" type="xs:dateTime" /&gt;
  &lt;xs:element name="decimal" nillable="true" type="xs:decimal" /&gt;
  &lt;xs:element name="double" nillable="true" type="xs:double" /&gt;
  &lt;xs:element name="float" nillable="true" type="xs:float" /&gt;
  &lt;xs:element name="int" nillable="true" type="xs:int" /&gt;
  &lt;xs:element name="long" nillable="true" type="xs:long" /&gt;
  &lt;xs:element name="QName" nillable="true" type="xs:QName" /&gt;
  &lt;xs:element name="short" nillable="true" type="xs:short" /&gt;
  &lt;xs:element name="string" nillable="true" type="xs:string" /&gt;
  &lt;xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte" /&gt;
  &lt;xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt" /&gt;
  &lt;xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong" /&gt;
  &lt;xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort" /&gt;
  &lt;xs:element name="char" nillable="true" type="tns:char" /&gt;
  &lt;xs:simpleType name="char"&gt;
    &lt;xs:restriction base="xs:int" /&gt;
  &lt;/xs:simpleType&gt;
  &lt;xs:element name="duration" nillable="true" type="tns:duration" /&gt;
  &lt;xs:simpleType name="duration"&gt;
    &lt;xs:restriction base="xs:duration"&gt;
      &lt;xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?" /&gt;
      &lt;xs:minInclusive value="-P10675199DT2H48M5.4775808S" /&gt;
      &lt;xs:maxInclusive value="P10675199DT2H48M5.4775807S" /&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  &lt;xs:element name="guid" nillable="true" type="tns:guid" /&gt;
  &lt;xs:simpleType name="guid"&gt;
    &lt;xs:restriction base="xs:string"&gt;
      &lt;xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}" /&gt;
    &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  &lt;xs:attribute name="FactoryType" type="xs:QName" /&gt;
  &lt;xs:attribute name="Id" type="xs:ID" /&gt;
  &lt;xs:attribute name="Ref" type="xs:IDREF" /&gt;
&lt;/xs:schema&gt;</pre>
      </p>
      <p>
        <pre class="response-schema">&lt;tns:schema targetNamespace="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;tns:element name="schema"&gt;
    &lt;tns:complexType /&gt;
  &lt;/tns:element&gt;
&lt;/tns:schema&gt;</pre>
      </p>
    </div>
  </body>
</html>