Authorization: Bearer ********************curl --location --request POST '/invoices/mapwithorder' \
--header 'Content-Type: application/json' \
--data-raw '{
"invoice_ids": [
"982000000567114",
"982000000567115",
"982000000567116"
]
}'{
"code": 0,
"message": "The invoices selected have been associated with their sales orders.",
"errors": [
{
"code": 4001,
"message": "Customer mismatch between invoice and sales order",
"ids": [
"982000000567114"
]
},
{
"code": 4002,
"message": "Invoice is already linked to another sales order",
"ids": [
"982000000567115"
]
},
{
"code": 4003,
"message": "Sales order is in void status and cannot be linked",
"ids": [
"982000000567116"
]
}
]
}