{"id":3868,"date":"2021-01-18T11:48:19","date_gmt":"2021-01-18T09:48:19","guid":{"rendered":"https:\/\/modulus.help\/kb\/docs\/documentation\/bookkeeping-module-apis\/modulus-response-message-codes\/"},"modified":"2021-01-19T14:55:33","modified_gmt":"2021-01-19T12:55:33","slug":"error-codes","status":"publish","type":"docs","link":"https:\/\/modulus.help\/kb\/docs\/documentation\/bookkeeping-apis-v1\/error-codes\/","title":{"rendered":"Error Codes"},"content":{"rendered":"<p>This is a list of modulus response codes and their meaning in case of an unsuccessful request.<\/p>\n<table style=\"width: 47rem;\">\n<thead>\n<tr>\n<th>Code<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th style=\"text-align: left;\">1232<\/th>\n<td>Missing journal details.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1233<\/th>\n<td>Missing journal date parameter.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1234<\/th>\n<td>Incorrect date parameter format.<br \/>\n                <br \/>Date format must follow ISO 8601 format. (Example: &#8216;2020-01-10&#8217;)<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1235<\/th>\n<td>Missing journal entries.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1236<\/th>\n<td>Missing journal ID.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1237<\/th>\n<td>Invalid journal ID.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1241<\/th>\n<td>Missing account code for journal entry.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1239<\/th>\n<td>Invalid account code for journal entry.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1240<\/th>\n<td>Invalid currency for journal entry.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1230<\/th>\n<td>Journal is not allowed for your app.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1227<\/th>\n<td>Debit amount must be equal to credit amount.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1231<\/th>\n<td>Debit and credit amounts must be greater than zero.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1228<\/th>\n<td>Journal number is previously used.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1229<\/th>\n<td>Action not allowed while journal not in review or pending status.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1226<\/th>\n<td>Fiscal period is closed.<\/td>\n<\/tr>\n<tr>\n<th style=\"text-align: left;\">1225<\/th>\n<td>Could not create new fiscal year.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"featured_media":0,"parent":3778,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"comment_count":0,"_links":{"self":[{"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/3868"}],"collection":[{"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/comments?post=3868"}],"version-history":[{"count":14,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/3868\/revisions"}],"predecessor-version":[{"id":4183,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/3868\/revisions\/4183"}],"up":[{"embeddable":true,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/3778"}],"next":[{"title":"API: Create Journal","link":"https:\/\/modulus.help\/kb\/docs\/documentation\/bookkeeping-apis-v1\/api-create-journal\/","href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/docs\/3779"}],"wp:attachment":[{"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/media?parent=3868"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/modulus.help\/kb\/wp-json\/wp\/v2\/doc_tag?post=3868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}