Logo
2cloudnine Payroll API API Documentation

Assignment 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__Calendar__c+where+name=%27VIC+Public+Holidays%27","method":"GET","referenceId":"publicHolidayCalendarId"},{"url":"/services/data/vundefined/query?q=select+id+from+tc9_pr__Calendar__c+where+name=%27start+stop%27","method":"GET","referenceId":"timesheetCalendarId"},{"url":"/services/data/vundefined/query?q=SELECT+id+FROM+tc9_et__Invoice_Tax_ID__c+WHERE+tc9_et__Tax_Rate__c=10","method":"GET","referenceId":"taxId"},{"url":"/services/data/vundefined/query?q=SELECT+id+FROM+recordtype+WHERE+sobjecttype=%27tc9_pr__Assignment__c%27+AND+name=%27temp%27","method":"GET","referenceId":"recordTypeId"},{"url":"/services/data/vundefined/sobjects/tc9_pr__Assignment__c","method":"POST","referenceId":"assignmentId","body":{"tc9_pr__Employee__c":"0038c000038P1quAAC","tc9_pr__Payee__c":"a7P8c00000084JGEAY","tc9_pr__Client__c":"0018c00002MVqqUAAT","tc9_pr__Assignment_Name__c":"Test assignment","tc9_et__Invoice_Schedule__c":"a7X8c000000YKqSEAW","tc9_pr__Schedule__c":"a7X8c000000YKqDEAW","tc9_et__Timesheet_Approver__c":"0038c000036fMZXAA2","tc9_pr__Leave_Approver__c":"0038c000036fMZXAA2","tc9_et__Invoice_Tax_ID__c":"@{taxId.records[0].Id}","tc9_pr__Payment_Entity__c":"@{paymentEntityId.records[0].Id}","tc9_et__Interpretation_Rule__c":"a7l8c000000YfAVAA0","tc9_et__Expense_Claim_Approver__c":"0038c000036fMZXAA2","tc9_et__Client_Hiring_Manager__c":"0038c000036fMZXAA2","tc9_et__Alternative_TimeSheet_Approver__c":"0038c000036fMZXAA2","tc9_et__Alternative_Expense_Claim_Approver__c":"0038c000036fMZXAA2","tc9_pr__Alternative_Leave_Approver__c":"0038c000036fMZXAA2","tc9_pr__Assignment_Start_Date__c":"2022-01-01","tc9_pr__Assignment_End_Date__c":"2022-01-31","tc9_pr__Employment_Cost_Template_Group__c":"","tc9_et__Timesheet_Calendar__c":"@{timesheetCalendarId.records[0].Id}","tc9_et__Public_Holiday_Calendar__c":"@{publicHolidayCalendarId.records[0].Id}","tc9_et__Invoice_To_Account__c":"0018c00002MVqqUAAT","tc9_et__Invoice_To_Contact__c":"0038c000036fMZXAA2","RecordTypeId":"@{recordTypeId.records[0].Id}","tc9_pr__External_ID__c":"123"}}]}'

ENDPOINTS