Send Invoice API error "INVALID_NOTI_SEND_INVOICES"

Wolf2022
Contributor
Contributor

I am trying to send an invoice using the API, but I am getting error "INVALID_NOTI_SEND_INVOICES", Description: Notifications cannot be edited for multiple invoices. Note that I am trying to Send only One Invoice.

 

Appreciate any help.

 

Details:-

 

POST https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-UASG-8FKS-AJP4-8WAX/send?notify_merchant=t...

 

Response:-

 

{
    "name""UNPROCESSABLE_ENTITY",
    "message""The requested action could not be performed, semantically incorrect, or failed business validation.",
    "debug_id""64c4fe9d0e748",
    "details": [
        {
            "field""invoiceId",
            "value""INV2-UASG-8FKS-AJP4-8WAX",
            "location""path",
            "issue""INVALID_NOTI_SEND_INVOICES",
            "description""Notifications cannot be edited for multiple invoices."
        }
    ],
    "links": [
        {
            "method""GET"
        }
    ]
}
Login to Me Too
1 REPLY 1

gassroot
Contributor
Contributor

Did you find the solution for this?

 

I am seeing this error message also. When I create an invoice with multiple customers (to share payment) and then try to "send" the invoice, this error message results. With only one customer, it isn't an issue.

 

I've noticed that 2 invoices are being created, but the "create" API only returns one invoice id. The invoice ID is not visible in PayPal's manage invoices interface.

 

I cannot find any documentation to cover this, but I believe the description is hinting at the reason.  The API Responses HTTP Status Codes says this for http code 422

 

"The API cannot complete the requested action and might require interaction with APIs or processes outside of the current request...."

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.