SAP Open Connectors

Sage Accounting - How to Perform a PUT call for Other Payments

This article presents the limitations in regards to Updating a Sage Accounting Other Payment as well as an example payload that can be used to perform the PUT API call.

In order to perform a PUT call, you will require the ID of the payment to be updated and a request Payload for the call, an example of which can be found below:

{ 

   "bank_account_id":"*****************",
   "contact_id":"*****************",
   "date":"2020-01-21",
   "deletable":true,
   "editable":true,
   "net_amount":140,
   "reference":"PaymentPutExample",
   "payment_lines":[ 

      {          "details":"Line 1",
         "ledger_account_id":"*****************",
         "net_amount":140,
         "tax_amount":0,
         "total_amount":140      } 

],
   "tax_amount":0,
   "total_amount":140,
   "transaction_type_id":"OTHER_PAYMENT"

}


For more information on the payload, please see the vendor's documentation.

Likewise, for the above payload, a very important thing is that the parameters editable and deletable must be true to be able to update records. Further to the above, there are limitations that apply to payments as seen in the vendors' documentation.