CMSWebService


Click here for a complete list of operations.

InsertExpense

Insert Expenses

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /CMSWebService.asmx HTTP/1.1
Host: posservicev21t24.imarketvend.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://microsoft.com/webservices/InsertExpense"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <AuthSoapHd xmlns="http://microsoft.com/webservices/">
      <strUserName>string</strUserName>
      <strPassword>string</strPassword>
    </AuthSoapHd>
  </soap:Header>
  <soap:Body>
    <InsertExpense xmlns="http://microsoft.com/webservices/">
      <refCompanyId>string</refCompanyId>
      <refSellerId>string</refSellerId>
      <refUserId>string</refUserId>
      <refStoreId>string</refStoreId>
      <obj>
        <ExpenseId>string</ExpenseId>
        <ReferenceNo>string</ReferenceNo>
        <refExpenseType>string</refExpenseType>
        <refPayeeId>string</refPayeeId>
        <refAccountId>string</refAccountId>
        <IsPayeeCustomer>string</IsPayeeCustomer>
        <IsPayeeVendor>string</IsPayeeVendor>
        <Total>string</Total>
        <refPaymentMethodId>string</refPaymentMethodId>
        <Memo>string</Memo>
        <PaymentDate>string</PaymentDate>
        <refBankId>string</refBankId>
        <ExpenseDetail>
          <ExpenseDetail>
            <ExpenseDetailId>int</ExpenseDetailId>
            <AccountId>string</AccountId>
            <refAccountId>string</refAccountId>
            <Information>string</Information>
            <Amount>string</Amount>
            <DiscountAmt>string</DiscountAmt>
            <DiscountPercent>string</DiscountPercent>
            <refVatClassId>string</refVatClassId>
            <VatPercent>string</VatPercent>
            <VatAmt>string</VatAmt>
            <itemDiscountType>string</itemDiscountType>
            <itemDiscountAmount>string</itemDiscountAmount>
            <Subtotal>string</Subtotal>
            <Total>string</Total>
            <IsDeductableTax>string</IsDeductableTax>
          </ExpenseDetail>
          <ExpenseDetail>
            <ExpenseDetailId>int</ExpenseDetailId>
            <AccountId>string</AccountId>
            <refAccountId>string</refAccountId>
            <Information>string</Information>
            <Amount>string</Amount>
            <DiscountAmt>string</DiscountAmt>
            <DiscountPercent>string</DiscountPercent>
            <refVatClassId>string</refVatClassId>
            <VatPercent>string</VatPercent>
            <VatAmt>string</VatAmt>
            <itemDiscountType>string</itemDiscountType>
            <itemDiscountAmount>string</itemDiscountAmount>
            <Subtotal>string</Subtotal>
            <Total>string</Total>
            <IsDeductableTax>string</IsDeductableTax>
          </ExpenseDetail>
        </ExpenseDetail>
      </obj>
      <dsInvoiceItem>
        <xsd:schema>schema</xsd:schema>xml</dsInvoiceItem>
      <LanguageId>string</LanguageId>
      <projectid>string</projectid>
      <CreateDate>string</CreateDate>
    </InsertExpense>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <InsertExpenseResponse xmlns="http://microsoft.com/webservices/">
      <InsertExpenseResult>int</InsertExpenseResult>
    </InsertExpenseResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /CMSWebService.asmx HTTP/1.1
Host: posservicev21t24.imarketvend.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <AuthSoapHd xmlns="http://microsoft.com/webservices/">
      <strUserName>string</strUserName>
      <strPassword>string</strPassword>
    </AuthSoapHd>
  </soap12:Header>
  <soap12:Body>
    <InsertExpense xmlns="http://microsoft.com/webservices/">
      <refCompanyId>string</refCompanyId>
      <refSellerId>string</refSellerId>
      <refUserId>string</refUserId>
      <refStoreId>string</refStoreId>
      <obj>
        <ExpenseId>string</ExpenseId>
        <ReferenceNo>string</ReferenceNo>
        <refExpenseType>string</refExpenseType>
        <refPayeeId>string</refPayeeId>
        <refAccountId>string</refAccountId>
        <IsPayeeCustomer>string</IsPayeeCustomer>
        <IsPayeeVendor>string</IsPayeeVendor>
        <Total>string</Total>
        <refPaymentMethodId>string</refPaymentMethodId>
        <Memo>string</Memo>
        <PaymentDate>string</PaymentDate>
        <refBankId>string</refBankId>
        <ExpenseDetail>
          <ExpenseDetail>
            <ExpenseDetailId>int</ExpenseDetailId>
            <AccountId>string</AccountId>
            <refAccountId>string</refAccountId>
            <Information>string</Information>
            <Amount>string</Amount>
            <DiscountAmt>string</DiscountAmt>
            <DiscountPercent>string</DiscountPercent>
            <refVatClassId>string</refVatClassId>
            <VatPercent>string</VatPercent>
            <VatAmt>string</VatAmt>
            <itemDiscountType>string</itemDiscountType>
            <itemDiscountAmount>string</itemDiscountAmount>
            <Subtotal>string</Subtotal>
            <Total>string</Total>
            <IsDeductableTax>string</IsDeductableTax>
          </ExpenseDetail>
          <ExpenseDetail>
            <ExpenseDetailId>int</ExpenseDetailId>
            <AccountId>string</AccountId>
            <refAccountId>string</refAccountId>
            <Information>string</Information>
            <Amount>string</Amount>
            <DiscountAmt>string</DiscountAmt>
            <DiscountPercent>string</DiscountPercent>
            <refVatClassId>string</refVatClassId>
            <VatPercent>string</VatPercent>
            <VatAmt>string</VatAmt>
            <itemDiscountType>string</itemDiscountType>
            <itemDiscountAmount>string</itemDiscountAmount>
            <Subtotal>string</Subtotal>
            <Total>string</Total>
            <IsDeductableTax>string</IsDeductableTax>
          </ExpenseDetail>
        </ExpenseDetail>
      </obj>
      <dsInvoiceItem>
        <xsd:schema>schema</xsd:schema>xml</dsInvoiceItem>
      <LanguageId>string</LanguageId>
      <projectid>string</projectid>
      <CreateDate>string</CreateDate>
    </InsertExpense>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <InsertExpenseResponse xmlns="http://microsoft.com/webservices/">
      <InsertExpenseResult>int</InsertExpenseResult>
    </InsertExpenseResponse>
  </soap12:Body>
</soap12:Envelope>