Language

By configuring the location in the respective library, you can specify the language (English or Spanish) in which you want to receive the messages sent by Conekta to the buyer in the "message" parameter.

header 'Accept-Language: es'
// for each http request it has a language parameter
var response = eventsApi.GetEvent(id, "en");
// for each http request it has a language parameter

const acceptLanguage = "es"
customerResponse, httpResponse, err := client.CustomersApi.CreateCustomer(ctx).
		Customer(customer).
		AcceptLanguage(acceptLanguage).
		Execute()
#for each http request it has a language parameter
api_instance = Conekta::CustomersApi.new
customer = Conekta::Customer.new({email: '[email protected]', name: 'miguel', phone: '+5215555555555'}) # Customer | requested field for customer
opts = {
  accept_language: 'es'
}
  
result = api_instance.create_customer(customer, opts)
#for each http request it has a language parameter
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer authorization: bearerAuth
$config = Conekta\Configuration::getDefaultConfiguration()->setAccessToken('API_KEY');


$apiInstance = new Conekta\Api\CustomersApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$customer = new \Conekta\Model\Customer();
$accept_language = 'es'; // string | Use for knowing which language to use

$result = $apiInstance->createCustomer($customer, $accept_language);

#for each http request it has a language parameter
customer = conekta.Customer() # Customer | requested field for customer
accept_language = 'es' # str | Use for knowing which language to use (optional) (default to 'es')

api_response = api_instance.create_customer(customer, accept_language=accept_language)

// for each http request it has a language parameter
const customer: Customer = {
  name: "John Constantine",
  email: "[email protected]",
  phone: "+5215555555555"
}

await client.createCustomer(customer, 'es')

// for each http request it has a language parameter
CustomersApi apiInstance = new CustomersApi(defaultClient);
Customer customer = new Customer(); // Customer | requested field for customer
customer.setName("Customer Name");
customer.setEmail("[email protected]");
customer.setPhone("55454545454");
String acceptLanguage = "es"; // String | Use for knowing which language to use


CustomerResponse result = apiInstance.createCustomer(customer, acceptLanguage, null);