BootView WebApi

<back to all web services

CreateCustomerBatchFileDefinition

The following routes are available for this service:
POST/customers/{customerId}/batchfiledefinitionsCreates a new batch file definition for this customer. Fails if this user does not have access to this customer.
CreateCustomerBatchFileDefinition Parameters:
NameParameterData TypeRequiredDescription
CustomerIdpathGuidYesThe Customer Id.
BatchTypeIdbodyintYesThe Batch Type Id.
BatchFileTypeIdbodyintYesThe Batch File Type Id.
BatchFileLayoutTypeIdbodyintYesThe Batch File Layout Type Id.
NamebodystringYesThe name of the batch file definition.
FileNamebodystringYesThe file name of the batch file definition.
FolderbodystringYesThe folder of the batch file definition.
DelimiterbodyintNoThe delimiter used in the batch file definition.
DateCreatedbodyDateTimeYesThe date/time the definition was created.
CreatedByIdbodyGuidYesThe creator of the batch file definition.
IsActivebodyboolYesWhether the batch file definition is active or not.
HotlistLineAppenderIdbodyintNoThe hotlist line appender id.
BatchFileDefinitionFieldsbodyList<CustomerBatchFileDefinitionField>NoAn array of objects representing the fields of the batch file definition.
ScofflawImportProcessIdbodyintYesThe Scofflaw Batch Process Type Id.
BatchFileQueryFilterbodyCustomerBatchFileQueryFilterNoAn object containing batch file query filters.
CustomerBatchFileDefinitionField Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
BatchFileDefinitionIdformintNo
NameformstringNo
DescriptionformstringNo
LengthformintNo
QuotedformboolNo
FieldIndexformintNo
CreatedByIdformGuidNo
DateCreatedformDateTimeNo
BatchFileDefinitionFieldConvertersformList<BatchFileDefinitionFieldConverter>No
FieldValueLiteralformstringNo
BatchFileActualColumnTypeIdformint?No
BatchFileDefinitionFieldConverter Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
ClassNameformstringNo
DescriptionformstringNo
CustomerBatchFileQueryFilter Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
BatchFileIdformintNo
HasPayCreditCCformboolNo
HasPayCashCPformboolNo
HasPayDebitDCformboolNo
HasPayCheckingECformboolNo
HasPayECashformboolNo
HasFineParking3formboolNo
HasFinePropertyTax12formboolNo
HasFineRedLight13formboolNo
HasFineSpeeding23formboolNo
CreateCustomerBatchFileDefinitionResult Parameters:
NameParameterData TypeRequiredDescription
IdformintNo

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 /customers/{customerId}/batchfiledefinitions HTTP/1.1 
Host: api.paylock.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreateCustomerBatchFileDefinition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel">
  <BatchFileDefinitionFields>
    <CustomerBatchFileDefinitionField>
      <BatchFileActualColumnTypeId>0</BatchFileActualColumnTypeId>
      <BatchFileDefinitionFieldConverters>
        <BatchFileDefinitionFieldConverter>
          <ClassName>String</ClassName>
          <Description>String</Description>
          <Id>0</Id>
          <Name>String</Name>
        </BatchFileDefinitionFieldConverter>
      </BatchFileDefinitionFieldConverters>
      <BatchFileDefinitionId>0</BatchFileDefinitionId>
      <CreatedById>00000000-0000-0000-0000-000000000000</CreatedById>
      <DateCreated>0001-01-01T00:00:00</DateCreated>
      <Description>String</Description>
      <FieldIndex>0</FieldIndex>
      <FieldValueLiteral>String</FieldValueLiteral>
      <Id>0</Id>
      <Length>0</Length>
      <Name>String</Name>
      <Quoted>false</Quoted>
    </CustomerBatchFileDefinitionField>
  </BatchFileDefinitionFields>
  <BatchFileLayoutTypeId>0</BatchFileLayoutTypeId>
  <BatchFileQueryFilter>
    <BatchFileId>0</BatchFileId>
    <HasFineParking3>false</HasFineParking3>
    <HasFinePropertyTax12>false</HasFinePropertyTax12>
    <HasFineRedLight13>false</HasFineRedLight13>
    <HasFineSpeeding23>false</HasFineSpeeding23>
    <HasPayCashCP>false</HasPayCashCP>
    <HasPayCheckingEC>false</HasPayCheckingEC>
    <HasPayCreditCC>false</HasPayCreditCC>
    <HasPayDebitDC>false</HasPayDebitDC>
    <HasPayECash>false</HasPayECash>
    <Id>0</Id>
  </BatchFileQueryFilter>
  <BatchFileTypeId>0</BatchFileTypeId>
  <BatchTypeId>0</BatchTypeId>
  <CreatedById>00000000-0000-0000-0000-000000000000</CreatedById>
  <CustomerId>00000000-0000-0000-0000-000000000000</CustomerId>
  <DateCreated>0001-01-01T00:00:00</DateCreated>
  <Delimiter>0</Delimiter>
  <FileName>String</FileName>
  <Folder>String</Folder>
  <HotlistLineAppenderId>0</HotlistLineAppenderId>
  <IsActive>false</IsActive>
  <Name>String</Name>
  <ScofflawImportProcessId>0</ScofflawImportProcessId>
</CreateCustomerBatchFileDefinition>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CreateCustomerBatchFileDefinitionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BootView.WebApi.ServiceModel">
  <Id>0</Id>
</CreateCustomerBatchFileDefinitionResult>