Skip to content

Not able to call post function on any of the object (Product, Collect, Metafield) #331

Description

@ankesh4040

Getting error : CurlException: Request failed with HTTP Code 400.

$metafieldv =
[
'namespace' => "custom",
'key' => "ship_time",
'value' => "API updated",
'type' => 'single_line_text_field'
]
;
$metafields = $shopify->Product('7543539269680')->Metafield->post($metafieldv);

/// Getting error...............

$collectData = [
'product_id' => '7543539269680',
'collection_id' =>'281608945712',
];

$collect = $shopify->Collect->post($collectData );

/// Getting error...............

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions