Find Order Metafield
API operation: Open the endpoint in Scalar
Use GET /orders/{order_id}/metafields/{metafield}. The operation is OrderMetafield.find. Integrations using {metafield_id} can map it to {metafield} in the same final path position.
OpenAPI reference
Operation: GET /orders/{order_id}/metafields/{metafield}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
order_id | integer | Yes | — |
metafield | integer | Yes | — |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
params | string | No | Comma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields. |
Responses
| Code | Description |
|---|---|
| 200 | OK (Envelope) |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |