def create(self, store_id, promo_rule_id, data):
self.store_id = store_id<EOL>if '<STR_LIT:id>' not in data:<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT:code>' not in data:<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' not in data:<EOL><INDENT>raise KeyError('<STR_LIT>')<EOL><DEDENT>response = self._mc_client._post(url=self._build_path(store_id, '<STR_LIT>', promo_rule_id, '<STR_LIT>'), data=data)<EOL>if response is not None:<EOL><INDENT>return response<EOL><DEDENT>
Add a new promo code to a store.

:param store_id: The store id
:type store_id: :py:class:`str`
:param data: The request body parameters
:type data: :py:class:`dict'
data = {
    "id": string*,
    "code": string*,
    "redemption_url": string*,
    "usage_count": string,
    "enabled": boolean,
    "created_at_foreign": string,
    "updated_at_foreign": string,
}