Error Detail for integration with Letterstream api
Average rating: 5.0 (1 vote) Log in to vote
Robert D Trammel - Show more from this author
Lucky Penny LLC
LSErrorDetail( -200 )
"Successful preauth: Please resubmit authcode to complete order"
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This may be a very niche corner of the market, but I have a customer who utilizes Letterstream to send a lot of physical mail. Their API is available only to customers, and as such the documentation can be difficult to navigate at times. I wrote this custom function in order to return more actionable error detail from failed api calls. Their original HTML table of codes consisted of three columns, Code, Name, and Description. I wrote a little while loop to build this JSON structure for quicker reference.
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.