Get All Metafields

GET https://api.ecartapi.com/api/v2/metafields?ownerType=order

When using the Get All Metafields resource, you need to specify the ownerType of the Metafield Definition through query parameters, as shown in the example.

Request Params

KeyDatatypeRequiredDescription
ownerTypestring

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"success":true,"metafields":[{"id":"34854240425","description":"metafield test update","key":"testing","name":"special note update","ownerType":"ORDER","namespace":"app--9176940545--orderControl","type":"multi_line_text_field"}]}