Skip to content

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

@ankesh4040

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...............

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions