{"id":22713,"date":"2025-04-17T13:38:30","date_gmt":"2025-04-17T13:38:30","guid":{"rendered":"https:\/\/clockify.me\/help\/?p=22713"},"modified":"2026-04-22T12:37:34","modified_gmt":"2026-04-22T12:37:34","slug":"how-to-add-expenses-for-limited-members-via-api","status":"publish","type":"post","link":"https:\/\/clockify.me\/help\/troubleshooting\/how-to-add-expenses-for-limited-members-via-api","title":{"rendered":"How to add expenses for Limited members via API"},"content":{"rendered":"\n<p>This article will guide you through the process of adding expenses for Limited members using the Clockify API.<\/p>\n\n\n\n<div class=\"wp-block-custom-highlight-box custom-box color-green\"><div class=\"box-header\"><svg width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\"><mask id=\"mask-green\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"24\" height=\"24\"><rect width=\"24\" height=\"24\" fill=\"#D9D9D9\"><\/rect><\/mask><g mask=\"url(#mask-green)\"><path d=\"M5 21.0001C4.45 21.0001 3.97917 20.8043 3.5875 20.4126C3.19583 20.0209 3 19.5501 3 19.0001V5.0001C3 4.4501 3.19583 3.97926 3.5875 3.5876C3.97917 3.19593 4.45 3.0001 5 3.0001H13.925L11.925 5.0001H5V19.0001H19V12.0501L21 10.0501V19.0001C21 19.5501 20.8042 20.0209 20.4125 20.4126C20.0208 20.8043 19.55 21.0001 19 21.0001H5ZM9 15.0001V10.7501L18.175 1.5751C18.375 1.3751 18.6 1.2251 18.85 1.1251C19.1 1.0251 19.35 0.975098 19.6 0.975098C19.8667 0.975098 20.1208 1.0251 20.3625 1.1251C20.6042 1.2251 20.825 1.3751 21.025 1.5751L22.425 3.0001C22.6083 3.2001 22.75 3.42093 22.85 3.6626C22.95 3.90426 23 4.1501 23 4.4001C23 4.6501 22.9542 4.89593 22.8625 5.1376C22.7708 5.37926 22.625 5.6001 22.425 5.8001L13.25 15.0001H9ZM11 13.0001H12.4L18.2 7.2001L17.5 6.5001L16.775 5.8001L11 11.5751V13.0001Z\" fill=\"#4CAF50\"><\/path><\/g><\/svg><span class=\"box-label\">Note<\/span><\/div><div class=\"box-content\">\n<p>If you are on a Free plan, you can only have 30 API requests per hour for the free workspace.<\/p>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Add expenses for Limited members<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Get user IDs of Limited members<\/strong>:<br>\n<ul class=\"wp-block-list\">\n<li class=\"translation-block\">Since the <code>GET \/workspaces\/{workspaceId}\/users<\/code> endpoint does not provide information about Limited members, you need to extract the <strong>user IDs<\/strong> from the user groups endpoint<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Get the category ID for the expense<\/strong>:<br>\n<ul class=\"wp-block-list\">\n<li>Use the following endpoint to get the category ID:\n<ul class=\"wp-block-list\">\n<li><code>GET \/workspaces\/{workspaceId}\/expenses\/categories<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Make sure to choose the correct category for the expense<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Create the expense<\/strong>:<br>\n<ul class=\"wp-block-list\">\n<li>Once you have the category ID, you can create an expense using the following endpoint:\n<ul class=\"wp-block-list\">\n<li><code>POST \/workspaces\/{workspaceId}\/expenses<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li class=\"translation-block\">Remember to send the request in <strong>form-data format<\/strong>, not raw JSON format<\/li>\n\n\n\n<li>Include the user ID of the Limited member, category ID, and other expense details in the body<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p class=\"translation-block\">If the request is successful, you will receive a <code>201 Created<\/code> status code.<br>The expense will be created for the Limited member as expected.<\/p>\n","protected":false},"excerpt":{"rendered":"This article will guide you through the process of adding expenses for Limited m&#8230;","protected":false},"author":25,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_helpful_status":1,"_searchwp_excluded":"","footnotes":""},"categories":[75],"tags":[],"class_list":["post-22713","post","type-post","status-publish","format-standard","hentry","category-api-response"],"acf":[],"featured_image_src":null,"author_info":{"display_name":"tamara radijevac","author_link":"https:\/\/clockify.me\/help\/author\/tamara-radijevac"},"_links":{"self":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/comments?post=22713"}],"version-history":[{"count":6,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22713\/revisions"}],"predecessor-version":[{"id":30978,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/posts\/22713\/revisions\/30978"}],"wp:attachment":[{"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/media?parent=22713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/categories?post=22713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clockify.me\/help\/wp-json\/wp\/v2\/tags?post=22713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}