commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Standalone Price → Check if StandalonePrice exists by ID

AI-generated

Summary

Check whether a Standalone Price resource exists by sending a HEAD request to the commercetools API using the specified Standalone Price ID.

Inputs

  • Standalone Price ID (required) — The unique identifier of the Standalone Price to verify existence for.

Output shape

A single JSON object containing 'exists' (boolean), 'statusCode' (number), and the requested URL (string).

Returns { exists: true, statusCode: 200, url: ... } if the resource exists; returns { exists: false, statusCode: 404, url: ... } if it does not. Throws errors for statuses other than 404.

Examples

Example 1: Check if a Standalone Price with ID 'sp-123' exists

Provide 'sp-123' as the Standalone Price ID input parameter and run the node; output will confirm existence.

Links

Discussion