Modifiers

Lists all modifiers

get
Responses
200Success
application/json
get
GET /v1/core/modifiers HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "items": [
      {
        "locales": {
          "ar": {
            "name": "text",
            "description": "text"
          },
          "en": {
            "name": "text",
            "description": "text"
          }
        },
        "minSelection": 1,
        "maxSelection": 1,
        "createdAt": "text",
        "createdVia": "text",
        "createdBy": "text",
        "updatedAt": "text",
        "updatedVia": "text",
        "updatedBy": "text",
        "id": "text",
        "options": [
          {
            "id": "text",
            "locales": {
              "ar": {
                "name": "text",
                "description": "text"
              },
              "en": {
                "name": "text",
                "description": "text"
              }
            },
            "price": 1,
            "isActive": true,
            "sortNumber": 1,
            "multiple": true,
            "createdAt": "text",
            "createdVia": "text",
            "createdBy": "text",
            "updatedAt": "text",
            "updatedVia": "text",
            "updatedBy": "text",
            "uomAssignmentUid": "text",
            "uomUid": "text",
            "productUid": "text"
          }
        ]
      }
    ]
  }
}

Creates a new modifier

post
Body
Responses
200Success
application/json
post
POST /v1/core/modifiers HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 142

{
  "params": {
    "locales": {
      "ar": {
        "name": "text",
        "description": "text"
      },
      "en": {
        "name": "text",
        "description": "text"
      }
    },
    "minSelection": 1,
    "maxSelection": 1
  }
}
200Success
{
  "Params": {
    "locales": {
      "ar": {
        "name": "text",
        "description": "text"
      },
      "en": {
        "name": "text",
        "description": "text"
      }
    },
    "minSelection": 1,
    "maxSelection": 1
  },
  "Data": {
    "item": {
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "minSelection": 1,
      "maxSelection": 1,
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "id": "text",
      "options": [
        {
          "id": "text",
          "locales": {
            "ar": {
              "name": "text",
              "description": "text"
            },
            "en": {
              "name": "text",
              "description": "text"
            }
          },
          "price": 1,
          "isActive": true,
          "sortNumber": 1,
          "multiple": true,
          "createdAt": "text",
          "createdVia": "text",
          "createdBy": "text",
          "updatedAt": "text",
          "updatedVia": "text",
          "updatedBy": "text",
          "uomAssignmentUid": "text",
          "uomUid": "text",
          "productUid": "text"
        }
      ]
    }
  }
}

Returns a modifier

get
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /v1/core/modifiers/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "minSelection": 1,
      "maxSelection": 1,
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "id": "text",
      "options": [
        {
          "id": "text",
          "locales": {
            "ar": {
              "name": "text",
              "description": "text"
            },
            "en": {
              "name": "text",
              "description": "text"
            }
          },
          "price": 1,
          "isActive": true,
          "sortNumber": 1,
          "multiple": true,
          "createdAt": "text",
          "createdVia": "text",
          "createdBy": "text",
          "updatedAt": "text",
          "updatedVia": "text",
          "updatedBy": "text",
          "uomAssignmentUid": "text",
          "uomUid": "text",
          "productUid": "text"
        }
      ]
    },
    "options": [
      {
        "id": "text",
        "locales": {
          "ar": {
            "name": "text",
            "description": "text"
          },
          "en": {
            "name": "text",
            "description": "text"
          }
        },
        "price": 1,
        "isActive": true,
        "sortNumber": 1,
        "multiple": true,
        "createdAt": "text",
        "createdVia": "text",
        "createdBy": "text",
        "updatedAt": "text",
        "updatedVia": "text",
        "updatedBy": "text",
        "uomAssignmentUid": "text",
        "uomUid": "text",
        "productUid": "text"
      }
    ]
  }
}

Deletes a modifier

delete
Path parameters
idstringRequired
Responses
200Success
application/json
delete
DELETE /v1/core/modifiers/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}

Updates a modifier

patch
Path parameters
idstringRequired
Body
Responses
200Success
application/json
patch
PATCH /v1/core/modifiers/{id} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 71

