Issue with Adding Prepayment via Bank Deposit API
Hello Everyone,
I am trying to create a Bank Deposit using the API in MYOB. I have populated the Bank Deposit endpoint along with the PaymentCharge and PaymentDetail entities under the Bank Deposit.
Please find the API request below:
{
"TranType": {
"value": "CA Deposit"
},
"CashAccount": {
"value": "AUDTRADING"
},
"Hold": {
"value": "false"
},
"PaymentCharge": [
{
"Charge": {
"value": "GATEWAY"
},
"PaymentMethod": {
"value": "SHOPIFY"
},
"ChargeAmount": {
"value": 100
}
},
{
"Charge": {
"value": "REFUND"
},
"PaymentMethod": {
"value": "SHOPIFY"
},
"ChargeAmount": {
"value": 100
}
}
],
"PaymentDetail": [
{
"DocModule": {
"value": "AR"
},
"Type": {
"value": "Prepayment"
},
"PaymentRef": {
"value": "REC00049724"
}
}
]
}
I have also attached screenshots showing how the Bank Deposit has been configured in MYOB.
Issue:
I am unable to add the prepayment through the API. Could you please review the request and let me know if there are any additional fields, entities, or configurations that need to be included in the endpoint to add the prepayment successfully?
Any guidance on the required API structure or mapping would be greatly appreciated.
Thanks in Advance!