Shopify.Customer.create_metafield
You're seeing just the function
create_metafield
, go back to Shopify.Customer module for more information.
Link to this function
create_metafield(customer_id, params)
Specs
create_metafield(binary(), map()) :: Shopify.Operation.t()
Create a metafield for a customer.
Examples
iex> data = %{ ...> metafield: %{ ...> namespace: "inventory", ...> key: "points", ...> value: 25, ...> value_type: "integer" ...> } ...> } iex> Shopify.Customer.create_metafield("12345", data) |> Shopify.request(session) {:ok, %Shopify.Response{}}