v1

latestOpenAPI 3.0.02026-07-26318168886.7 KB
Merchant App Metafields

Get specific app metafield

To get information of app metafield attached to current merchant by metafield ID

get/merchants/current/app_metafields/{metafield_id}

Path parameters

metafield_idstring required

Metafield ID

Response

OK

idstring

Metafield Value ID

namespacestring

Namespace

keystring

Key

field_type'single_line_text_field' | 'multi_line_text_field' | 'number_integer' | 'number_decimal' | 'json' | 'boolean' | 'url'

Data type of the metafield value<br> Type allows:<br> single_line_text_field - One line of string (max 50 characters)<br> multi_line_text_field - Multiple line of string (max 1000 characters)<br> number_integer - Integer<br> number_decimal - Decimal<br> json - String of JSON object (max 4000 characters)<br> boolean - Boolean<br> url - String of URL<br>

created_atstring
updated_atstring
metafield_type'merchant' | 'app'

Type of the metafield

resource_idstring

Resource ID

application_idstring

Application ID

Example response

{
  "id": "5ad86757e38809441400001b",
  "namespace": "sales",
  "key": "discount",
  "field_type": "number_integer",
  "field_value": 10,
  "created_at": "2021-12-01T03:12:11.666+00:00",
  "updated_at": "2021-12-02T09:35:12.555+00:00",
  "metafield_type": "app",
  "resource_id": "62f9f0c76f4ae6001e4b00f2",
  "application_id": "65f90df935bfdf37a27cfb40"
}