Conekta v1.0.5 Conekta.Orders

Functions for retrieving and managing information about orders.

We can create, update, find and get all orders:

Endpoint: https://api.conekta.io/orders

Summary

Functions

Create a new order by passing a %Conekta.Order{} struct Conekta Documenation

Finds an order by passing the unique order ID

Get all the current orders Conekta Documenation

Update an order by passing an %Conekta.Order{} object with the new modifications

Functions

create(order)

Create a new order by passing a %Conekta.Order{} struct Conekta Documenation

Method: GET

Conekta.Orders.create(%Conekta.Order{})
# => { :ok, %Conekta.OrdersCreateResponse{}}
find(id)

Finds an order by passing the unique order ID

Method: GET

Conekta.Orders.find(id)
# => { :ok, %Conekta.OrdersFindResponse{}}
orders()

Get all the current orders Conekta Documenation

Method: GET

Conekta.Orders.orders()
# => { :ok, %Conekta.OrdersResponse{}}
update(id, order)

Update an order by passing an %Conekta.Order{} object with the new modifications

Method: PUT

Conekta.Orders.update(%Conekta.Order{})
# => { :ok, %{}}