{
  "opencollection": "1.0.0",
  "info": {
    "name": "Accounting subpackage_invoices API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "subpackage_invoices",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/invoices",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "query",
                "description": "If provided, will only return invoices for this company."
              },
              {
                "name": "contact_id",
                "value": "",
                "type": "query",
                "description": "If provided, will only return invoices for this contact."
              },
              {
                "name": "created_after",
                "value": "",
                "type": "query",
                "description": "If provided, will only return objects created after this datetime."
              },
              {
                "name": "created_before",
                "value": "",
                "type": "query",
                "description": "If provided, will only return objects created before this datetime."
              },
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The pagination cursor value."
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces."
              },
              {
                "name": "include_deleted_data",
                "value": "",
                "type": "query",
                "description": "Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/)."
              },
              {
                "name": "include_remote_data",
                "value": "",
                "type": "query",
                "description": "Whether to include the original data Merge fetched from the third-party to produce these models."
              },
              {
                "name": "include_remote_fields",
                "value": "",
                "type": "query",
                "description": "Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format."
              },
              {
                "name": "include_shell_data",
                "value": "",
                "type": "query",
                "description": "Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null)."
              },
              {
                "name": "issue_date_after",
                "value": "",
                "type": "query",
                "description": "If provided, will only return objects created after this datetime."
              },
              {
                "name": "issue_date_before",
                "value": "",
                "type": "query",
                "description": "If provided, will only return objects created before this datetime."
              },
              {
                "name": "modified_after",
                "value": "",
                "type": "query",
                "description": "If provided, only objects synced by Merge after this date time will be returned."
              },
              {
                "name": "modified_before",
                "value": "",
                "type": "query",
                "description": "If provided, only objects synced by Merge before this date time will be returned."
              },
              {
                "name": "number",
                "value": "",
                "type": "query",
                "description": "If provided, will only return Invoices with this number."
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page. The maximum limit is 100."
              },
              {
                "name": "remote_fields",
                "value": "",
                "type": "query",
                "description": "Deprecated. Use show_enum_origins."
              },
              {
                "name": "remote_id",
                "value": "",
                "type": "query",
                "description": "The API provider's ID for the given object."
              },
              {
                "name": "show_enum_origins",
                "value": "",
                "type": "query",
                "description": "A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "If provided, will only return Invoices with this status.\n\n"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "If provided, will only return Invoices with this type.\n\n"
              }
            ]
          },
          "docs": "Returns a list of `Invoice` objects.{/* BEGIN_ACCOUNTING_INVOICE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1bWVMbORD+K655pHwEHKBw1daWsU2AjQcCTjbZVEola9q27Blp0GFsUvnvW5oDH4zPjG0gPOHR0dK0vu7+ukf8tAhW0OZiaJUsTAjXTFHWtrKWxx1wrZJ1wfqcErCyFvapjT2YGIj6B1bWktr3uVDgnFFwHXkuoGWVrIIHog05zWiLglMYTSpQpqAtsKKcycLj5FwrmG1lLZeyHjjlcMJiceHwXNQy9SgLLpXKylo+llJ1BNftzg3caZBLSDZ7c8EDprCbc7DChTEpORGKSWozb+GACwqcKla4CgqIed1oxY5SviwVCh1w/Xywet6BfgFY"
        },
        {
          "info": {
            "name": "Create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.merge.dev/api/accounting/v1/invoices",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "is_debug_mode",
                "value": "",
                "type": "query",
                "description": "Whether to include debug fields (such as log file links) in the response."
              },
              {
                "name": "run_async",
                "value": "",
                "type": "query",
                "description": "Whether or not third-party updates should be run asynchronously."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates an `Invoice` object with the given values.\n            Including a `PurchaseOrder` id in the `purchase_orders` property will generate an Accounts Payable Invoice from the specified Purchase Order(s).\n            {/* BEGIN_ACCOUNTING_INVOICE_CREATE_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"POST\" data=\"H4sIAAAAAAAAA9WXbW/aOhTHvwrySwTJbRlURZomCnSluqRbS6f1TpV1cA7BJbFTP1Bg2ne/cggl7dDa20Lv9irx0//YPj8fH38nDAxGUs1JkwBj0grDRUQqJJEhxqRJemIqOUNSIZDyABJ80JFO90"
        },
        {
          "info": {
            "name": "Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/invoices/:id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces."
              },
              {
                "name": "include_remote_data",
                "value": "",
                "type": "query",
                "description": "Whether to include the original data Merge fetched from the third-party to produce these models."
              },
              {
                "name": "include_remote_fields",
                "value": "",
                "type": "query",
                "description": "Whether to include all remote fields, including fields that Merge did not map to common models, in a normalized format."
              },
              {
                "name": "include_shell_data",
                "value": "",
                "type": "query",
                "description": "Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null)."
              },
              {
                "name": "remote_fields",
                "value": "",
                "type": "query",
                "description": "Deprecated. Use show_enum_origins."
              },
              {
                "name": "show_enum_origins",
                "value": "",
                "type": "query",
                "description": "A comma separated list of enum field names for which you'd like the original values to be returned, instead of Merge's normalized enum values. [Learn more](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)"
              }
            ]
          },
          "docs": "Returns an `Invoice` object with the given `id`.{/* BEGIN_ACCOUNTING_INVOICE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1bWVMbORD+K655pHwEHKBw1daWsU2AjQcCTjbZVEola9q27Blp0GFsUvnvW5oDH4zPjG0gPOHR0dK0vu7+ukf8tAhW0OZiaJUsTAjXTFHWtrKWxx1wrZJ1wfqcErCyFvapjT2YGIj6B1bWktr3uVDgnFFwHXkuoGWVrIIHog05zWiLglMYTSpQpqAtsKKcycLj5FwrmG1lLZeyHjjlcMJiceHwXNQy9SgLLpXKylo+llJ1BNftzg3caZBLSDZ7c8EDprCbc7DChTEpORGKSWozb+GACwqcKla4CgqIed1oxY5SviwVCh1w"
        },
        {
          "info": {
            "name": "Partial Update",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.merge.dev/api/accounting/v1/invoices/:id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "is_debug_mode",
                "value": "",
                "type": "query",
                "description": "Whether to include debug fields (such as log file links) in the response."
              },
              {
                "name": "run_async",
                "value": "",
                "type": "query",
                "description": "Whether or not third-party updates should be run asynchronously."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates an `Invoice` object with the given `id`.{/* BEGIN_ACCOUNTING_INVOICE_EDIT_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"PATCH\" data=\"H4sIAAAAAAAAA9VWbW/aMBD+K5M/IkhGGauKNE20sJVqmK2l06qpsg7nGgyOnfqFUqb+98mBlrB1W7dSqfuWO5+f893z+JxvhIPDVJtr0iLAufbKCZWSKsl0gpK0SE/NtOBIqgRyQSHDjUA22yFVYn2ea+MweSdQJvbQ4AVpkThDk2LNK3EhMInXm2KhHKYGnNDKxnebaxfFblIlUqgpJu3lhj/DLcNrK88Ppo2lsI5USQ7WurHRPh0f46VH+wDkcDaJGSoHspaAg7iEUjNLmPt8oYoEJTpMOuCggw55KHeVcexcbltxPEaZR0X2KMFZjCo"
        },
        {
          "info": {
            "name": "Line Items Remote Field Classes List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/invoices/line-items/remote-field-classes",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The pagination cursor value."
              },
              {
                "name": "include_deleted_data",
                "value": "",
                "type": "query",
                "description": "Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/)."
              },
              {
                "name": "include_remote_data",
                "value": "",
                "type": "query",
                "description": "Whether to include the original data Merge fetched from the third-party to produce these models."
              },
              {
                "name": "include_shell_data",
                "value": "",
                "type": "query",
                "description": "Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null)."
              },
              {
                "name": "is_common_model_field",
                "value": "",
                "type": "query",
                "description": "If provided, will only return remote field classes with this is_common_model_field value"
              },
              {
                "name": "is_custom",
                "value": "",
                "type": "query",
                "description": "If provided, will only return remote fields classes with this is_custom value"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page. The maximum limit is 100."
              }
            ]
          },
          "docs": "Returns a list of `RemoteFieldClass` objects.{/* BEGIN_ACCOUNTING_INVOICE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1bWVMbORD+K655pHwEHKBw1daWsU2AjQcCTjbZVEola9q27Blp0GFsUvnvW5oDH4zPjG0gPOHR0dK0vu7+ukf8tAhW0OZiaJUsTAjXTFHWtrKWxx1wrZJ1wfqcErCyFvapjT2YGIj6B1bWktr3uVDgnFFwHXkuoGWVrIIHog05zWiLglMYTSpQpqAtsKKcycLj5FwrmG1lLZeyHjjlcMJiceHwXNQy9SgLLpXKylo+llJ1BNftzg3caZBLSDZ7c8EDprCbc7DChTEpORGKSWozb+GACwqcKla4CgqIed1oxY5SviwVCh1w/Xy"
        },
        {
          "info": {
            "name": "Meta Patch Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/invoices/meta/patch/:id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns metadata for `Invoice` PATCHs.{/* BEGIN_ACCOUNTING_INVOICE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1bWVMbORD+K655pHwEHKBw1daWsU2AjQcCTjbZVEola9q27Blp0GFsUvnvW5oDH4zPjG0gPOHR0dK0vu7+ukf8tAhW0OZiaJUsTAjXTFHWtrKWxx1wrZJ1wfqcErCyFvapjT2YGIj6B1bWktr3uVDgnFFwHXkuoGWVrIIHog05zWiLglMYTSpQpqAtsKKcycLj5FwrmG1lLZeyHjjlcMJiceHwXNQy9SgLLpXKylo+llJ1BNftzg3caZBLSDZ7c8EDprCbc7DChTEpORGKSWozb+GACwqcKla4CgqIed1oxY5SviwVCh1w/Xywet6Bfg"
        },
        {
          "info": {
            "name": "Meta Post Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/invoices/meta/post",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ]
          },
          "docs": "Returns metadata for `Invoice` POSTs.{/* BEGIN_ACCOUNTING_INVOICE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1bWVMbORD+K655pHwEHKBw1daWsU2AjQcCTjbZVEola9q27Blp0GFsUvnvW5oDH4zPjG0gPOHR0dK0vu7+ukf8tAhW0OZiaJUsTAjXTFHWtrKWxx1wrZJ1wfqcErCyFvapjT2YGIj6B1bWktr3uVDgnFFwHXkuoGWVrIIHog05zWiLglMYTSpQpqAtsKKcycLj5FwrmG1lLZeyHjjlcMJiceHwXNQy9SgLLpXKylo+llJ1BNftzg3caZBLSDZ7c8EDprCbc7DChTEpORGKSWozb+GACwqcKla4CgqIed1oxY5SviwVCh1w/Xywet6BfgF"
        },
        {
          "info": {
            "name": "Remote Field Classes List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/invoices/remote-field-classes",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "The pagination cursor value."
              },
              {
                "name": "include_deleted_data",
                "value": "",
                "type": "query",
                "description": "Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. [Learn more](https://docs.merge.dev/integrations/hris/supported-features/)."
              },
              {
                "name": "include_remote_data",
                "value": "",
                "type": "query",
                "description": "Whether to include the original data Merge fetched from the third-party to produce these models."
              },
              {
                "name": "include_shell_data",
                "value": "",
                "type": "query",
                "description": "Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null)."
              },
              {
                "name": "is_common_model_field",
                "value": "",
                "type": "query",
                "description": "If provided, will only return remote field classes with this is_common_model_field value"
              },
              {
                "name": "is_custom",
                "value": "",
                "type": "query",
                "description": "If provided, will only return remote fields classes with this is_custom value"
              },
              {
                "name": "page_size",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page. The maximum limit is 100."
              }
            ]
          },
          "docs": "Returns a list of `RemoteFieldClass` objects.{/* BEGIN_ACCOUNTING_INVOICE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1bWVMbORD+K655pHwEHKBw1daWsU2AjQcCTjbZVEola9q27Blp0GFsUvnvW5oDH4zPjG0gPOHR0dK0vu7+ukf8tAhW0OZiaJUsTAjXTFHWtrKWxx1wrZJ1wfqcErCyFvapjT2YGIj6B1bWktr3uVDgnFFwHXkuoGWVrIIHog05zWiLglMYTSpQpqAtsKKcycLj5FwrmG1lLZeyHjjlcMJiceHwXNQy9SgLLpXKylo+llJ1BNftzg3caZBLSDZ7c8EDprCbc7DChTEpORGKSWozb+GACwqcKla4CgqIed1oxY5SviwVCh1w/Xy"
        },
        {
          "info": {
            "name": "Async Bulk Create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.merge.dev/api/accounting/v1/invoices/bulk",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates multiple `Invoice` objects with the given values.{/* BEGIN_ACCOUNTING_INVOICE_BULK_CREATE_SUPPORTED_FIELDS */}{/* END_ACCOUNTING_INVOICE_BULK_CREATE_SUPPORTED_FIELDS */}"
        },
        {
          "info": {
            "name": "Batch Objects List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/invoices/bulk/:batch_id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "batch_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns the status and results of an `Invoice` bulk create batch.{/* BEGIN_ACCOUNTING_INVOICE_BULK_FETCH_SUPPORTED_FIELDS */}{/* END_ACCOUNTING_INVOICE_BULK_FETCH_SUPPORTED_FIELDS */}"
        }
      ]
    }
  ],
  "bundled": true
}