shopify v0.4.0 Shopify.DraftOrder.DraftOrderInvoice

Link to this section Summary

Link to this section Functions

Link to this function all_url(draft_order_id)
Link to this function create(session, top_id, new_resource)

Requests to create a new resource.

Returns {:ok, %Shopify.Response{}} or {:error, %Shopify.Response{}}

Parameters

  • session: A %Shopify.Session{} struct.
  • top_id: The id of the top-level resource.
  • new_resource: A struct of the resource being created.

Examples

iex> Shopify.session |> Shopify.Transaction.create(order_id)
{:ok, %Shopify.Response{}}
Link to this function empty_resource()
Link to this function find_url(draft_order_id, id)