ApexERPHost

<back to all web services

CreatePayment

Requires Authentication
The following routes are available for this service:
POST/Warehousing/PreOrders/Payments/
CreatePayment Parameters:
NameParameterData TypeRequiredDescription
PaymentbodyPreOrderPaymentNo
BankAccbodystringNo
PreOrderPayment Parameters:
NameParameterData TypeRequiredDescription
PaymentIDformintNo
OrderIDformintNo
PaymentTypeformbyteNo
AmountformdecimalNo
BookIDformstringNo
BookformBookNo
Book Parameters:
NameParameterData TypeRequiredDescription
BookIDformstringNo
DocsIDformstringNo
OpDetIDformstringNo
CurrencyIDformstringNo
CurrencyformCurrencyNo
RateformdecimalNo
DDateformDateTimeNo
DBformstringNo
DBInfoformAccountInfoNo
CRformstringNo
CRInfoformAccountInfoNo
VGformdecimalNo
VUformdecimalNo
VCformdecimalNo
ContentsformstringNo
BookNoteformstringNo
NumberInformstringNo
NumberOutformstringNo
RecStatusformbyteNo
BlockingformboolNo
CUserformstringNo
ContractIDformint?No
CreateTimeformDateTimeNo
BookTypeformintNo
Currency Parameters:
NameParameterData TypeRequiredDescription
CurrencyIDformstringNo
NameformstringNo
NameEnformstringNo
CodeformstringNo
CurTypeformintNo
ReCalcformboolNo
LastDateformDateTimeNo
RateformdecimalNo
SpendformboolNo
CurrencyCntformintNo
Currency_NformstringNo
LDefaultformboolNo
AccountInfo Parameters:
NameParameterData TypeRequiredDescription
AccformstringNo
NameformstringNo
SNformstringNo
WarehouseAddressformstringNo
AddressformstringNo
PhoneformstringNo
AccWithNameformstringNo
VatTypeformintNo
BranchIdformint?No
CreatePaymentResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformboolNo
NewPaymentIDformint?No

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Warehousing/PreOrders/Payments/ HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreatePayment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Warehousing.Orders">
  <Payment>
    <PaymentID>0</PaymentID>
    <OrderID>0</OrderID>
    <PaymentType>0</PaymentType>
    <Amount>0</Amount>
    <BookID>String</BookID>
    <Book xmlns:d3p1="http://schemas.datacontract.org/2004/07/Apex.Services.Accounting">
      <d3p1:BookID>String</d3p1:BookID>
      <d3p1:DocsID>String</d3p1:DocsID>
      <d3p1:OpDetID>String</d3p1:OpDetID>
      <d3p1:CurrencyID>String</d3p1:CurrencyID>
      <d3p1:Currency>
        <d3p1:CurrencyID>String</d3p1:CurrencyID>
        <d3p1:Name>String</d3p1:Name>
        <d3p1:NameEn>String</d3p1:NameEn>
        <d3p1:Code>String</d3p1:Code>
        <d3p1:CurType>0</d3p1:CurType>
        <d3p1:ReCalc>false</d3p1:ReCalc>
        <d3p1:LastDate>0001-01-01T00:00:00</d3p1:LastDate>
        <d3p1:Rate>0</d3p1:Rate>
        <d3p1:Spend>false</d3p1:Spend>
        <d3p1:CurrencyCnt>0</d3p1:CurrencyCnt>
        <d3p1:Currency_N>String</d3p1:Currency_N>
        <d3p1:LDefault>false</d3p1:LDefault>
      </d3p1:Currency>
      <d3p1:Rate>0</d3p1:Rate>
      <d3p1:DDate>0001-01-01T00:00:00</d3p1:DDate>
      <d3p1:DB>String</d3p1:DB>
      <d3p1:DBInfo>
        <d3p1:Acc>String</d3p1:Acc>
        <d3p1:Name>String</d3p1:Name>
        <d3p1:SN>String</d3p1:SN>
        <d3p1:WarehouseAddress>String</d3p1:WarehouseAddress>
        <d3p1:Address>String</d3p1:Address>
        <d3p1:Phone>String</d3p1:Phone>
        <d3p1:AccWithName>String - String</d3p1:AccWithName>
        <d3p1:VatType>0</d3p1:VatType>
        <d3p1:BranchId>0</d3p1:BranchId>
      </d3p1:DBInfo>
      <d3p1:CR>String</d3p1:CR>
      <d3p1:CRInfo>
        <d3p1:Acc>String</d3p1:Acc>
        <d3p1:Name>String</d3p1:Name>
        <d3p1:SN>String</d3p1:SN>
        <d3p1:WarehouseAddress>String</d3p1:WarehouseAddress>
        <d3p1:Address>String</d3p1:Address>
        <d3p1:Phone>String</d3p1:Phone>
        <d3p1:AccWithName>String - String</d3p1:AccWithName>
        <d3p1:VatType>0</d3p1:VatType>
        <d3p1:BranchId>0</d3p1:BranchId>
      </d3p1:CRInfo>
      <d3p1:VG>0</d3p1:VG>
      <d3p1:VU>0</d3p1:VU>
      <d3p1:VC>0</d3p1:VC>
      <d3p1:Contents>String</d3p1:Contents>
      <d3p1:BookNote>String</d3p1:BookNote>
      <d3p1:NumberIn>String</d3p1:NumberIn>
      <d3p1:NumberOut>String</d3p1:NumberOut>
      <d3p1:RecStatus>0</d3p1:RecStatus>
      <d3p1:Blocking>false</d3p1:Blocking>
      <d3p1:CUser>String</d3p1:CUser>
      <d3p1:ContractID>0</d3p1:ContractID>
      <d3p1:CreateTime>0001-01-01T00:00:00</d3p1:CreateTime>
      <d3p1:BookType>0</d3p1:BookType>
    </Book>
  </Payment>
  <BankAcc>String</BankAcc>
</CreatePayment>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CreatePaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Apex.Services.Warehousing.Orders">
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Result>false</Result>
  <NewPaymentID>0</NewPaymentID>
</CreatePaymentResponse>