Invoice Items Upsert

PATCH {{url}}/services/data/v{{version}}/sobjects/:SOBJECT_API_NAME/:EXTERNAL_ID_FIELD/:EXTERNAL_ID

Accesses records based on the specified object ID. Retrieves, updates, or deletes records. This resource can also be used to retrieve field values. Use the GET method to retrieve records or fields, the DELETE method to delete records, and the PATCH method to update records.

Request Body

{"tc9_et__Invoice__r"=>{"tc9_int__External_Id__c"=>"{{masterExternalId}}"}, "tc9_et__Client__r"=>{"tc9_int__External_Id__c"=>"{{masterExternalId}}"}, "tc9_et__Assignment__r"=>{"tc9_int__External_Id__c"=>"{{masterExternalId}}"}, "tc9_et__Employee__r"=>{"tc9_int__External_Id__c"=>"emp_{{masterExternalId}}"}, "tc9_et__Payee__r"=>{"tc9_int__External_Id__c"=>"{{masterExternalId}}"}, "tc9_et__Pay_Code__r"=>{"tc9_int__External_Id__c"=>"{{masterExternalId}}"}, "tc9_et__Invoice_Tax_ID__r"=>{"tc9_int__External_Id__c"=>"{{masterExternalId}}"}, "tc9_et__Invoice_Item_Description__c"=>"Test invoice item", "tc9_et__Entry_Date__c"=>"2023-01-04", "tc9_et__Quantity__c"=>10, "tc9_et__Invoice_Rate__c"=>100.0, "tc9_et__Invoice_Total_Ex_Tax__c"=>1000.0, "tc9_et__Invoice_Total_Tax__c"=>100.0, "tc9_et__Invoice_Total_Inc_Tax__c"=>1100.0, "tc9_et__Invoice_Taxable__c"=>"No", "tc9_et__Invoice_Tax_Rate__c"=>0.1, "RecordTypeId"=>"{{recordType.invoiceItem.payment}}"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring