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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
Content-Type: text/csv
Content-Length: length

{"customerId":"00000000000000000000000000000000","batchTypeId":0,"batchFileTypeId":0,"batchFileLayoutTypeId":0,"name":"String","fileName":"String","folder":"String","delimiter":0,"dateCreated":"\/Date(-62135596800000-0000)\/","createdById":"00000000000000000000000000000000","isActive":false,"hotlistLineAppenderId":0,"batchFileDefinitionFields":[{"id":0,"batchFileDefinitionId":0,"name":"String","description":"String","length":0,"quoted":false,"fieldIndex":0,"createdById":"00000000000000000000000000000000","dateCreated":"\/Date(-62135596800000-0000)\/","batchFileDefinitionFieldConverters":[{"id":0,"name":"String","className":"String","description":"String"}],"fieldValueLiteral":"String","batchFileActualColumnTypeId":0}],"scofflawImportProcessId":0,"batchFileQueryFilter":{"id":0,"batchFileId":0,"hasPayCreditCC":false,"hasPayCashCP":false,"hasPayDebitDC":false,"hasPayCheckingEC":false,"hasPayECash":false,"hasFineParking3":false,"hasFinePropertyTax12":false,"hasFineRedLight13":false,"hasFineSpeeding23":false}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":0}