Journal templates
Import a journal template
Create a journal template from a previously exported definition.
POST
/
templates
/
import
Import a journal template
curl --request POST \
--url https://api.sandbox.flowpayroll.ai/v1/journal/templates/import \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--header 'X-Org-Id: <api-key>' \
--data '
{
"package": {
"formatVersion": 123,
"exportedFromOrganisationId": "<string>",
"exportedAt": "<string>",
"template": {
"name": "<string>",
"description": "<string>",
"mergeMatchingNominals": true,
"swapTracking1And2": true,
"narrationTemplate": "<string>",
"fallbackSplitValue": "<string>",
"accountCodeSeparator": "<string>",
"unmappedPayElementAccountCode": "<string>",
"groupByEmployee": true,
"pdfOptionsOverride": {
"orientation": "<string>",
"brandingTitle": "<string>",
"dateFormat": "<string>",
"narrationTemplate": "<string>",
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"grouped": true,
"trackingTransfersAccountCode": "<string>",
"accountNames": {}
},
"csvOptionsOverride": {
"dateFormat": "<string>",
"signedAmount": true,
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"trackingTransfersAccountCode": "<string>",
"accountNames": {},
"xeroDepartmentInDescription": true,
"unsplitLabel": "<string>"
},
"csvPresetKey": "<string>",
"pdfPresetKey": "<string>"
},
"payElementMappings": [
{
"payElementId": "<string>",
"accountCode": "<string>",
"description": "<string>",
"taxCode": "<string>",
"groupAs": "<string>",
"excludeFromSplit": true
}
],
"controlAccountMappings": [
{
"account": "<string>",
"accountCode": "<string>",
"description": "<string>",
"taxCode": "<string>",
"groupAs": "<string>",
"creditAccountCode": "<string>",
"creditGroupAs": "<string>"
}
],
"splitDimensions": [
{
"sequence": 123,
"source": "<string>",
"tagGroupKey": "<string>",
"tagName": "<string>",
"displayName": "<string>",
"accountCodePlacement": "<string>",
"fallbackTagGroupKey": "<string>",
"fallbackTagName": "<string>"
}
],
"splitValueMappings": [
{
"dimensionSequence": 123,
"splitValueKey": "<string>",
"displayName": "<string>",
"accountSegment": "<string>",
"employerCostsAccountSegment": "<string>",
"deductionAccountSegment": "<string>"
}
]
},
"name": "<string>",
"linkedPayrollConfigIds": [
"<string>"
],
"isDefault": true
}
'import requests
url = "https://api.sandbox.flowpayroll.ai/v1/journal/templates/import"
payload = {
"package": {
"formatVersion": 123,
"exportedFromOrganisationId": "<string>",
"exportedAt": "<string>",
"template": {
"name": "<string>",
"description": "<string>",
"mergeMatchingNominals": True,
"swapTracking1And2": True,
"narrationTemplate": "<string>",
"fallbackSplitValue": "<string>",
"accountCodeSeparator": "<string>",
"unmappedPayElementAccountCode": "<string>",
"groupByEmployee": True,
"pdfOptionsOverride": {
"orientation": "<string>",
"brandingTitle": "<string>",
"dateFormat": "<string>",
"narrationTemplate": "<string>",
"columns": ["<string>"],
"includeTotalsRow": True,
"referenceFormat": "<string>",
"columnHeaders": {},
"grouped": True,
"trackingTransfersAccountCode": "<string>",
"accountNames": {}
},
"csvOptionsOverride": {
"dateFormat": "<string>",
"signedAmount": True,
"columns": ["<string>"],
"includeTotalsRow": True,
"referenceFormat": "<string>",
"columnHeaders": {},
"trackingTransfersAccountCode": "<string>",
"accountNames": {},
"xeroDepartmentInDescription": True,
"unsplitLabel": "<string>"
},
"csvPresetKey": "<string>",
"pdfPresetKey": "<string>"
},
"payElementMappings": [
{
"payElementId": "<string>",
"accountCode": "<string>",
"description": "<string>",
"taxCode": "<string>",
"groupAs": "<string>",
"excludeFromSplit": True
}
],
"controlAccountMappings": [
{
"account": "<string>",
"accountCode": "<string>",
"description": "<string>",
"taxCode": "<string>",
"groupAs": "<string>",
"creditAccountCode": "<string>",
"creditGroupAs": "<string>"
}
],
"splitDimensions": [
{
"sequence": 123,
"source": "<string>",
"tagGroupKey": "<string>",
"tagName": "<string>",
"displayName": "<string>",
"accountCodePlacement": "<string>",
"fallbackTagGroupKey": "<string>",
"fallbackTagName": "<string>"
}
],
"splitValueMappings": [
{
"dimensionSequence": 123,
"splitValueKey": "<string>",
"displayName": "<string>",
"accountSegment": "<string>",
"employerCostsAccountSegment": "<string>",
"deductionAccountSegment": "<string>"
}
]
},
"name": "<string>",
"linkedPayrollConfigIds": ["<string>"],
"isDefault": True
}
headers = {
"X-Auth-Token": "<api-key>",
"X-Org-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Auth-Token': '<api-key>',
'X-Org-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
package: {
formatVersion: 123,
exportedFromOrganisationId: '<string>',
exportedAt: '<string>',
template: {
name: '<string>',
description: '<string>',
mergeMatchingNominals: true,
swapTracking1And2: true,
narrationTemplate: '<string>',
fallbackSplitValue: '<string>',
accountCodeSeparator: '<string>',
unmappedPayElementAccountCode: '<string>',
groupByEmployee: true,
pdfOptionsOverride: {
orientation: '<string>',
brandingTitle: '<string>',
dateFormat: '<string>',
narrationTemplate: '<string>',
columns: ['<string>'],
includeTotalsRow: true,
referenceFormat: '<string>',
columnHeaders: {},
grouped: true,
trackingTransfersAccountCode: '<string>',
accountNames: {}
},
csvOptionsOverride: {
dateFormat: '<string>',
signedAmount: true,
columns: ['<string>'],
includeTotalsRow: true,
referenceFormat: '<string>',
columnHeaders: {},
trackingTransfersAccountCode: '<string>',
accountNames: {},
xeroDepartmentInDescription: true,
unsplitLabel: '<string>'
},
csvPresetKey: '<string>',
pdfPresetKey: '<string>'
},
payElementMappings: [
{
payElementId: '<string>',
accountCode: '<string>',
description: '<string>',
taxCode: '<string>',
groupAs: '<string>',
excludeFromSplit: true
}
],
controlAccountMappings: [
{
account: '<string>',
accountCode: '<string>',
description: '<string>',
taxCode: '<string>',
groupAs: '<string>',
creditAccountCode: '<string>',
creditGroupAs: '<string>'
}
],
splitDimensions: [
{
sequence: 123,
source: '<string>',
tagGroupKey: '<string>',
tagName: '<string>',
displayName: '<string>',
accountCodePlacement: '<string>',
fallbackTagGroupKey: '<string>',
fallbackTagName: '<string>'
}
],
splitValueMappings: [
{
dimensionSequence: 123,
splitValueKey: '<string>',
displayName: '<string>',
accountSegment: '<string>',
employerCostsAccountSegment: '<string>',
deductionAccountSegment: '<string>'
}
]
},
name: '<string>',
linkedPayrollConfigIds: ['<string>'],
isDefault: true
})
};
fetch('https://api.sandbox.flowpayroll.ai/v1/journal/templates/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.flowpayroll.ai/v1/journal/templates/import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'package' => [
'formatVersion' => 123,
'exportedFromOrganisationId' => '<string>',
'exportedAt' => '<string>',
'template' => [
'name' => '<string>',
'description' => '<string>',
'mergeMatchingNominals' => true,
'swapTracking1And2' => true,
'narrationTemplate' => '<string>',
'fallbackSplitValue' => '<string>',
'accountCodeSeparator' => '<string>',
'unmappedPayElementAccountCode' => '<string>',
'groupByEmployee' => true,
'pdfOptionsOverride' => [
'orientation' => '<string>',
'brandingTitle' => '<string>',
'dateFormat' => '<string>',
'narrationTemplate' => '<string>',
'columns' => [
'<string>'
],
'includeTotalsRow' => true,
'referenceFormat' => '<string>',
'columnHeaders' => [
],
'grouped' => true,
'trackingTransfersAccountCode' => '<string>',
'accountNames' => [
]
],
'csvOptionsOverride' => [
'dateFormat' => '<string>',
'signedAmount' => true,
'columns' => [
'<string>'
],
'includeTotalsRow' => true,
'referenceFormat' => '<string>',
'columnHeaders' => [
],
'trackingTransfersAccountCode' => '<string>',
'accountNames' => [
],
'xeroDepartmentInDescription' => true,
'unsplitLabel' => '<string>'
],
'csvPresetKey' => '<string>',
'pdfPresetKey' => '<string>'
],
'payElementMappings' => [
[
'payElementId' => '<string>',
'accountCode' => '<string>',
'description' => '<string>',
'taxCode' => '<string>',
'groupAs' => '<string>',
'excludeFromSplit' => true
]
],
'controlAccountMappings' => [
[
'account' => '<string>',
'accountCode' => '<string>',
'description' => '<string>',
'taxCode' => '<string>',
'groupAs' => '<string>',
'creditAccountCode' => '<string>',
'creditGroupAs' => '<string>'
]
],
'splitDimensions' => [
[
'sequence' => 123,
'source' => '<string>',
'tagGroupKey' => '<string>',
'tagName' => '<string>',
'displayName' => '<string>',
'accountCodePlacement' => '<string>',
'fallbackTagGroupKey' => '<string>',
'fallbackTagName' => '<string>'
]
],
'splitValueMappings' => [
[
'dimensionSequence' => 123,
'splitValueKey' => '<string>',
'displayName' => '<string>',
'accountSegment' => '<string>',
'employerCostsAccountSegment' => '<string>',
'deductionAccountSegment' => '<string>'
]
]
],
'name' => '<string>',
'linkedPayrollConfigIds' => [
'<string>'
],
'isDefault' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Token: <api-key>",
"X-Org-Id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.flowpayroll.ai/v1/journal/templates/import"
payload := strings.NewReader("{\n \"package\": {\n \"formatVersion\": 123,\n \"exportedFromOrganisationId\": \"<string>\",\n \"exportedAt\": \"<string>\",\n \"template\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"mergeMatchingNominals\": true,\n \"swapTracking1And2\": true,\n \"narrationTemplate\": \"<string>\",\n \"fallbackSplitValue\": \"<string>\",\n \"accountCodeSeparator\": \"<string>\",\n \"unmappedPayElementAccountCode\": \"<string>\",\n \"groupByEmployee\": true,\n \"pdfOptionsOverride\": {\n \"orientation\": \"<string>\",\n \"brandingTitle\": \"<string>\",\n \"dateFormat\": \"<string>\",\n \"narrationTemplate\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"grouped\": true,\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {}\n },\n \"csvOptionsOverride\": {\n \"dateFormat\": \"<string>\",\n \"signedAmount\": true,\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {},\n \"xeroDepartmentInDescription\": true,\n \"unsplitLabel\": \"<string>\"\n },\n \"csvPresetKey\": \"<string>\",\n \"pdfPresetKey\": \"<string>\"\n },\n \"payElementMappings\": [\n {\n \"payElementId\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"excludeFromSplit\": true\n }\n ],\n \"controlAccountMappings\": [\n {\n \"account\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"creditAccountCode\": \"<string>\",\n \"creditGroupAs\": \"<string>\"\n }\n ],\n \"splitDimensions\": [\n {\n \"sequence\": 123,\n \"source\": \"<string>\",\n \"tagGroupKey\": \"<string>\",\n \"tagName\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountCodePlacement\": \"<string>\",\n \"fallbackTagGroupKey\": \"<string>\",\n \"fallbackTagName\": \"<string>\"\n }\n ],\n \"splitValueMappings\": [\n {\n \"dimensionSequence\": 123,\n \"splitValueKey\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountSegment\": \"<string>\",\n \"employerCostsAccountSegment\": \"<string>\",\n \"deductionAccountSegment\": \"<string>\"\n }\n ]\n },\n \"name\": \"<string>\",\n \"linkedPayrollConfigIds\": [\n \"<string>\"\n ],\n \"isDefault\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Auth-Token", "<api-key>")
req.Header.Add("X-Org-Id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.flowpayroll.ai/v1/journal/templates/import")
.header("X-Auth-Token", "<api-key>")
.header("X-Org-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"package\": {\n \"formatVersion\": 123,\n \"exportedFromOrganisationId\": \"<string>\",\n \"exportedAt\": \"<string>\",\n \"template\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"mergeMatchingNominals\": true,\n \"swapTracking1And2\": true,\n \"narrationTemplate\": \"<string>\",\n \"fallbackSplitValue\": \"<string>\",\n \"accountCodeSeparator\": \"<string>\",\n \"unmappedPayElementAccountCode\": \"<string>\",\n \"groupByEmployee\": true,\n \"pdfOptionsOverride\": {\n \"orientation\": \"<string>\",\n \"brandingTitle\": \"<string>\",\n \"dateFormat\": \"<string>\",\n \"narrationTemplate\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"grouped\": true,\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {}\n },\n \"csvOptionsOverride\": {\n \"dateFormat\": \"<string>\",\n \"signedAmount\": true,\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {},\n \"xeroDepartmentInDescription\": true,\n \"unsplitLabel\": \"<string>\"\n },\n \"csvPresetKey\": \"<string>\",\n \"pdfPresetKey\": \"<string>\"\n },\n \"payElementMappings\": [\n {\n \"payElementId\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"excludeFromSplit\": true\n }\n ],\n \"controlAccountMappings\": [\n {\n \"account\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"creditAccountCode\": \"<string>\",\n \"creditGroupAs\": \"<string>\"\n }\n ],\n \"splitDimensions\": [\n {\n \"sequence\": 123,\n \"source\": \"<string>\",\n \"tagGroupKey\": \"<string>\",\n \"tagName\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountCodePlacement\": \"<string>\",\n \"fallbackTagGroupKey\": \"<string>\",\n \"fallbackTagName\": \"<string>\"\n }\n ],\n \"splitValueMappings\": [\n {\n \"dimensionSequence\": 123,\n \"splitValueKey\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountSegment\": \"<string>\",\n \"employerCostsAccountSegment\": \"<string>\",\n \"deductionAccountSegment\": \"<string>\"\n }\n ]\n },\n \"name\": \"<string>\",\n \"linkedPayrollConfigIds\": [\n \"<string>\"\n ],\n \"isDefault\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.flowpayroll.ai/v1/journal/templates/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Token"] = '<api-key>'
request["X-Org-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"package\": {\n \"formatVersion\": 123,\n \"exportedFromOrganisationId\": \"<string>\",\n \"exportedAt\": \"<string>\",\n \"template\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"mergeMatchingNominals\": true,\n \"swapTracking1And2\": true,\n \"narrationTemplate\": \"<string>\",\n \"fallbackSplitValue\": \"<string>\",\n \"accountCodeSeparator\": \"<string>\",\n \"unmappedPayElementAccountCode\": \"<string>\",\n \"groupByEmployee\": true,\n \"pdfOptionsOverride\": {\n \"orientation\": \"<string>\",\n \"brandingTitle\": \"<string>\",\n \"dateFormat\": \"<string>\",\n \"narrationTemplate\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"grouped\": true,\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {}\n },\n \"csvOptionsOverride\": {\n \"dateFormat\": \"<string>\",\n \"signedAmount\": true,\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {},\n \"xeroDepartmentInDescription\": true,\n \"unsplitLabel\": \"<string>\"\n },\n \"csvPresetKey\": \"<string>\",\n \"pdfPresetKey\": \"<string>\"\n },\n \"payElementMappings\": [\n {\n \"payElementId\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"excludeFromSplit\": true\n }\n ],\n \"controlAccountMappings\": [\n {\n \"account\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"creditAccountCode\": \"<string>\",\n \"creditGroupAs\": \"<string>\"\n }\n ],\n \"splitDimensions\": [\n {\n \"sequence\": 123,\n \"source\": \"<string>\",\n \"tagGroupKey\": \"<string>\",\n \"tagName\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountCodePlacement\": \"<string>\",\n \"fallbackTagGroupKey\": \"<string>\",\n \"fallbackTagName\": \"<string>\"\n }\n ],\n \"splitValueMappings\": [\n {\n \"dimensionSequence\": 123,\n \"splitValueKey\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountSegment\": \"<string>\",\n \"employerCostsAccountSegment\": \"<string>\",\n \"deductionAccountSegment\": \"<string>\"\n }\n ]\n },\n \"name\": \"<string>\",\n \"linkedPayrollConfigIds\": [\n \"<string>\"\n ],\n \"isDefault\": true\n}"
response = http.request(request)
puts response.read_body{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": null
}
]
},
"content": {
"data": {
"id": "<string>",
"organisationId": "<string>",
"name": "<string>",
"description": "<string>",
"linkedPayrollConfigIds": [
"<string>"
],
"isDefault": true,
"mergeMatchingNominals": true,
"swapTracking1And2": true,
"narrationTemplate": "<string>",
"fallbackSplitValue": "<string>",
"createdBy": "<string>",
"createdDate": "<string>",
"updatedBy": "<string>",
"updatedDate": "<string>",
"pdfOptionsOverride": {
"orientation": "<string>",
"brandingTitle": "<string>",
"dateFormat": "<string>",
"narrationTemplate": "<string>",
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"grouped": true,
"trackingTransfersAccountCode": "<string>",
"accountNames": {}
},
"csvOptionsOverride": {
"dateFormat": "<string>",
"signedAmount": true,
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"trackingTransfersAccountCode": "<string>",
"accountNames": {},
"xeroDepartmentInDescription": true,
"unsplitLabel": "<string>"
},
"resolvedCsvOptions": {
"dateFormat": "<string>",
"signedAmount": true,
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"trackingTransfersAccountCode": "<string>",
"accountNames": {},
"xeroDepartmentInDescription": true,
"unsplitLabel": "<string>"
},
"resolvedPdfOptions": {
"orientation": "<string>",
"brandingTitle": "<string>",
"dateFormat": "<string>",
"narrationTemplate": "<string>",
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"grouped": true,
"trackingTransfersAccountCode": "<string>",
"accountNames": {}
},
"csvPresetKey": "<string>",
"pdfPresetKey": "<string>",
"groupByEmployee": true,
"accountCodeSeparator": "<string>",
"unmappedPayElementAccountCode": "<string>"
},
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
}
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": null
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": null
}
]
},
"content": {
"data": null,
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
}
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": null
}
]
}
]
}Authorizations
FlowPayroll JWT (raw token, no Bearer prefix)
Organisation to scope the request to. Required when the principal can access more than one organisation; optional for single-organisation principals (the authorizer resolves it automatically).
Body
application/json
Was this page helpful?
⌘I
Import a journal template
curl --request POST \
--url https://api.sandbox.flowpayroll.ai/v1/journal/templates/import \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--header 'X-Org-Id: <api-key>' \
--data '
{
"package": {
"formatVersion": 123,
"exportedFromOrganisationId": "<string>",
"exportedAt": "<string>",
"template": {
"name": "<string>",
"description": "<string>",
"mergeMatchingNominals": true,
"swapTracking1And2": true,
"narrationTemplate": "<string>",
"fallbackSplitValue": "<string>",
"accountCodeSeparator": "<string>",
"unmappedPayElementAccountCode": "<string>",
"groupByEmployee": true,
"pdfOptionsOverride": {
"orientation": "<string>",
"brandingTitle": "<string>",
"dateFormat": "<string>",
"narrationTemplate": "<string>",
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"grouped": true,
"trackingTransfersAccountCode": "<string>",
"accountNames": {}
},
"csvOptionsOverride": {
"dateFormat": "<string>",
"signedAmount": true,
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"trackingTransfersAccountCode": "<string>",
"accountNames": {},
"xeroDepartmentInDescription": true,
"unsplitLabel": "<string>"
},
"csvPresetKey": "<string>",
"pdfPresetKey": "<string>"
},
"payElementMappings": [
{
"payElementId": "<string>",
"accountCode": "<string>",
"description": "<string>",
"taxCode": "<string>",
"groupAs": "<string>",
"excludeFromSplit": true
}
],
"controlAccountMappings": [
{
"account": "<string>",
"accountCode": "<string>",
"description": "<string>",
"taxCode": "<string>",
"groupAs": "<string>",
"creditAccountCode": "<string>",
"creditGroupAs": "<string>"
}
],
"splitDimensions": [
{
"sequence": 123,
"source": "<string>",
"tagGroupKey": "<string>",
"tagName": "<string>",
"displayName": "<string>",
"accountCodePlacement": "<string>",
"fallbackTagGroupKey": "<string>",
"fallbackTagName": "<string>"
}
],
"splitValueMappings": [
{
"dimensionSequence": 123,
"splitValueKey": "<string>",
"displayName": "<string>",
"accountSegment": "<string>",
"employerCostsAccountSegment": "<string>",
"deductionAccountSegment": "<string>"
}
]
},
"name": "<string>",
"linkedPayrollConfigIds": [
"<string>"
],
"isDefault": true
}
'import requests
url = "https://api.sandbox.flowpayroll.ai/v1/journal/templates/import"
payload = {
"package": {
"formatVersion": 123,
"exportedFromOrganisationId": "<string>",
"exportedAt": "<string>",
"template": {
"name": "<string>",
"description": "<string>",
"mergeMatchingNominals": True,
"swapTracking1And2": True,
"narrationTemplate": "<string>",
"fallbackSplitValue": "<string>",
"accountCodeSeparator": "<string>",
"unmappedPayElementAccountCode": "<string>",
"groupByEmployee": True,
"pdfOptionsOverride": {
"orientation": "<string>",
"brandingTitle": "<string>",
"dateFormat": "<string>",
"narrationTemplate": "<string>",
"columns": ["<string>"],
"includeTotalsRow": True,
"referenceFormat": "<string>",
"columnHeaders": {},
"grouped": True,
"trackingTransfersAccountCode": "<string>",
"accountNames": {}
},
"csvOptionsOverride": {
"dateFormat": "<string>",
"signedAmount": True,
"columns": ["<string>"],
"includeTotalsRow": True,
"referenceFormat": "<string>",
"columnHeaders": {},
"trackingTransfersAccountCode": "<string>",
"accountNames": {},
"xeroDepartmentInDescription": True,
"unsplitLabel": "<string>"
},
"csvPresetKey": "<string>",
"pdfPresetKey": "<string>"
},
"payElementMappings": [
{
"payElementId": "<string>",
"accountCode": "<string>",
"description": "<string>",
"taxCode": "<string>",
"groupAs": "<string>",
"excludeFromSplit": True
}
],
"controlAccountMappings": [
{
"account": "<string>",
"accountCode": "<string>",
"description": "<string>",
"taxCode": "<string>",
"groupAs": "<string>",
"creditAccountCode": "<string>",
"creditGroupAs": "<string>"
}
],
"splitDimensions": [
{
"sequence": 123,
"source": "<string>",
"tagGroupKey": "<string>",
"tagName": "<string>",
"displayName": "<string>",
"accountCodePlacement": "<string>",
"fallbackTagGroupKey": "<string>",
"fallbackTagName": "<string>"
}
],
"splitValueMappings": [
{
"dimensionSequence": 123,
"splitValueKey": "<string>",
"displayName": "<string>",
"accountSegment": "<string>",
"employerCostsAccountSegment": "<string>",
"deductionAccountSegment": "<string>"
}
]
},
"name": "<string>",
"linkedPayrollConfigIds": ["<string>"],
"isDefault": True
}
headers = {
"X-Auth-Token": "<api-key>",
"X-Org-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Auth-Token': '<api-key>',
'X-Org-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
package: {
formatVersion: 123,
exportedFromOrganisationId: '<string>',
exportedAt: '<string>',
template: {
name: '<string>',
description: '<string>',
mergeMatchingNominals: true,
swapTracking1And2: true,
narrationTemplate: '<string>',
fallbackSplitValue: '<string>',
accountCodeSeparator: '<string>',
unmappedPayElementAccountCode: '<string>',
groupByEmployee: true,
pdfOptionsOverride: {
orientation: '<string>',
brandingTitle: '<string>',
dateFormat: '<string>',
narrationTemplate: '<string>',
columns: ['<string>'],
includeTotalsRow: true,
referenceFormat: '<string>',
columnHeaders: {},
grouped: true,
trackingTransfersAccountCode: '<string>',
accountNames: {}
},
csvOptionsOverride: {
dateFormat: '<string>',
signedAmount: true,
columns: ['<string>'],
includeTotalsRow: true,
referenceFormat: '<string>',
columnHeaders: {},
trackingTransfersAccountCode: '<string>',
accountNames: {},
xeroDepartmentInDescription: true,
unsplitLabel: '<string>'
},
csvPresetKey: '<string>',
pdfPresetKey: '<string>'
},
payElementMappings: [
{
payElementId: '<string>',
accountCode: '<string>',
description: '<string>',
taxCode: '<string>',
groupAs: '<string>',
excludeFromSplit: true
}
],
controlAccountMappings: [
{
account: '<string>',
accountCode: '<string>',
description: '<string>',
taxCode: '<string>',
groupAs: '<string>',
creditAccountCode: '<string>',
creditGroupAs: '<string>'
}
],
splitDimensions: [
{
sequence: 123,
source: '<string>',
tagGroupKey: '<string>',
tagName: '<string>',
displayName: '<string>',
accountCodePlacement: '<string>',
fallbackTagGroupKey: '<string>',
fallbackTagName: '<string>'
}
],
splitValueMappings: [
{
dimensionSequence: 123,
splitValueKey: '<string>',
displayName: '<string>',
accountSegment: '<string>',
employerCostsAccountSegment: '<string>',
deductionAccountSegment: '<string>'
}
]
},
name: '<string>',
linkedPayrollConfigIds: ['<string>'],
isDefault: true
})
};
fetch('https://api.sandbox.flowpayroll.ai/v1/journal/templates/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.flowpayroll.ai/v1/journal/templates/import",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'package' => [
'formatVersion' => 123,
'exportedFromOrganisationId' => '<string>',
'exportedAt' => '<string>',
'template' => [
'name' => '<string>',
'description' => '<string>',
'mergeMatchingNominals' => true,
'swapTracking1And2' => true,
'narrationTemplate' => '<string>',
'fallbackSplitValue' => '<string>',
'accountCodeSeparator' => '<string>',
'unmappedPayElementAccountCode' => '<string>',
'groupByEmployee' => true,
'pdfOptionsOverride' => [
'orientation' => '<string>',
'brandingTitle' => '<string>',
'dateFormat' => '<string>',
'narrationTemplate' => '<string>',
'columns' => [
'<string>'
],
'includeTotalsRow' => true,
'referenceFormat' => '<string>',
'columnHeaders' => [
],
'grouped' => true,
'trackingTransfersAccountCode' => '<string>',
'accountNames' => [
]
],
'csvOptionsOverride' => [
'dateFormat' => '<string>',
'signedAmount' => true,
'columns' => [
'<string>'
],
'includeTotalsRow' => true,
'referenceFormat' => '<string>',
'columnHeaders' => [
],
'trackingTransfersAccountCode' => '<string>',
'accountNames' => [
],
'xeroDepartmentInDescription' => true,
'unsplitLabel' => '<string>'
],
'csvPresetKey' => '<string>',
'pdfPresetKey' => '<string>'
],
'payElementMappings' => [
[
'payElementId' => '<string>',
'accountCode' => '<string>',
'description' => '<string>',
'taxCode' => '<string>',
'groupAs' => '<string>',
'excludeFromSplit' => true
]
],
'controlAccountMappings' => [
[
'account' => '<string>',
'accountCode' => '<string>',
'description' => '<string>',
'taxCode' => '<string>',
'groupAs' => '<string>',
'creditAccountCode' => '<string>',
'creditGroupAs' => '<string>'
]
],
'splitDimensions' => [
[
'sequence' => 123,
'source' => '<string>',
'tagGroupKey' => '<string>',
'tagName' => '<string>',
'displayName' => '<string>',
'accountCodePlacement' => '<string>',
'fallbackTagGroupKey' => '<string>',
'fallbackTagName' => '<string>'
]
],
'splitValueMappings' => [
[
'dimensionSequence' => 123,
'splitValueKey' => '<string>',
'displayName' => '<string>',
'accountSegment' => '<string>',
'employerCostsAccountSegment' => '<string>',
'deductionAccountSegment' => '<string>'
]
]
],
'name' => '<string>',
'linkedPayrollConfigIds' => [
'<string>'
],
'isDefault' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Auth-Token: <api-key>",
"X-Org-Id: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.flowpayroll.ai/v1/journal/templates/import"
payload := strings.NewReader("{\n \"package\": {\n \"formatVersion\": 123,\n \"exportedFromOrganisationId\": \"<string>\",\n \"exportedAt\": \"<string>\",\n \"template\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"mergeMatchingNominals\": true,\n \"swapTracking1And2\": true,\n \"narrationTemplate\": \"<string>\",\n \"fallbackSplitValue\": \"<string>\",\n \"accountCodeSeparator\": \"<string>\",\n \"unmappedPayElementAccountCode\": \"<string>\",\n \"groupByEmployee\": true,\n \"pdfOptionsOverride\": {\n \"orientation\": \"<string>\",\n \"brandingTitle\": \"<string>\",\n \"dateFormat\": \"<string>\",\n \"narrationTemplate\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"grouped\": true,\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {}\n },\n \"csvOptionsOverride\": {\n \"dateFormat\": \"<string>\",\n \"signedAmount\": true,\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {},\n \"xeroDepartmentInDescription\": true,\n \"unsplitLabel\": \"<string>\"\n },\n \"csvPresetKey\": \"<string>\",\n \"pdfPresetKey\": \"<string>\"\n },\n \"payElementMappings\": [\n {\n \"payElementId\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"excludeFromSplit\": true\n }\n ],\n \"controlAccountMappings\": [\n {\n \"account\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"creditAccountCode\": \"<string>\",\n \"creditGroupAs\": \"<string>\"\n }\n ],\n \"splitDimensions\": [\n {\n \"sequence\": 123,\n \"source\": \"<string>\",\n \"tagGroupKey\": \"<string>\",\n \"tagName\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountCodePlacement\": \"<string>\",\n \"fallbackTagGroupKey\": \"<string>\",\n \"fallbackTagName\": \"<string>\"\n }\n ],\n \"splitValueMappings\": [\n {\n \"dimensionSequence\": 123,\n \"splitValueKey\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountSegment\": \"<string>\",\n \"employerCostsAccountSegment\": \"<string>\",\n \"deductionAccountSegment\": \"<string>\"\n }\n ]\n },\n \"name\": \"<string>\",\n \"linkedPayrollConfigIds\": [\n \"<string>\"\n ],\n \"isDefault\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Auth-Token", "<api-key>")
req.Header.Add("X-Org-Id", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sandbox.flowpayroll.ai/v1/journal/templates/import")
.header("X-Auth-Token", "<api-key>")
.header("X-Org-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"package\": {\n \"formatVersion\": 123,\n \"exportedFromOrganisationId\": \"<string>\",\n \"exportedAt\": \"<string>\",\n \"template\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"mergeMatchingNominals\": true,\n \"swapTracking1And2\": true,\n \"narrationTemplate\": \"<string>\",\n \"fallbackSplitValue\": \"<string>\",\n \"accountCodeSeparator\": \"<string>\",\n \"unmappedPayElementAccountCode\": \"<string>\",\n \"groupByEmployee\": true,\n \"pdfOptionsOverride\": {\n \"orientation\": \"<string>\",\n \"brandingTitle\": \"<string>\",\n \"dateFormat\": \"<string>\",\n \"narrationTemplate\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"grouped\": true,\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {}\n },\n \"csvOptionsOverride\": {\n \"dateFormat\": \"<string>\",\n \"signedAmount\": true,\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {},\n \"xeroDepartmentInDescription\": true,\n \"unsplitLabel\": \"<string>\"\n },\n \"csvPresetKey\": \"<string>\",\n \"pdfPresetKey\": \"<string>\"\n },\n \"payElementMappings\": [\n {\n \"payElementId\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"excludeFromSplit\": true\n }\n ],\n \"controlAccountMappings\": [\n {\n \"account\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"creditAccountCode\": \"<string>\",\n \"creditGroupAs\": \"<string>\"\n }\n ],\n \"splitDimensions\": [\n {\n \"sequence\": 123,\n \"source\": \"<string>\",\n \"tagGroupKey\": \"<string>\",\n \"tagName\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountCodePlacement\": \"<string>\",\n \"fallbackTagGroupKey\": \"<string>\",\n \"fallbackTagName\": \"<string>\"\n }\n ],\n \"splitValueMappings\": [\n {\n \"dimensionSequence\": 123,\n \"splitValueKey\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountSegment\": \"<string>\",\n \"employerCostsAccountSegment\": \"<string>\",\n \"deductionAccountSegment\": \"<string>\"\n }\n ]\n },\n \"name\": \"<string>\",\n \"linkedPayrollConfigIds\": [\n \"<string>\"\n ],\n \"isDefault\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.flowpayroll.ai/v1/journal/templates/import")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Auth-Token"] = '<api-key>'
request["X-Org-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"package\": {\n \"formatVersion\": 123,\n \"exportedFromOrganisationId\": \"<string>\",\n \"exportedAt\": \"<string>\",\n \"template\": {\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"mergeMatchingNominals\": true,\n \"swapTracking1And2\": true,\n \"narrationTemplate\": \"<string>\",\n \"fallbackSplitValue\": \"<string>\",\n \"accountCodeSeparator\": \"<string>\",\n \"unmappedPayElementAccountCode\": \"<string>\",\n \"groupByEmployee\": true,\n \"pdfOptionsOverride\": {\n \"orientation\": \"<string>\",\n \"brandingTitle\": \"<string>\",\n \"dateFormat\": \"<string>\",\n \"narrationTemplate\": \"<string>\",\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"grouped\": true,\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {}\n },\n \"csvOptionsOverride\": {\n \"dateFormat\": \"<string>\",\n \"signedAmount\": true,\n \"columns\": [\n \"<string>\"\n ],\n \"includeTotalsRow\": true,\n \"referenceFormat\": \"<string>\",\n \"columnHeaders\": {},\n \"trackingTransfersAccountCode\": \"<string>\",\n \"accountNames\": {},\n \"xeroDepartmentInDescription\": true,\n \"unsplitLabel\": \"<string>\"\n },\n \"csvPresetKey\": \"<string>\",\n \"pdfPresetKey\": \"<string>\"\n },\n \"payElementMappings\": [\n {\n \"payElementId\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"excludeFromSplit\": true\n }\n ],\n \"controlAccountMappings\": [\n {\n \"account\": \"<string>\",\n \"accountCode\": \"<string>\",\n \"description\": \"<string>\",\n \"taxCode\": \"<string>\",\n \"groupAs\": \"<string>\",\n \"creditAccountCode\": \"<string>\",\n \"creditGroupAs\": \"<string>\"\n }\n ],\n \"splitDimensions\": [\n {\n \"sequence\": 123,\n \"source\": \"<string>\",\n \"tagGroupKey\": \"<string>\",\n \"tagName\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountCodePlacement\": \"<string>\",\n \"fallbackTagGroupKey\": \"<string>\",\n \"fallbackTagName\": \"<string>\"\n }\n ],\n \"splitValueMappings\": [\n {\n \"dimensionSequence\": 123,\n \"splitValueKey\": \"<string>\",\n \"displayName\": \"<string>\",\n \"accountSegment\": \"<string>\",\n \"employerCostsAccountSegment\": \"<string>\",\n \"deductionAccountSegment\": \"<string>\"\n }\n ]\n },\n \"name\": \"<string>\",\n \"linkedPayrollConfigIds\": [\n \"<string>\"\n ],\n \"isDefault\": true\n}"
response = http.request(request)
puts response.read_body{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": null
}
]
},
"content": {
"data": {
"id": "<string>",
"organisationId": "<string>",
"name": "<string>",
"description": "<string>",
"linkedPayrollConfigIds": [
"<string>"
],
"isDefault": true,
"mergeMatchingNominals": true,
"swapTracking1And2": true,
"narrationTemplate": "<string>",
"fallbackSplitValue": "<string>",
"createdBy": "<string>",
"createdDate": "<string>",
"updatedBy": "<string>",
"updatedDate": "<string>",
"pdfOptionsOverride": {
"orientation": "<string>",
"brandingTitle": "<string>",
"dateFormat": "<string>",
"narrationTemplate": "<string>",
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"grouped": true,
"trackingTransfersAccountCode": "<string>",
"accountNames": {}
},
"csvOptionsOverride": {
"dateFormat": "<string>",
"signedAmount": true,
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"trackingTransfersAccountCode": "<string>",
"accountNames": {},
"xeroDepartmentInDescription": true,
"unsplitLabel": "<string>"
},
"resolvedCsvOptions": {
"dateFormat": "<string>",
"signedAmount": true,
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"trackingTransfersAccountCode": "<string>",
"accountNames": {},
"xeroDepartmentInDescription": true,
"unsplitLabel": "<string>"
},
"resolvedPdfOptions": {
"orientation": "<string>",
"brandingTitle": "<string>",
"dateFormat": "<string>",
"narrationTemplate": "<string>",
"columns": [
"<string>"
],
"includeTotalsRow": true,
"referenceFormat": "<string>",
"columnHeaders": {},
"grouped": true,
"trackingTransfersAccountCode": "<string>",
"accountNames": {}
},
"csvPresetKey": "<string>",
"pdfPresetKey": "<string>",
"groupByEmployee": true,
"accountCodeSeparator": "<string>",
"unmappedPayElementAccountCode": "<string>"
},
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
}
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": null
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": null
}
]
},
"content": {
"data": null,
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
}
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": null
}
]
}
]
}