Update a specific finance default

POST /financedefaults/{setting}

Change a defaults used in the system relating to finances

Path parameters

  • setting string Required

    this is one of the available settings

    Values are receipt_one_off, receipt_to, first_tax_month, tax_receipt_organisation, tax_receipt_address1, tax_receipt_address2, tax_receipt_address3, tax_receipt_address4, charity_number, currency, currency_symbol, or salestax_rate.

Responses

  • 200 application/json

    Item has been saved

    Hide response attribute Show response attribute object
    • ok integer

      The item has completed the save. 1 = OK

  • 400 application/json

    One or more errors have occurred

    Hide response attributes Show response attributes object
    • error string Deprecated

      A single error text or code

    • errors object

      An array of fields and the errors for each field

      Additional properties are allowed.

      Hide errors attribute Show errors attribute object
      • errorfield array[object]

        errorfield is the name of the field that is in error

        Hide errorfield attributes Show errorfield attributes object
        • code integer

          the specific error code for this error

        • message string

          the error message for this error

  • 403 application/json

    Invalid permission

    Hide response attribute Show response attribute object
  • 404 application/json

    Not Found

    Hide response attribute Show response attribute object
POST /financedefaults/{setting}
curl \
 -X POST https://YOURSITE.infoodle.com/apiv2/financedefaults/receipt_to \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "ok": [
    1
  ]
}
Response examples (400)
{
  "error": "Invalid field contents",
  "errors": {
    "errorfield": [
      {
        "code": 400,
        "message": "Invalid value supplied for field"
      }
    ]
  }
}
Response examples (403)
{
  "error": "Invalid Permission"
}
Response examples (404)
{
  "error": "Not Found"
}