Logo
2cloudnine Payroll API API Documentation

Payee Composite

POST {{url}}/services/data/v{{version}}/composite/

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string
Authorization
string




RESPONSES

status





Curl
curl -X POST 'undefined/services/data/vundefined/composite/' -H 'Content-Type: application/json' -H 'Authorization: Bearer undefined' -d '{"allOrNone":true,"compositeRequest":[{"url":"/services/data/vundefined/query?q=select+id+from+account+where+name=%27GO2+Group+Ltd%27+AND+recordtype.name=%27Payment+Entity%27","method":"GET","referenceId":"paymentEntityId"},{"url":"/services/data/vundefined/query?q=select+id+from+tc9_pr__Leave_Template__c+where+name=%27Leave+VIC%27","method":"GET","referenceId":"leaveTemplateId"},{"url":"/services/data/vundefined/query?q=SELECT+id+FROM+tc9_pr__Pay_Advice_Template__c+WHERE+name=%27payg+default%27","method":"GET","referenceId":"payAdviceTemplateId"},{"url":"/services/data/vundefined/query?q=SELECT+id+FROM+tc9_pr__Location__c+WHERE+name=%27victoria%27","method":"GET","referenceId":"primaryLocationId"},{"url":"/services/data/vundefined/query?q=SELECT+id+FROM+tc9_pr__Schedule__c+WHERE+name=%27weekly+pay%27+AND+recordtype.name=%27pay schedule%27","method":"GET","referenceId":"payScheduleId"},{"url":"/services/data/vundefined/sobjects/tc9_pr__Payee__c","method":"POST","referenceId":"payeeId","body":{"tc9_pr__Employee__c":"0038c000038P1quAAC","tc9_pr__Earner_Type__c":"PAYG","tc9_pr__Leave_Template__c":"@{leaveTemplateId.records[0].Id}","tc9_pr__Pay_Advice_Delivery_Method__c":"Email as PDF","tc9_pr__Pay_Advice_Template__c":"@{payAdviceTemplateId.records[0].Id}","tc9_pr__Payment_Consolidation__c":"Consolidated","tc9_pr__Payment_Entity__c":"@{paymentEntityId.records[0].Id}","tc9_pr__Payroll_Start_Date__c":"2022-01-01","tc9_pr__Payroll_System__c":"2cloudnine Payroll AUS","tc9_pr__Primary_Location__c":"@{primaryLocationId.records[0].Id}","tc9_pr__Primary_Record__c":true,"tc9_pr__Schedule__c":"@{payScheduleId.records[0].Id}","tc9_pr__External_ID__c":"123"}}]}'

ENDPOINTS