Conekta.Customers (Conekta v1.1.0) View Source
Functions for retrieving and managing information about clients.
We can create, update, find, delete and get all customers:
Endpoint: https://api.conekta.io/customers
Link to this section Summary
Functions
Create a new Conekta client Conekta Documenation
Create a new payment source Conekta Documenation
Create a new shipping contact for a customer Conekta Documenation
Get Conekta clients information. Conekta Documenation
Delete a Conekta client by passing the unique conekta ID. Conekta Documenation
Delete a payment source from a client Conekta Documenation
Delete a shipping contact from a customer Conekta Documenation
Get Conekta client information identified by their unique conekta ID.
Get the client payment sources Conekta Documenation
Get the client shipping contacts Conekta Documenation
Get the client subscriptions Conekta Documenation
Update a Conekta client by passing a %Conekta.Customer{} struct with the new values
Update shipping contact for a customer Conekta Documenation
Link to this section Functions
Create a new Conekta client Conekta Documenation
Method: POST
Conekta.Customers.create(%Conekta.Customer{})
# => { :ok, %Conekta.Customer{}}
Create a new payment source Conekta Documenation
Method: POST
Conekta.Customers.create_payment_source(client_id, %Conekta.PaymentSource{})
# => { :ok, %Conekta.CustomerCreatePaymentSourceResponse{}}
Create a new shipping contact for a customer Conekta Documenation
Method: POST
Conekta.Customers.create_shipping_contact(client_id, %Conekta.ShippingContact{})
# => { :ok, %Conekta.CustomerCreateShippingContactResponse{}}
Get Conekta clients information. Conekta Documenation
Method: GET
Conekta.Customers.customers()
# => { :ok, %Conekta.CustomersResponse{}}
Delete a Conekta client by passing the unique conekta ID. Conekta Documenation
Method: DELETE
Conekta.Customers.delete(client_id)
# => { :ok, %Conekta.CustomerDeleteResponse{}}
Delete a payment source from a client Conekta Documenation
Method: DELETE
Conekta.Customers.delete_payment_source(client_id, payment_source_id)
# => { :ok, %Conekta.CustomerDeletePaymentSourceResponse{}}
Delete a shipping contact from a customer Conekta Documenation
Method: DELETE
Conekta.Customers.delete_shipping_contact(client_id, shipping_contact_id)
# => { :ok, %Conekta.CustomerDeleteShippingContactResponse{}}
Get Conekta client information identified by their unique conekta ID.
Method: GET
Conekta.Customers.find(client_id)
# => { :ok, %Conekta.CustomerFindResponse{}}
Get the client payment sources Conekta Documenation
Method: GET
Conekta.Customers.payment_sources(client_id)
# => { :ok, %Conekta.CustomerPaymentSourcesResponse{}}
Get the client shipping contacts Conekta Documenation
Method: GET
Conekta.Customers.shipping_contacts(client_id)
# => { :ok, %Conekta.CustomerShippingContactsResponse{}}
Get the client subscriptions Conekta Documenation
Method: GET
Conekta.Customers.subscription(client_id)
# => { :ok, %Conekta.CustomerSubscriptionResponse{}}
Update a Conekta client by passing a %Conekta.Customer{} struct with the new values
Method: PUT
Conekta.Customers.update(client_id, %Conekta.Customer{})
# => { :ok, %Conekta.CustomerDeleteResponse{}}
update_shipping_contact(client_id, shipping_contact_id, shipping_contact)
View SourceUpdate shipping contact for a customer Conekta Documenation
Method: PUT
Conekta.Customers.update_shipping_contact(client_id, shipping_contact_id, %Conekta.ShippingContact{})
# => { :ok, %Conekta.CustomerUpdateShippingContactResponse{}}