How to add new invoice to payment using API
Summary:
Trying to setup a payment using API and then add related Invoices.
PaymentCreation
https://{{pod}}/fscmRestApi/resources/11.13.18.05/payablesPayments
This creates a payment using 1 invoice.
Then using below API for related invoice to add a new invoice -
https://{{pod}}/fscmRestApi/resources/11.13.18.05/payablesPayments/300000012586053/child/relatedInvoices
{"AmountPaidPaymentCurrency": 100,"CheckId": XXXX,"InstallmentNumber": 1,"InvoiceId": XXXXX,"InvoiceNumber":"TEST_INV_1","InvoicePaymentId": XXXXX}
Getting Below error
"You must provide a valid value for the Invoice Number attribute. (AP-810667)"
errorCode": "AP:::AP_RS_INVALID_VALUE"
Not sure what is wrong with invoice number. If using this invocie number in payment creation, payment getting creates successfully. Only receiving error when trying for related invoice.