Conekta.Orders (Conekta v1.1.0) View Source

Functions for retrieving and managing information about orders.

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

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

Link to this section Summary

Functions

Get charges from an order

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

Creates a new charge for an existing order.

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

Link to this section Functions

Get charges from an order

Method: GET

Conekta.Orders.charges(order_id)
# => { :ok, %Conekta.OrderChargesResponse{}}

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

Method: GET

Conekta.Orders.create(%Conekta.Order{})
# => { :ok, %Conekta.OrdersCreateResponse{}}
Link to this function

create_charge(order_id, charge)

View Source

Creates a new charge for an existing order.

Method: POST

Conekta.Orders.create_charge(order_id, charge)
# => { :ok, %Conekta.OrderCreateChargeResponse{}}

Finds an order by passing the unique order ID

Method: GET

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

Get all the current orders Conekta Documenation

Method: GET

Conekta.Orders.orders()
# => { :ok, %Conekta.OrdersResponse{}}
Link to this function

partial_refund(order_id, refund)

View Source
Link to this function

refund(order_id, refund)

View Source

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

Method: PUT

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