{
  "opencollection": "1.0.0",
  "info": {
    "name": "Accounting subpackage_creditNotes API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "subpackage_creditNotes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/credit-notes",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "query",
                "description": "If provided, will only return credit notes for this company."
              },
              {
                "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_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": "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": "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": "transaction_date_after",
                "value": "",
                "type": "query",
                "description": "If provided, will only return objects created after this datetime."
              },
              {
                "name": "transaction_date_before",
                "value": "",
                "type": "query",
                "description": "If provided, will only return objects created before this datetime."
              }
            ]
          },
          "docs": "Returns a list of `CreditNote` objects.{/* BEGIN_ACCOUNTING_CREDITNOTE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZbVMiORD+K1Q+WsCcsmhJ1dUVb656y+gqbultWamYaYfATDLmBYGt/e9XGQYHcAC5xdfbb5B0ujPdTz/dSX4gSjT4Qg5RBRFKheGacR/lUSg8CFAF1SV4TLtCA8ojEjGXhDAji/s7KI+UiSIhNXgHDAJPHUq4RRXkhCB9KBjObhl4TrrIYVyDL4lmgivnYXHhNl6N8ihgvAdedbxgtbqxeCEZmfurnIApjfIoIkrpjhTG75zBnQH1BM12bwGEwDUJCh7RxJnSUpBjNVlj9is8CECD1yCaNEADtZ+bWOxoHamK43QgiIqx9aIHfQ"
        },
        {
          "info": {
            "name": "Create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.merge.dev/api/accounting/v1/credit-notes",
            "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 a `CreditNote` object with the given values.{/* BEGIN_ACCOUNTING_CREDITNOTE_CREATE_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"POST\" data=\"H4sIAAAAAAAAA9VVYW8aORD9K5U/omX3CKVRkKoTCbmWSCxNQqpGVWQN9rA4eO2NPUsIVf77ybu0wDVRU4m79r6s7PHMG8+8N94vTABhZt0D6zIQwpaGlMlYxHIrUbMuO3EoFaWWkEUMCpVCjju+fHHAIubLorCOUP6lUEv/3uGUdVmSo8uwWRo1VSiTTVCiDGHmgJQ1PvkW3JxW0SxiWpk5yl4d8GO42r25tvxj6xOtPLGIFeA9zZwts9kF3pXoX4Ac7qYxR0OgmxIIki2UpqthnrKFKiRqJJR9IOgjoQjlrjPOiArfTZIZ6iK"
        },
        {
          "info": {
            "name": "Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/credit-notes/: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_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 a `CreditNote` object with the given `id`.{/* BEGIN_ACCOUNTING_CREDITNOTE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZbVMiORD+K1Q+WsCcsmhJ1dUVb656y+gqbultWamYaYfATDLmBYGt/e9XGQYHcAC5xdfbb5B0ujPdTz/dSX4gSjT4Qg5RBRFKheGacR/lUSg8CFAF1SV4TLtCA8ojEjGXhDAji/s7KI+UiSIhNXgHDAJPHUq4RRXkhCB9KBjObhl4TrrIYVyDL4lmgivnYXHhNl6N8ihgvAdedbxgtbqxeCEZmfurnIApjfIoIkrpjhTG75zBnQH1BM12bwGEwDUJCh7RxJnSUpBjNVlj9is8CECD1yCaNEADtZ+bWOxoHamK43Q"
        },
        {
          "info": {
            "name": "Partial Update",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.merge.dev/api/accounting/v1/credit-notes/: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 a `CreditNote` object with the given `id`.{/* BEGIN_ACCOUNTING_CREDITNOTE_EDIT_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"PATCH\" data=\"H4sIAAAAAAAAA8WTbU8aQRDHv0qzL8nBFRCNJE3Dg1VIOKqi0RizGfaGY2Fv99gHQIzfvdkDFVprbWPju5vZmf/czG/mnjCwmCh9R+oEGFNOWi4TEpBUxShInbQ0xtxGyiIJCGQ8ghR3Yum8QgJiXJYpbTH+xlHE5kTjiNRJmKJOsOgkH3GMw+ekkEuLiQbLlTThU3JxlGeTgAgupxg31gl/lluHFzeen0wTCm4sCUgGxtixVi4Zn+HMoXmDsv83gSlKC6IYg4VwS6Wo1zIv+XwXMQq0GLfBQhstMt/upuLY2szUw3CMIivl1Usxzk"
        },
        {
          "info": {
            "name": "Application Create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.merge.dev/api/accounting/v1/credit-notes/:id/application",
            "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": "Creates a new CreditNoteApplyLine to apply a credit note to an invoice{/* BEGIN_ACCOUNTING_CREDITNOTE_CREATE_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"POST\" data=\"H4sIAAAAAAAAA9VVYW8aORD9K5U/omX3CKVRkKoTCbmWSCxNQqpGVWQN9rA4eO2NPUsIVf77ybu0wDVRU4m79r6s7PHMG8+8N94vTABhZt0D6zIQwpaGlMlYxHIrUbMuO3EoFaWWkEUMCpVCjju+fHHAIubLorCOUP6lUEv/3uGUdVmSo8uwWRo1VSiTTVCiDGHmgJQ1PvkW3JxW0SxiWpk5yl4d8GO42r25tvxj6xOtPLGIFeA9zZwts9kF3pXoX4Ac7qYxR0OgmxIIki2UpqthnrKFKiRqJJR9IOgjo"
        },
        {
          "info": {
            "name": "Meta Patch Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/credit-notes/meta/patch/:id",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns metadata for `CreditNote` PATCHs.{/* BEGIN_ACCOUNTING_CREDITNOTE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZbVMiORD+K1Q+WsCcsmhJ1dUVb656y+gqbultWamYaYfATDLmBYGt/e9XGQYHcAC5xdfbb5B0ujPdTz/dSX4gSjT4Qg5RBRFKheGacR/lUSg8CFAF1SV4TLtCA8ojEjGXhDAji/s7KI+UiSIhNXgHDAJPHUq4RRXkhCB9KBjObhl4TrrIYVyDL4lmgivnYXHhNl6N8ihgvAdedbxgtbqxeCEZmfurnIApjfIoIkrpjhTG75zBnQH1BM12bwGEwDUJCh7RxJnSUpBjNVlj9is8CECD1yCaNEADtZ+bWOxoHamK43QgiIqx9aIH"
        },
        {
          "info": {
            "name": "Meta Post Retrieve",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.merge.dev/api/accounting/v1/credit-notes/meta/post",
            "headers": [
              {
                "name": "Authorization",
                "value": ""
              },
              {
                "name": "X-Account-Token",
                "value": ""
              }
            ]
          },
          "docs": "Returns metadata for `CreditNote` POSTs.{/* BEGIN_ACCOUNTING_CREDITNOTE_FETCH_SUPPORTED_FIELDS */}<Footer><MergeSupportedFieldsByIntegrationWidget requestType=\"GET\" data=\"H4sIAAAAAAAAA+1ZbVMiORD+K1Q+WsCcsmhJ1dUVb656y+gqbultWamYaYfATDLmBYGt/e9XGQYHcAC5xdfbb5B0ujPdTz/dSX4gSjT4Qg5RBRFKheGacR/lUSg8CFAF1SV4TLtCA8ojEjGXhDAji/s7KI+UiSIhNXgHDAJPHUq4RRXkhCB9KBjObhl4TrrIYVyDL4lmgivnYXHhNl6N8ihgvAdedbxgtbqxeCEZmfurnIApjfIoIkrpjhTG75zBnQH1BM12bwGEwDUJCh7RxJnSUpBjNVlj9is8CECD1yCaNEADtZ+bWOxoHamK43QgiIqx9aIHf"
        }
      ]
    }
  ],
  "bundled": true
}