Skip to main content

Delete Order Metafield

API operation: Open the endpoint in Scalar

Use DELETE /orders/{order_id}/metafields/{metafield}. The current operation is OrderMetafield.delete. The final parameter identifies a metafield on the selected order. Deletion is destructive; confirm both IDs and your access before using it.

OpenAPI reference​

Operation: DELETE /orders/{order_id}/metafields/{metafield}

Path parameters

NameTypeRequiredDescription
order_idintegerYes—
metafieldintegerYes—

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference