Journal templates
Import journal template mappings
Bulk-import pay element and control account mappings into a template.
POST
/
templates
/
{templateId}
/
imports
/
mappings
Import journal template mappings
curl --request POST \
--url https://api.sandbox.flowpayroll.ai/v1/journal/templates/{templateId}/imports/mappings \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--header 'X-Org-Id: <api-key>' \
--data '
{
"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>"
}
]
}
'import requests
url = "https://api.sandbox.flowpayroll.ai/v1/journal/templates/{templateId}/imports/mappings"
payload = {
"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>"
}
]
}
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({
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>'
}
]
})
};
fetch('https://api.sandbox.flowpayroll.ai/v1/journal/templates/{templateId}/imports/mappings', 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/{templateId}/imports/mappings",
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([
'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>'
]
]
]),
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/{templateId}/imports/mappings"
payload := strings.NewReader("{\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}")
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/{templateId}/imports/mappings")
.header("X-Auth-Token", "<api-key>")
.header("X-Org-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.flowpayroll.ai/v1/journal/templates/{templateId}/imports/mappings")
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 \"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}"
response = http.request(request)
puts response.read_body{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": null
}
]
},
"content": {
"data": {
"payElementMappingsWritten": 123,
"controlAccountMappingsWritten": 123,
"splitDimensionsWritten": 123,
"splitValueMappingsWritten": 123,
"errors": [
{
"section": "<string>",
"rowIndex": 123,
"reason": "<string>",
"reasonToken": "<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
}
]
}
]
}{
"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).
Path Parameters
Body
application/json
Was this page helpful?
⌘I
Import journal template mappings
curl --request POST \
--url https://api.sandbox.flowpayroll.ai/v1/journal/templates/{templateId}/imports/mappings \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--header 'X-Org-Id: <api-key>' \
--data '
{
"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>"
}
]
}
'import requests
url = "https://api.sandbox.flowpayroll.ai/v1/journal/templates/{templateId}/imports/mappings"
payload = {
"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>"
}
]
}
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({
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>'
}
]
})
};
fetch('https://api.sandbox.flowpayroll.ai/v1/journal/templates/{templateId}/imports/mappings', 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/{templateId}/imports/mappings",
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([
'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>'
]
]
]),
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/{templateId}/imports/mappings"
payload := strings.NewReader("{\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}")
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/{templateId}/imports/mappings")
.header("X-Auth-Token", "<api-key>")
.header("X-Org-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\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}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.flowpayroll.ai/v1/journal/templates/{templateId}/imports/mappings")
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 \"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}"
response = http.request(request)
puts response.read_body{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": null
}
]
},
"content": {
"data": {
"payElementMappingsWritten": 123,
"controlAccountMappingsWritten": 123,
"splitDimensionsWritten": 123,
"splitValueMappingsWritten": 123,
"errors": [
{
"section": "<string>",
"rowIndex": 123,
"reason": "<string>",
"reasonToken": "<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
}
]
}
]
}{
"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
}
]
}
]
}