| POST | /customers/{customerId}/batchfiledefinitions/{batchFileDefinitionId}/batchrecordproperties | Creates mappings for batch record properties to batch record property reducers and to batch file definition fields. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CustomerId | path | Guid | Yes | The Customer Id. |
| BatchFileDefinitionId | path | int | Yes | The Batch File Definition Id. |
| BatchRecordPropertyReducerMaps | body | List<BatchRecordPropertyReducerMap> | Yes | A list of mappings between batch record property and batch record property reducer. |
| BatchRecordPropertyFieldMaps | body | List<BatchRecordPropertyFieldMap> | Yes | A list of mappings between batch record property and batch file definition field. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BatchRecordPropertyId | form | int | No | |
| BatchRecordPropertyReducerId | form | int | No | |
| CreatedById | form | Guid | No | |
| DateCreated | form | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BatchRecordPropertyId | form | int | No | |
| BatchFileDefinitionFieldId | form | int | No | |
| CreatedById | form | Guid | No | |
| DateCreated | form | DateTime | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /customers/{customerId}/batchfiledefinitions/{batchFileDefinitionId}/batchrecordproperties HTTP/1.1
Host: api.paylock.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"customerId":"00000000000000000000000000000000","batchFileDefinitionId":0,"batchRecordPropertyReducerMaps":[{"batchRecordPropertyId":0,"batchRecordPropertyReducerId":0,"createdById":"00000000000000000000000000000000","dateCreated":"\/Date(-62135596800000-0000)\/"}],"batchRecordPropertyFieldMaps":[{"batchRecordPropertyId":0,"batchFileDefinitionFieldId":0,"createdById":"00000000000000000000000000000000","dateCreated":"\/Date(-62135596800000-0000)\/"}]}