You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var customerRequest = new CustomerRequest()
{
Email = email,
Name = name,
Locale = Locale.en_US,
Testmode = IsTest,
Metadata = metaData,
};
ICustomerClient customerClient = new CustomerClient(ApiKey);
var customerResponse = customerClient.CreateCustomerAsync(customerRequest).Result;
Gives error:
{Mollie.Api.Client.MollieApiException: Unprocessable Entity - Non-existent body parameter "testmode" for this API call. Did you mean: "name"?
at Mollie.Api.Client.BaseMollieClient.ProcessHttpResponseMessage[T](HttpResponseMessage response)
at Mollie.Api.Client.BaseMollieClient.SendHttpRequest[T](HttpMethod httpMethod, String relativeUri, Object data)
at Mollie.Api.Client.BaseMollieClient.PostAsync[T](String relativeUri, Object data)
at Mollie.Api.Client.CustomerClient.CreateCustomerAsync(CustomerRequest request)}
Code
Gives error:
{Mollie.Api.Client.MollieApiException: Unprocessable Entity - Non-existent body parameter "testmode" for this API call. Did you mean: "name"?
at Mollie.Api.Client.BaseMollieClient.ProcessHttpResponseMessage[T](HttpResponseMessage response)
at Mollie.Api.Client.BaseMollieClient.SendHttpRequest[T](HttpMethod httpMethod, String relativeUri, Object data)
at Mollie.Api.Client.BaseMollieClient.PostAsync[T](String relativeUri, Object data)
at Mollie.Api.Client.CustomerClient.CreateCustomerAsync(CustomerRequest request)}
Which in fact is weird considering that the docs of mollie say there is a testmode property in the request:
https://docs.mollie.com/reference/v2/customers-api/create-customer
BUT
in the sample of mollie the request says:
"mode": "test", instead of "testmode":true
The text was updated successfully, but these errors were encountered: