cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error 5002 when creating an invoice with service layer

vass_gabor_p
Member
0 Kudos

Hello!

I am trying to create an invoice from Goods Receipt via service layer .

The following request sent by postman does not work.

....:50000/b1s/v1/PurchaseInvoices

{ "CardCode": "S08102", "DocDueDate": "2023-08-08", "VatDate": "2023-09-13", "NumAtCard": "AG-2023-18a", "DocumentLines": [ { "BaseType": 20, "BaseEntry": 144535, "BaseLine": 0, "Quantity": "1", "UnitPrice": "580000", "ItemCode": "SM00007", "ProjectCode": "P989", "CostingCode": "S0999", "CostingCode2": "A9999", "AccountCode": "52922", "TaxCode": "B27" } ]}

Getting error in response:

{

"error": {

"code": -5002,

"message": {

"lang": "en-us",

"value": "Total length of the prefix, suffix and the numeric value cannot be greater than 20 characters "

}

}

}

If I omit the BaseType and BaseEntry, it works, but there is no connection with Goods Receipt. So there must be a problem with these fields

Could you please give me some idea about this issue?

Accepted Solutions (0)

Answers (0)