Hi Team,
Could you advise on this question.
To receive payment or credit memo allocations, Sage 300 API suggests using this API method ARReceiptAndAdjustmentBatches.
I tried to use the API method to obtain a list of allocations by payment number.
Example:
https://{{HOST}}/Sage300WebApi/v1.0/-/SAMLTD/AR/ARReceiptAndAdjustmentBatches?$filter=ReceiptAndAdjustmentBatch.DocumentNumber eq 'PY00000000000000000127'
But Sage 300 returns the error message:
{
"error": {
"code": "InvalidParameters",
"message": {
"lang": "en-US",
"value": "The child type 'ReceiptAndAdjustmentBatch.DocumentNumber' in a cast was not an entity type. Casts can only be performed on entity types."
}
}
}
Could you advise how to use the request correctly?