RTI
Submit EPS manually
Needs permission rti:submit.
Manually submit an EPS (Employer Payment Summary) to HMRC for a specific tax year. The tax year in the path (the year it starts in) picks the shape the body is read in: 2024 and 2025 read SendEpsRequestY2025To2026Dto, 2026 and 2027 read SendEpsRequestY2026To2027Dto. Any other tax year answers 400 hmrcRtiEpsError.
POST
/
rti
/
eps
/
{taxYear}
/
manual
Submit EPS manually
curl --request POST \
--url https://api.sandbox.flowpayroll.ai/v1/rti/eps/{taxYear}/manual \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--header 'X-Org-Id: <api-key>' \
--data '
{
"taxMonth": 123,
"taxYear": 123,
"finalSubmissionDetails": {
"becauseSchemeCeased": true,
"dateSchemeCeased": "2024-04-05",
"forYear": true
},
"noPaymentForPeriod": {
"fromDate": "2025-01-01",
"toDate": "2025-01-31"
},
"periodOfInactivity": {
"fromDate": "2025-01-01",
"toDate": "2025-01-31"
},
"employmentAllowance": {
"isEnabled": true,
"employerSectors": [
"Agriculture",
"Industry"
]
},
"recoverableAmounts": {
"taxMonth": 1,
"smpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sppRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sapRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"shPPRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"spbpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sncpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"cisDeductionsSuffered": 50
},
"apprenticeshipLevy": {
"levyDueYtd": 1000,
"taxMonth": 1,
"annualAllowance": 15000
}
}
'import requests
url = "https://api.sandbox.flowpayroll.ai/v1/rti/eps/{taxYear}/manual"
payload = {
"taxMonth": 123,
"taxYear": 123,
"finalSubmissionDetails": {
"becauseSchemeCeased": True,
"dateSchemeCeased": "2024-04-05",
"forYear": True
},
"noPaymentForPeriod": {
"fromDate": "2025-01-01",
"toDate": "2025-01-31"
},
"periodOfInactivity": {
"fromDate": "2025-01-01",
"toDate": "2025-01-31"
},
"employmentAllowance": {
"isEnabled": True,
"employerSectors": ["Agriculture", "Industry"]
},
"recoverableAmounts": {
"taxMonth": 1,
"smpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sppRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sapRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"shPPRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"spbpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sncpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"cisDeductionsSuffered": 50
},
"apprenticeshipLevy": {
"levyDueYtd": 1000,
"taxMonth": 1,
"annualAllowance": 15000
}
}
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({
taxMonth: 123,
taxYear: 123,
finalSubmissionDetails: {becauseSchemeCeased: true, dateSchemeCeased: '2024-04-05', forYear: true},
noPaymentForPeriod: {fromDate: '2025-01-01', toDate: '2025-01-31'},
periodOfInactivity: {fromDate: '2025-01-01', toDate: '2025-01-31'},
employmentAllowance: {isEnabled: true, employerSectors: ['Agriculture', 'Industry']},
recoverableAmounts: {
taxMonth: 1,
smpRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
sppRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
sapRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
shPPRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
spbpRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
sncpRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
cisDeductionsSuffered: 50
},
apprenticeshipLevy: {levyDueYtd: 1000, taxMonth: 1, annualAllowance: 15000}
})
};
fetch('https://api.sandbox.flowpayroll.ai/v1/rti/eps/{taxYear}/manual', 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/rti/eps/{taxYear}/manual",
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([
'taxMonth' => 123,
'taxYear' => 123,
'finalSubmissionDetails' => [
'becauseSchemeCeased' => true,
'dateSchemeCeased' => '2024-04-05',
'forYear' => true
],
'noPaymentForPeriod' => [
'fromDate' => '2025-01-01',
'toDate' => '2025-01-31'
],
'periodOfInactivity' => [
'fromDate' => '2025-01-01',
'toDate' => '2025-01-31'
],
'employmentAllowance' => [
'isEnabled' => true,
'employerSectors' => [
'Agriculture',
'Industry'
]
],
'recoverableAmounts' => [
'taxMonth' => 1,
'smpRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'sppRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'sapRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'shPPRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'spbpRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'sncpRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'cisDeductionsSuffered' => 50
],
'apprenticeshipLevy' => [
'levyDueYtd' => 1000,
'taxMonth' => 1,
'annualAllowance' => 15000
]
]),
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/rti/eps/{taxYear}/manual"
payload := strings.NewReader("{\n \"taxMonth\": 123,\n \"taxYear\": 123,\n \"finalSubmissionDetails\": {\n \"becauseSchemeCeased\": true,\n \"dateSchemeCeased\": \"2024-04-05\",\n \"forYear\": true\n },\n \"noPaymentForPeriod\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"periodOfInactivity\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"employmentAllowance\": {\n \"isEnabled\": true,\n \"employerSectors\": [\n \"Agriculture\",\n \"Industry\"\n ]\n },\n \"recoverableAmounts\": {\n \"taxMonth\": 1,\n \"smpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sppRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sapRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"shPPRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"spbpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sncpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"cisDeductionsSuffered\": 50\n },\n \"apprenticeshipLevy\": {\n \"levyDueYtd\": 1000,\n \"taxMonth\": 1,\n \"annualAllowance\": 15000\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/rti/eps/{taxYear}/manual")
.header("X-Auth-Token", "<api-key>")
.header("X-Org-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"taxMonth\": 123,\n \"taxYear\": 123,\n \"finalSubmissionDetails\": {\n \"becauseSchemeCeased\": true,\n \"dateSchemeCeased\": \"2024-04-05\",\n \"forYear\": true\n },\n \"noPaymentForPeriod\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"periodOfInactivity\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"employmentAllowance\": {\n \"isEnabled\": true,\n \"employerSectors\": [\n \"Agriculture\",\n \"Industry\"\n ]\n },\n \"recoverableAmounts\": {\n \"taxMonth\": 1,\n \"smpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sppRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sapRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"shPPRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"spbpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sncpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"cisDeductionsSuffered\": 50\n },\n \"apprenticeshipLevy\": {\n \"levyDueYtd\": 1000,\n \"taxMonth\": 1,\n \"annualAllowance\": 15000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.flowpayroll.ai/v1/rti/eps/{taxYear}/manual")
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 \"taxMonth\": 123,\n \"taxYear\": 123,\n \"finalSubmissionDetails\": {\n \"becauseSchemeCeased\": true,\n \"dateSchemeCeased\": \"2024-04-05\",\n \"forYear\": true\n },\n \"noPaymentForPeriod\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"periodOfInactivity\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"employmentAllowance\": {\n \"isEnabled\": true,\n \"employerSectors\": [\n \"Agriculture\",\n \"Industry\"\n ]\n },\n \"recoverableAmounts\": {\n \"taxMonth\": 1,\n \"smpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sppRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sapRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"shPPRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"spbpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sncpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"cisDeductionsSuffered\": 50\n },\n \"apprenticeshipLevy\": {\n \"levyDueYtd\": 1000,\n \"taxMonth\": 1,\n \"annualAllowance\": 15000\n }\n}"
response = http.request(request)
puts response.read_body{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>..."
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": {
"submissionId": "EPS_2025_001",
"taxYear": 2025,
"organisationId": "org_123",
"hmrcEpsReportStatus": "Sent",
"createdDate": "2025-01-01T00:00:00Z",
"createdBy": "user_123",
"updatedDate": "2025-01-02T00:00:00Z",
"updatedBy": "user_456",
"figuresChangedSinceSubmission": false,
"taxMonth": 6,
"submissionBody": "Submission body content",
"correlationID": "corr_123",
"submissionDate": "2025-01-01T00:00:00Z",
"submissionResponse": "Response from HMRC",
"errors": [
"Error message 1",
"Error message 2"
],
"figuresChangedReason": "Pay run 2026-7 unlocked",
"figuresChangedDate": "2026-10-27T09:15:00Z"
}
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}Authorizations
Headers
Body
application/json
- Option 1
- Option 2
Read in the shape of the tax year in the path: SendEpsRequestY2025To2026Dto for 2024/25, 2025/26; SendEpsRequestY2026To2027Dto for 2026/27, 2027/28.
Response
EPS submission preview generated successfully
Was this page helpful?
⌘I
Submit EPS manually
curl --request POST \
--url https://api.sandbox.flowpayroll.ai/v1/rti/eps/{taxYear}/manual \
--header 'Content-Type: application/json' \
--header 'X-Auth-Token: <api-key>' \
--header 'X-Org-Id: <api-key>' \
--data '
{
"taxMonth": 123,
"taxYear": 123,
"finalSubmissionDetails": {
"becauseSchemeCeased": true,
"dateSchemeCeased": "2024-04-05",
"forYear": true
},
"noPaymentForPeriod": {
"fromDate": "2025-01-01",
"toDate": "2025-01-31"
},
"periodOfInactivity": {
"fromDate": "2025-01-01",
"toDate": "2025-01-31"
},
"employmentAllowance": {
"isEnabled": true,
"employerSectors": [
"Agriculture",
"Industry"
]
},
"recoverableAmounts": {
"taxMonth": 1,
"smpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sppRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sapRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"shPPRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"spbpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sncpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"cisDeductionsSuffered": 50
},
"apprenticeshipLevy": {
"levyDueYtd": 1000,
"taxMonth": 1,
"annualAllowance": 15000
}
}
'import requests
url = "https://api.sandbox.flowpayroll.ai/v1/rti/eps/{taxYear}/manual"
payload = {
"taxMonth": 123,
"taxYear": 123,
"finalSubmissionDetails": {
"becauseSchemeCeased": True,
"dateSchemeCeased": "2024-04-05",
"forYear": True
},
"noPaymentForPeriod": {
"fromDate": "2025-01-01",
"toDate": "2025-01-31"
},
"periodOfInactivity": {
"fromDate": "2025-01-01",
"toDate": "2025-01-31"
},
"employmentAllowance": {
"isEnabled": True,
"employerSectors": ["Agriculture", "Industry"]
},
"recoverableAmounts": {
"taxMonth": 1,
"smpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sppRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sapRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"shPPRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"spbpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"sncpRecovered": {
"reclaimed": 100,
"nicCompensationRecovered": 50
},
"cisDeductionsSuffered": 50
},
"apprenticeshipLevy": {
"levyDueYtd": 1000,
"taxMonth": 1,
"annualAllowance": 15000
}
}
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({
taxMonth: 123,
taxYear: 123,
finalSubmissionDetails: {becauseSchemeCeased: true, dateSchemeCeased: '2024-04-05', forYear: true},
noPaymentForPeriod: {fromDate: '2025-01-01', toDate: '2025-01-31'},
periodOfInactivity: {fromDate: '2025-01-01', toDate: '2025-01-31'},
employmentAllowance: {isEnabled: true, employerSectors: ['Agriculture', 'Industry']},
recoverableAmounts: {
taxMonth: 1,
smpRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
sppRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
sapRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
shPPRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
spbpRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
sncpRecovered: {reclaimed: 100, nicCompensationRecovered: 50},
cisDeductionsSuffered: 50
},
apprenticeshipLevy: {levyDueYtd: 1000, taxMonth: 1, annualAllowance: 15000}
})
};
fetch('https://api.sandbox.flowpayroll.ai/v1/rti/eps/{taxYear}/manual', 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/rti/eps/{taxYear}/manual",
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([
'taxMonth' => 123,
'taxYear' => 123,
'finalSubmissionDetails' => [
'becauseSchemeCeased' => true,
'dateSchemeCeased' => '2024-04-05',
'forYear' => true
],
'noPaymentForPeriod' => [
'fromDate' => '2025-01-01',
'toDate' => '2025-01-31'
],
'periodOfInactivity' => [
'fromDate' => '2025-01-01',
'toDate' => '2025-01-31'
],
'employmentAllowance' => [
'isEnabled' => true,
'employerSectors' => [
'Agriculture',
'Industry'
]
],
'recoverableAmounts' => [
'taxMonth' => 1,
'smpRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'sppRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'sapRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'shPPRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'spbpRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'sncpRecovered' => [
'reclaimed' => 100,
'nicCompensationRecovered' => 50
],
'cisDeductionsSuffered' => 50
],
'apprenticeshipLevy' => [
'levyDueYtd' => 1000,
'taxMonth' => 1,
'annualAllowance' => 15000
]
]),
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/rti/eps/{taxYear}/manual"
payload := strings.NewReader("{\n \"taxMonth\": 123,\n \"taxYear\": 123,\n \"finalSubmissionDetails\": {\n \"becauseSchemeCeased\": true,\n \"dateSchemeCeased\": \"2024-04-05\",\n \"forYear\": true\n },\n \"noPaymentForPeriod\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"periodOfInactivity\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"employmentAllowance\": {\n \"isEnabled\": true,\n \"employerSectors\": [\n \"Agriculture\",\n \"Industry\"\n ]\n },\n \"recoverableAmounts\": {\n \"taxMonth\": 1,\n \"smpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sppRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sapRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"shPPRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"spbpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sncpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"cisDeductionsSuffered\": 50\n },\n \"apprenticeshipLevy\": {\n \"levyDueYtd\": 1000,\n \"taxMonth\": 1,\n \"annualAllowance\": 15000\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/rti/eps/{taxYear}/manual")
.header("X-Auth-Token", "<api-key>")
.header("X-Org-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"taxMonth\": 123,\n \"taxYear\": 123,\n \"finalSubmissionDetails\": {\n \"becauseSchemeCeased\": true,\n \"dateSchemeCeased\": \"2024-04-05\",\n \"forYear\": true\n },\n \"noPaymentForPeriod\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"periodOfInactivity\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"employmentAllowance\": {\n \"isEnabled\": true,\n \"employerSectors\": [\n \"Agriculture\",\n \"Industry\"\n ]\n },\n \"recoverableAmounts\": {\n \"taxMonth\": 1,\n \"smpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sppRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sapRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"shPPRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"spbpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sncpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"cisDeductionsSuffered\": 50\n },\n \"apprenticeshipLevy\": {\n \"levyDueYtd\": 1000,\n \"taxMonth\": 1,\n \"annualAllowance\": 15000\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.flowpayroll.ai/v1/rti/eps/{taxYear}/manual")
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 \"taxMonth\": 123,\n \"taxYear\": 123,\n \"finalSubmissionDetails\": {\n \"becauseSchemeCeased\": true,\n \"dateSchemeCeased\": \"2024-04-05\",\n \"forYear\": true\n },\n \"noPaymentForPeriod\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"periodOfInactivity\": {\n \"fromDate\": \"2025-01-01\",\n \"toDate\": \"2025-01-31\"\n },\n \"employmentAllowance\": {\n \"isEnabled\": true,\n \"employerSectors\": [\n \"Agriculture\",\n \"Industry\"\n ]\n },\n \"recoverableAmounts\": {\n \"taxMonth\": 1,\n \"smpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sppRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sapRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"shPPRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"spbpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"sncpRecovered\": {\n \"reclaimed\": 100,\n \"nicCompensationRecovered\": 50\n },\n \"cisDeductionsSuffered\": 50\n },\n \"apprenticeshipLevy\": {\n \"levyDueYtd\": 1000,\n \"taxMonth\": 1,\n \"annualAllowance\": 15000\n }\n}"
response = http.request(request)
puts response.read_body{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>..."
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": {
"submissionId": "EPS_2025_001",
"taxYear": 2025,
"organisationId": "org_123",
"hmrcEpsReportStatus": "Sent",
"createdDate": "2025-01-01T00:00:00Z",
"createdBy": "user_123",
"updatedDate": "2025-01-02T00:00:00Z",
"updatedBy": "user_456",
"figuresChangedSinceSubmission": false,
"taxMonth": 6,
"submissionBody": "Submission body content",
"correlationID": "corr_123",
"submissionDate": "2025-01-01T00:00:00Z",
"submissionResponse": "Response from HMRC",
"errors": [
"Error message 1",
"Error message 2"
],
"figuresChangedReason": "Pay run 2026-7 unlocked",
"figuresChangedDate": "2026-10-27T09:15:00Z"
}
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}{
"message": {
"text": "<string>",
"token": "<string>",
"tokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
},
"content": {
"metadata": {
"dateFormat": "<string>",
"dateTimeFormat": "<string>",
"paginationToken": "<string>"
},
"data": "<unknown>"
},
"validationIssues": [
{
"field": "<string>",
"reason": "<string>",
"reasonToken": "<string>",
"reasonTokenArguments": [
{
"name": "<string>",
"value": "<unknown>"
}
]
}
]
}