Hi Everyone,
Can anyone help me provide the Json request to insert the Payment Instructions details in the Vendors → Default Payment Settings → Payment Instruction details?

Hi Everyone,
Can anyone help me provide the Json request to insert the Payment Instructions details in the Vendors → Default Payment Settings → Payment Instruction details?
Best answer by harutyungevorgyan
Hello
Let’s break it down into three easy steps: First, log in. Next, find the exact ID values for the payment method you need. Finally, send an HTTP request to update the values.
Auth via REST API:
Method:
POST
URL:
{{YourAcumaticaInstanceURL}}/entity/auth/login
Body:
{
"name" : "{{Username}}",
"password" : "{{Password}}",
"tenant" : "{{Tenant}}"
}
You can find the IDs you need for your request in the details of your Payment Method:
Last step - sending request to update values
Method:
PUT
URL:
{{YourAcumaticaInstanceURL}}/entity/{{YourEndpoint-Or"Default"}}/{{YourEndpointVersion-Or"23.200.001"}}/Vendor
Body:
{
"VendorID": {
"value": "YOURVENDORID"
},
"PaymentMethod": {
"value": "YOURPaymentMethod" //For example ACHBA
},
"PaymentInstructions": [
{
"PaymentInstructionsID": {
"value": "YOURID"
},
"Value": {
"value": "YOURVALUE"
}
} /*,
{
//next Instruction and so on
}....*/
]
}
Let me know if you have any questions.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.