MYOBCommunity
Partner Zone
|
|
Partner Zone

Error when posting an invoice using the api

This thread is now closed to new comments.
Some of the links provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
1 REPLY
Partner 4Technology
4 Posts
Partner
New Zealand
4Technology

4Posts

0Kudos

1Solutions

Accepted Solution Solved Solution

Re: Error when posting an invoice using the api

Found the Solution

 

My CustomerPurchaseOrderNumber was larger than the 20 character limit. Fixing that allowed the Invoice to Post.

 

Error Message could be improved to give the api's name for the field, "CustomerPurchaseOrderNumber", rather than "ReferenceForCard" which isn't mentioned anywhere in the documentation.

Highlighted
Partner 4Technology
4 Posts
Partner
New Zealand
4Technology

4Posts

0Kudos

1Solutions

Solved: Go to Solution

Error when posting an invoice using the api

Hi 

 

When posting an invoice using the api i am receiving the following error.

 

"Errors": [
{
"Name": "StringLengthExceeded",
"Message": "Maximum allowed characters for ReferenceForCard is 20",
"AdditionalDetails": "ReferenceForCard",
"ErrorCode": 180,
"Severity": "Error"
}
],
"Information": "Warning, error messages have not been finalised in this release and may change"

 

I have been looking at the documentation and can't find where ReferenceForCard is outlined/set so dont know how to reduce it's length.

 

Any one know how it is set/ why it would be more than 20 characters?

 

Thanks

Didn't find your answer here?
Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post