{"id":3359,"date":"2017-02-07T11:43:22","date_gmt":"2017-02-07T09:43:22","guid":{"rendered":"http:\/\/www.erplybooks.com\/api\/"},"modified":"2023-07-07T06:42:52","modified_gmt":"2023-07-07T06:42:52","slug":"api","status":"publish","type":"page","link":"https:\/\/www.erplybooks.com\/ru\/api\/","title":{"rendered":"API"},"content":{"rendered":"<div id=\"getting-started\" class=\"section\" data-nav-title=\"Getting Started\">\n<div class=\"section-title\">\n<h1>API in ERPLY Books<\/h1>\n<p>Why choose ERPLY Books accounting API? Because it is full-featured,\u00a0provides support for the current system in your business and supports your software with various features. If you want to know more about the world&#8217;s best accounting API then <a href=\"https:\/\/www.erplybooks.com\/api-integratsioon\/\">click here<\/a>!<\/p>\n<p>&nbsp;<\/p>\n<h3>API Token<\/h3>\n<\/div>\n<div id=\"authentication\" class=\"sub-section clearfix\">\n<div class=\"content-right\">\n<p>You need API token for all queries. The token is connected with the user and the organisation, meaning that users can have multiple tokens if they have more than one organisation in ERPLY Books.<\/p>\n<p>&nbsp;<\/p>\n<h3>API Structure<\/h3>\n<p>All the methods are REST based.<br \/>\nBase url: <code>https:\/\/api.erplybooks.com\/api<\/code><br \/>\nIf your API token is <code>paejtblf2q2j6jvt4pscbm4jc2nsicjhmtqm9bqs<\/code> then your requests should have header:<br \/>\nX-API-TOKEN: <code>paejtblf2q2j6jvt4pscbm4jc2nsicjhmtqm9bqs<\/code>.<br \/>\nAnother alternative is using the url query parameter (less secure), if necessary (to test some requests in the browser, for example) by adding <code>?token=paejtblf2q2j6jvt4pscbm4jc2nsicjhmtqm9bqs<\/code> to the end of the request URL.<\/p>\n<p>The Content-Type header should be set to application\/json or application\/xml, although we strongly recommend using the JSON format. You can also specify the response type by adding either .json or .xml right before the start of the query string, for example:<\/p>\n<p><code>https:\/\/api.erplybooks.com\/api\/customers.json<\/code><\/p>\n<p>GET and POST are allowed with all request types. If you\u2019d like to delete or update an item, you have to provide the item\u2019s id in the url like this:<br \/>\n<code>https:\/\/api.erplybooks.com\/api\/REQUEST_TYPE\/ITEM_ID<\/code><\/p>\n<\/div>\n<\/div>\n<div id=\"custom-types\" class=\"sub-section clearfix\">\n<div class=\"content-left\">\n<p>&nbsp;<\/p>\n<h3>Custom Types with API<\/h3>\n<\/div>\n<div class=\"content-right\">\n<p>To make different queries you may need to add different types (document type, currency, language etc). You have to use custom types set by ERPLY Books. See them <a href=\"https:\/\/www.erplybooks.com\/ru\/api-dictionary\/\">here<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<div id=\"report-generator\" class=\"sub-section clearfix\">\n<div class=\"content-left\">\n<h3>Report Generator through the API<\/h3>\n<\/div>\n<div class=\"content-right\">To access ERPLY Books&#8217; report generator through the API, <a href=\"https:\/\/www.erplybooks.com\/ru\/report-generator-api-documentation\/\">click here<\/a>.<\/div>\n<\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div id=\"getting-started\" class=\"section\" data-nav-title=\"Getting Started\">\n<div id=\"report-generator\" class=\"sub-section clearfix\">\n<h2 class=\"content-right\">API Requests<\/h2>\n<\/div>\n<\/div>\n<div id=\"requests\" class=\"section\" data-nav-title=\"Requests\">\n<div id=\"requests\" class=\"sub-section clearfix\">\n<div class=\"content-left\">\n<h3>Available Request Types with API<\/h3>\n<\/div>\n<div class=\"content-right\">\n<table class=\"table table-bordered\" style=\"height: 302px;\">\n<thead>\n<tr style=\"height: 46px;\">\n<th style=\"height: 46px; width: 120.09375px;\"><\/th>\n<th style=\"text-align: center; height: 46px; width: 32px;\">GET<\/th>\n<th style=\"text-align: center; height: 46px; width: 38.125px;\">POST<\/th>\n<th style=\"text-align: center; height: 46px; width: 32px;\">PUT<\/th>\n<th style=\"text-align: center; height: 46px; width: 55.25px;\">DELETE<\/th>\n<th style=\"height: 46px; width: 118.296875px;\">REQUEST_TYPE<br \/>\n(goes to URL)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px; width: 120.09375px;\">Account Entries<\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 38.125px;\"><\/td>\n<td style=\"height: 32px; width: 32px;\"><\/td>\n<td style=\"height: 32px; width: 55.25px;\"><\/td>\n<td style=\"height: 32px; width: 118.296875px;\">account_entries<\/td>\n<\/tr>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px; width: 120.09375px;\">Accounts<\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 38.125px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 55.25px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 118.296875px;\">accounts<\/td>\n<\/tr>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px; width: 120.09375px;\">Articles<\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 38.125px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 55.25px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 118.296875px;\">articles<\/td>\n<\/tr>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px; width: 120.09375px;\">Customers<\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 38.125px;\"><\/td>\n<td style=\"height: 32px; width: 32px;\"><\/td>\n<td style=\"height: 32px; width: 55.25px;\"><\/td>\n<td style=\"height: 32px; width: 118.296875px;\">customers<\/td>\n<\/tr>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px; width: 120.09375px;\">Invoices<\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 38.125px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 55.25px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API \" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 118.296875px;\">invoices<\/td>\n<\/tr>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px; width: 120.09375px;\">Payments<\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 38.125px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 55.25px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 118.296875px;\">payments<\/td>\n<\/tr>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px; width: 120.09375px;\">Projects<\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 38.125px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 55.25px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 118.296875px;\">projects<\/td>\n<\/tr>\n<tr style=\"height: 32px;\">\n<td style=\"height: 32px; width: 120.09375px;\">Transaction Entries<\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 38.125px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 32px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 55.25px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2863 size-full\" src=\"https:\/\/www.erplybooks.com\/wp-content\/uploads\/2017\/01\/check-e1485180850624.png\" alt=\"API\" width=\"32\" height=\"32\" \/><\/td>\n<td style=\"height: 32px; width: 118.296875px;\">transaction_entries<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<div id=\"requests\" class=\"section\" data-nav-title=\"Requests\">\n<div id=\"structure-navbar\" class=\"sub-section clearfix\">\n<div class=\"content-left\">\n<h3>Request URL<\/h3>\n<\/div>\n<div class=\"content-right\">\n<h4>GET, POST<\/h4>\n<p>GET and POST requests don&#8217;t require an ID.<br \/>\nURL example: <code>https:\/\/api.erplybooks.com\/api\/invoices<\/code><\/p>\n<h4>PUT, DELETE<\/h4>\n<p>PUT and DELETE requests do require an ID.<br \/>\nURL example: <code>https:\/\/api.erplybooks.com\/api\/invoices\/INVOICE_ID<\/code><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div id=\"methods\" class=\"section\" data-nav-title=\"Methods\">\n<div class=\"section-title\">\n<p>&nbsp;<\/p>\n<h2>API Methods<\/h2>\n<h3>Account Entries<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/account_entries\/\">\/api\/account_entries\/<\/a><br \/>\nHere you can find how to get account entries data.<\/p>\n<h3>Accounts<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/accounts\/\">\/api\/accounts\/<\/a><br \/>\nHere you will find information how to add, edit and delete accounts<\/p>\n<h3>Attributes<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/attributes\/\">\/api\/attributes\/<\/a><\/p>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/attributes-v2\/\">\/api\/attributes\/v2<\/a><\/p>\n<h3>Tax Rates<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/tax_rates\/\">\/api\/tax_rates\/<\/a><br \/>\nHere you can find how to add, edit and delete tax rates.<\/p>\n<h3>Articles<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/articles\/\">\/api\/articles\/<\/a><br \/>\nHere you can find how to add, edit and delete tax rates.<\/p>\n<h3>Customers<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/customers\/\">\/api\/customers\/v2<\/a><br \/>\nHere you can find how to add, edit and delete customers. Note: by using partner API customers and suppliers can be created by the document (invoice \/ order etc). Also please note that customers have two API versions.<\/p>\n<h3>Invoices<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/invoices\/\">\/api\/invoices\/<\/a><br \/>\nSending invoices is the most important part of the API: with invoice object you can send customer\/supplier, invoice rows, payments, payer, connections with other documents, document attributes.<br \/>\nAlso invoice API applies to all document types: sales invoice, purchase invoice, order, purchase order, waybill, purchase waybill, price offer, sales contract ,purchase contract.<br \/>\nPlease also look how to <a href=\"https:\/\/www.erplybooks.com\/partner-api\/\">PARTNER API<\/a> and <a href=\"https:\/\/www.erplybooks.com\/api\/invoices-add_to_queue\/\">Queue<\/a><\/p>\n<h3>Payments<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/payments\/\">\/api\/payments\/<\/a><br \/>\nDescribes how to add, edit and delete payments.<\/p>\n<\/div>\n<h3>Payments\/Import<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/payments-import\/\">\/api\/payments\/import<\/a><br \/>\nDescribes how to create bank import and payment files<\/p>\n<div class=\"section-title\">\n<h3>Projects<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/projects\/\">\/api\/projects\/<\/a><br \/>\nHere you can find how to add, edit and delete projects.<\/p>\n<h3>Transaction Entries<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/transaction_entries\/\">\/api\/transaction_entries<\/a><br \/>\nDescribes how to add, edit and delete transaction entries.<\/p>\n<h3>Reports<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/reports\/\">\/api\/reports<\/a><br \/>\nHere you can find how to get reports.<\/p>\n<h3>Attachments<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/attachments\/\">\/api\/attachments<\/a><br \/>\nDescribes how to get, add and delete attachments.<\/p>\n<h3>Queue<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/invoices-add_to_queue\/\">\/api\/invoices\/add_to_queue\/<\/a><\/p>\n<h3>Organisation<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/organisation\/\">\/api\/organisation<\/a><\/p>\n<h3>Dictionary<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/ru\/api-dictionary\/\">API Dictionary<\/a><br \/>\nHere you can find a dictionary regarding API.<\/p>\n<h3>Partner API<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/partner-api\/\">Partner API<\/a><\/p>\n<h3>Custom API access points<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/api\/custom-api-access-points\/\">Custom API access points<\/a><\/p>\n<\/div>\n<\/div>\n<h3>Document types<\/h3>\n<p><a href=\"https:\/\/www.erplybooks.com\/document-types\/\">Document types<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>API in ERPLY Books Why choose ERPLY Books accounting API? Because it is full-featured,\u00a0provides support for the current system in your business and supports your software with various features. If you want to know more about the world&#8217;s best accounting API then click here! &nbsp; API Token You need API token for all queries. The [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":81,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[739],"tags":[740,740,1161],"class_list":{"0":"post-3359","1":"page","2":"type-page","3":"status-publish","4":"hentry","5":"category-integrations-ru","6":"tag-api-ru","8":"tag-integration-ru"},"_links":{"self":[{"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/pages\/3359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/comments?post=3359"}],"version-history":[{"count":0,"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/pages\/3359\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/media?parent=3359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/categories?post=3359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.erplybooks.com\/ru\/wp-json\/wp\/v2\/tags?post=3359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}