Conekta.Plans (Conekta v1.1.0) View Source

Functions for retrieving and managing information about plans.

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

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

Link to this section Summary

Functions

Delete a plan by passing a unique ID Conekta Documentation

Get a plan by passing the unique ID

Get all the current plans Conekta Documenation

Update a plan by passing a %Conekta.PlanUpdateResponse{} struct with the new data Conekta Documentation

Link to this section Functions

Delete a plan by passing a unique ID Conekta Documentation

Method: DELETE

Conekta.Plans.delete(id)
# => { :ok, %Conekta.PlanDeleteResponse{}}

Get a plan by passing the unique ID

Method: GET

Conekta.Plans.find(id)
# => { :ok, %Conekta.PlanFindResponse{}}

Get all the current plans Conekta Documenation

Method: GET

Conekta.Plans.plans()
# => { :ok, %Conekta.PlansResponse{}}

Update a plan by passing a %Conekta.PlanUpdateResponse{} struct with the new data Conekta Documentation

Method: PUT

Conekta.Plans.update(%Conekta.Plan{})
# => { :ok, %Conekta.PlanUpdateResponse{}}