zaus / forms-3rdparty-integration

Wordpress Plugin - Forms 3rdparty Integration - a plugin to help integrate 3rdparty services with common WP Forms plugins like Contact Form 7 and Gravity Forms
http://wordpress.org/plugins/forms-3rdparty-integration/
47 stars 14 forks source link

Response Error: Input string was not in a correct format #13

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hello - I'm trying to values over to an API but I get the following response:

[body] => Cannot convert Company Name to System.Byte. Parameter name: type ---> Input string was not in a correct format.

The Submission inside the array is shown below: [affiliate_name] => Don\'s Company

Thanks for this plugin! It's pretty awesome.

Also, API Guide for the API I'm submitting to can be found here: https://support.getcake.com/hc/en-us/articles/202231164-SIGNUP-Affiliate-API-Version-4

zaus commented 10 years ago

Glad you like the plugin. It doesn't sound like it's a problem with the plugin though, but rather the values you're sending to the API, which usually means it's one of the mappings.

Looking at their docs, I think the issue is with the payment_to value you're mapping, as it's the only mention they have of "Company Name", and expects a byte value. Do you have a mapping for that 3rdparty field? If you need more help, can you post the whole debug response? You can scrub any identifiable info first.

ghost commented 10 years ago

Hello Zaus. It did end up being one of the values and I got it squared away! Thanks for the help.