By using this website, you agree to our Terms of Use (click here)
Hi
I am begginer, and I want to make a payment over REST API. Is this procedure correct?
1. Send data: PUT https://..../entity/Default/17.200.001/Payment
Accept: application/json Content-Type: application/json
{ "CashAccount": { "value": "581001" }, "Type": { "value": "Prepayment" }, "PaymentMethod": { "value": "CB" }, "PaymentRef": { "value": "myref" }, "CustomerID": { "value": "mycustomer" }, "CurrencyID": { "value": "EUR" }, "PaymentAmount": { "value": myprice }, "OrdersToApply": [ { "OrderNbr": { "value": "myordernumber" }, "OrderType": { "value": "SO" } } ] }
and back I get this JSON:
{
"id": "afd42eb8-485b-eb11-a818-000d3ae79a84",
"rowNumber": 1,
"note": "",
"ApplicationDate": {
"value": "2021-01-20T00:00:00+00:00"
},
"AppliedToDocuments": {
"value": 0
},
....... and next data
} 2. send received data to action ReleasePayment
POST https://..../entity/Default/17.200.001/Payment /ReleasePayment Accept: application/json Content-Type: application/json { "entity": {
......... full data received from first step }, "parameters" : {} } Or it is done differently?
Thank you in advance for the advice
Jaroslav
Hi @cndr,
I think you’ll have better luck with this post on StackOverflow (click here) or in the new official Acumatica Community Forums:
https://community.acumatica.com
For the foreseeable future, the Forums here will focus on the Reporting Tools in Acumatica (Dashboards, Generic Inquiries, Report Designer, ARM Financial Report Writer, Velixo, Excel, Power BI, etc.) and also discussions that are too “transparent” to be allowed in the new official Acumatica Community Forums. For more info about how AUGForums.com compares to the new official Acumatica Community, checkout this post:
https://www.augforums.com/augforums-com-vs-the-official-acumatica-community