{
  "params": {
    "id": "text",
    "locales": {},
    "minSelection": 1,
    "maxSelection": 1
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "minSelection": 1,
      "maxSelection": 1,
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "id": "text",
      "options": [
        {
          "id": "text",
          "locales": {
            "ar": {
              "name": "text",
              "description": "text"
            },
            "en": {
              "name": "text",
              "description": "text"
            }
          },
          "price": 1,
          "isActive": true,
          "sortNumber": 1,
          "multiple": true,
          "createdAt": "text",
          "createdVia": "text",
          "createdBy": "text",
          "updatedAt": "text",
          "updatedVia": "text",
          "updatedBy": "text",
          "uomAssignmentUid": "text",
          "uomUid": "text",
          "productUid": "text"
        }
      ]
    }
  }
}

Exports all modifiers with support for incremental fetching.

get
Path parameters
updatedSincestringRequired
offsetstringRequired
Responses
200Success
application/json
get
GET /v1/core/modifiers/export HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "items": [
      {
        "locales": {
          "ar": {
            "name": "text",
            "description": "text"
          },
          "en": {
            "name": "text",
            "description": "text"
          }
        },
        "minSelection": 1,
        "maxSelection": 1,
        "createdAt": "text",
        "createdVia": "text",
        "createdBy": "text",
        "updatedAt": "text",
        "updatedVia": "text",
        "updatedBy": "text",
        "id": "text",
        "options": [
          {
            "id": "text",
            "locales": {
              "ar": {
                "name": "text",
                "description": "text"
              },
              "en": {
                "name": "text",
                "description": "text"
              }
            },
            "price": 1,
            "isActive": true,
            "sortNumber": 1,
            "multiple": true,
            "createdAt": "text",
            "createdVia": "text",
            "createdBy": "text",
            "updatedAt": "text",
            "updatedVia": "text",
            "updatedBy": "text",
            "uomAssignmentUid": "text",
            "uomUid": "text",
            "productUid": "text"
          }
        ]
      }
    ],
    "next": "text"
  }
}

Creates a new modifier option

post
Body
Responses
200Success
application/json
post
POST /v1/core/modifier-options HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 221

{
  "params": {
    "modifierId": "text",
    "locales": {
      "ar": {
        "name": "text",
        "description": "text"
      },
      "en": {
        "name": "text",
        "description": "text"
      }
    },
    "price": 1,
    "isActive": true,
    "sortNumber": 1,
    "multiple": true,
    "productUid": "text",
    "uomUid": "text"
  }
}
200Success
{
  "Params": {
    "modifierId": "text",
    "locales": {
      "ar": {
        "name": "text",
        "description": "text"
      },
      "en": {
        "name": "text",
        "description": "text"
      }
    },
    "price": 1,
    "isActive": true,
    "sortNumber": 1,
    "multiple": true,
    "productUid": "text",
    "uomUid": "text"
  },
  "Data": {
    "item": {
      "id": "text",
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "price": 1,
      "isActive": true,
      "sortNumber": 1,
      "multiple": true,
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "uomAssignmentUid": "text",
      "uomUid": "text",
      "productUid": "text"
    }
  }
}

Deletes a modifier option

delete
Path parameters
idstringRequired
Responses
200Success
application/json
delete
DELETE /v1/core/modifier-options/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}

Updates a modifier option

patch
Path parameters
idstringRequired
Body
Responses
200Success
application/json
patch
PATCH /v1/core/modifier-options/{id} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 160

{
  "params": {
    "modifierId": "text",
    "id": "text",
    "locales": {},
    "price": 1,
    "isActive": true,
    "sortNumber": 1,
    "multiple": true,
    "productUid": "text",
    "uomAssignmentUid": "text"
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "id": "text",
      "locales": {
        "ar": {
          "name": "text",
          "description": "text"
        },
        "en": {
          "name": "text",
          "description": "text"
        }
      },
      "price": 1,
      "isActive": true,
      "sortNumber": 1,
      "multiple": true,
      "createdAt": "text",
      "createdVia": "text",
      "createdBy": "text",
      "updatedAt": "text",
      "updatedVia": "text",
      "updatedBy": "text",
      "uomAssignmentUid": "text",
      "uomUid": "text",
      "productUid": "text"
    }
  }
}

Was this helpful?