Conekta::ShippingContactsApi

July 21, 2026 ยท View on GitHub

All URIs are relative to https://api.conekta.io

MethodHTTP requestDescription
create_customer_shipping_contactsPOST /customers/{id}/shipping_contactsCreate a shipping contacts
delete_customer_shipping_contactsDELETE /customers/{id}/shipping_contacts/{shipping_contacts_id}Delete shipping contacts
update_customer_shipping_contactsPUT /customers/{id}/shipping_contacts/{shipping_contacts_id}Update shipping contacts

create_customer_shipping_contacts

create_customer_shipping_contacts(id, customer_shipping_contacts_request, opts)

Create a shipping contacts

Create a shipping contacts for a customer.

Examples

require 'time'
require 'conekta'
# setup authorization
Conekta.configure do |config|
  # Configure Bearer authorization: bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = Conekta::ShippingContactsApi.new
id = '6307a60c41de27127515a575' # String | Identifier of the resource
customer_shipping_contacts_request = Conekta::CustomerShippingContactsRequest.new({address: Conekta::CustomerShippingContactsRequestAddress.new}) # CustomerShippingContactsRequest | requested field for customer shippings contacts
opts = {
  accept_language: 'es', # String | Use for knowing which language to use
  x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
}

begin
  # Create a shipping contacts
  result = api_instance.create_customer_shipping_contacts(id, customer_shipping_contacts_request, opts)
  p result
rescue Conekta::ApiError => e
  puts "Error when calling ShippingContactsApi->create_customer_shipping_contacts: #{e}"
end

Using the create_customer_shipping_contacts_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> create_customer_shipping_contacts_with_http_info(id, customer_shipping_contacts_request, opts)

begin
  # Create a shipping contacts
  data, status_code, headers = api_instance.create_customer_shipping_contacts_with_http_info(id, customer_shipping_contacts_request, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <CustomerShippingContactsResponse>
rescue Conekta::ApiError => e
  puts "Error when calling ShippingContactsApi->create_customer_shipping_contacts_with_http_info: #{e}"
end

Parameters

NameTypeDescriptionNotes
idStringIdentifier of the resource
customer_shipping_contacts_requestCustomerShippingContactsRequestrequested field for customer shippings contacts
accept_languageStringUse for knowing which language to use[optional][default to 'es']
x_child_company_idStringIn the case of a holding company, the company id of the child company to which will process the request.[optional]

Return type

CustomerShippingContactsResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.conekta-v2.3.0+json

delete_customer_shipping_contacts

delete_customer_shipping_contacts(id, shipping_contacts_id, opts)

Delete shipping contacts

Delete shipping contact that corresponds to a customer ID.

Examples

require 'time'
require 'conekta'
# setup authorization
Conekta.configure do |config|
  # Configure Bearer authorization: bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = Conekta::ShippingContactsApi.new
id = '6307a60c41de27127515a575' # String | Identifier of the resource
shipping_contacts_id = '6307a60c41de27127515a575' # String | identifier
opts = {
  accept_language: 'es', # String | Use for knowing which language to use
  x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
}

begin
  # Delete shipping contacts
  result = api_instance.delete_customer_shipping_contacts(id, shipping_contacts_id, opts)
  p result
rescue Conekta::ApiError => e
  puts "Error when calling ShippingContactsApi->delete_customer_shipping_contacts: #{e}"
end

Using the delete_customer_shipping_contacts_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> delete_customer_shipping_contacts_with_http_info(id, shipping_contacts_id, opts)

begin
  # Delete shipping contacts
  data, status_code, headers = api_instance.delete_customer_shipping_contacts_with_http_info(id, shipping_contacts_id, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <CustomerShippingContactsResponse>
rescue Conekta::ApiError => e
  puts "Error when calling ShippingContactsApi->delete_customer_shipping_contacts_with_http_info: #{e}"
end

Parameters

NameTypeDescriptionNotes
idStringIdentifier of the resource
shipping_contacts_idStringidentifier
accept_languageStringUse for knowing which language to use[optional][default to 'es']
x_child_company_idStringIn the case of a holding company, the company id of the child company to which will process the request.[optional]

Return type

CustomerShippingContactsResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/vnd.conekta-v2.3.0+json

update_customer_shipping_contacts

update_customer_shipping_contacts(id, shipping_contacts_id, customer_update_shipping_contacts_request, opts)

Update shipping contacts

Update shipping contact that corresponds to a customer ID.

Examples

require 'time'
require 'conekta'
# setup authorization
Conekta.configure do |config|
  # Configure Bearer authorization: bearerAuth
  config.access_token = 'YOUR_BEARER_TOKEN'
end

api_instance = Conekta::ShippingContactsApi.new
id = '6307a60c41de27127515a575' # String | Identifier of the resource
shipping_contacts_id = '6307a60c41de27127515a575' # String | identifier
customer_update_shipping_contacts_request = Conekta::CustomerUpdateShippingContactsRequest.new # CustomerUpdateShippingContactsRequest | requested field for customer update shippings contacts
opts = {
  accept_language: 'es', # String | Use for knowing which language to use
  x_child_company_id: '6441b6376b60c3a638da80af' # String | In the case of a holding company, the company id of the child company to which will process the request.
}

begin
  # Update shipping contacts
  result = api_instance.update_customer_shipping_contacts(id, shipping_contacts_id, customer_update_shipping_contacts_request, opts)
  p result
rescue Conekta::ApiError => e
  puts "Error when calling ShippingContactsApi->update_customer_shipping_contacts: #{e}"
end

Using the update_customer_shipping_contacts_with_http_info variant

This returns an Array which contains the response data, status code and headers.

<Array(, Integer, Hash)> update_customer_shipping_contacts_with_http_info(id, shipping_contacts_id, customer_update_shipping_contacts_request, opts)

begin
  # Update shipping contacts
  data, status_code, headers = api_instance.update_customer_shipping_contacts_with_http_info(id, shipping_contacts_id, customer_update_shipping_contacts_request, opts)
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <CustomerShippingContactsResponse>
rescue Conekta::ApiError => e
  puts "Error when calling ShippingContactsApi->update_customer_shipping_contacts_with_http_info: #{e}"
end

Parameters

NameTypeDescriptionNotes
idStringIdentifier of the resource
shipping_contacts_idStringidentifier
customer_update_shipping_contacts_requestCustomerUpdateShippingContactsRequestrequested field for customer update shippings contacts
accept_languageStringUse for knowing which language to use[optional][default to 'es']
x_child_company_idStringIn the case of a holding company, the company id of the child company to which will process the request.[optional]

Return type

CustomerShippingContactsResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/vnd.conekta-v2.3.0+json