Create (POST) Employee Payment
Use this API to create an employee payment in the Transaction Center.
To create an employee payment:
Execute a POST command on the endpoint
{{url}}/ledger/{{TransType}}, by setting the variable
TransType to EP and specifying the transaction data for that employee payment in the request body.
For example, here is a request submitted using cURL:
curl
--request POST \
--url 'https://{{url}}/ledger/EP' \
--header 'authorization: Bearer {{oauth_token}}' \
--header 'content-type: application/json' \
--data '{
"Period": 201305,
"PostSeq": 0,
"UserName": "ADMIN",
"PostDate": "",
"TransType": "EP",
"Completed": "N",
"PostComment": "",
"PaymentDate": "2017-02-09T00:00:00.000",
"CheckDate": "2017-02-09T00:00:00.000",
"Company": "0A",
EXCHECKS: [
{
"Period": "201305",
"PostSeq": 0,
"Employee": "000PR101",
"Seq": "1",
"Voucher": "000000000497",
"EmployeeName": "Apple, Billy",
"Printed": "Y",
"Assigned": "Y",
"BankCode": "SV",
"Sequence": "1",
"CheckNo": "888",
"CheckDate": "2017-02-08T00:00:00.000",
"ReportName": "DP Emp Exp 1",
"ReportDate": "2017-02-13T00:00:00.000",
"AppliedAdvance": "0",
"Org": "0A",
"DetailType": "E",
"Amount": "120.00",
"CheckAmt": "120.00",
"EFT": "*",
"EmailRemittance": "",
"Email": "bbb",
"ExportText": "N",
"CheckNoRef": "000000000888",
"SEPAIndicator": "",
"Diary": ""
},
{
"Period": "201305",
"PostSeq": 0,
"Employee": "000PR101",
"Seq": "2",
"Voucher": "000000000497",
"EmployeeName": "Apple, Billy",
"Printed": "Y",
"Assigned": "Y",
"BankCode": "SV",
"Sequence": "1",
"CheckNo": "888",
"CheckDate": "2017-02-08T00:00:00.000",
"ReportName": "DP Emp Exp 1",
"ReportDate": "2017-02-13T00:00:00.000",
"AppliedAdvance": "0",
"Org": "0A",
"DetailType": "E",
"Amount": "80.00",
"CheckAmt": "80.00",
"EFT": "*",
"EmailRemittance": "",
"Email": "bbb",
"ExportText": "N",
"CheckNoRef": "000000000888",
"SEPAIndicator": "",
"Diary": ""
}
],
EXCHECKSTAX: [
{
"Period": "201305",
"PostSeq": 0,
"Employee": "000PR101",
"CheckSeq": "1",
"TaxCode": "NOLABORTAX",
"TaxAmount": 6.1,
"Seq": "1",
"CompoundOnTaxCode": ""
},
{
"Period": "201305",
"PostSeq": 0,
"Employee": "000PR101",
"CheckSeq": "1",
"TaxCode": "AGS",
"TaxAmount": 10.84,
"Seq": "2",
"CompoundOnTaxCode": ""
},
{
"Period": "201305",
"PostSeq": 0,
"Employee": "000PR101",
"CheckSeq": "1",
"TaxCode": "USD",
"TaxAmount": 4.56,
"Seq": "3",
"CompoundOnTaxCode": ""
},
{
"Period": "201305",
"PostSeq": 0,
"Employee": "000PR101",
"CheckSeq": "2",
"TaxCode": "NOLABORTAX",
"TaxAmount": 4.06,
"Seq": "1",
"CompoundOnTaxCode": ""
},
{
"Period": "201305",
"PostSeq": 0,
"Employee": "000PR101",
"CheckSeq": "2",
"TaxCode": "AGS",
"TaxAmount": 7.22,
"Seq": "2",
"CompoundOnTaxCode": ""
},
{
"Period": "201305",
"PostSeq": 0,
"Employee": "000PR101",
"CheckSeq": "2",
"TaxCode": "USD",
"TaxAmount": 3.04,
"Seq": "3",
"CompoundOnTaxCode": ""
}
]
}
'
A successful POST returns the JSON representation of the newly created employee payment.
