---
updatedAt: 2026-06-02T12:53:51.000Z
agentTools:
  projectIndex: https://docs.trustpair.com/llms.txt
---

# Update a company account audit

This endpoint updates an existing company account audit.

Updates can include changes to supplier identifiers, IBAN/bank account information, and other audit details.

**Required permissions:**
- `company_account_audits_write`


# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "TRUSTPAIR API",
    "version": "v1",
    "description": "The Trustpair API is organized around REST. Our API has predictable resource-oriented URLs, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.\n\n# Definitions\nThe following API documentation is divided into different definitions. Switch between definitions using the select located at the top right of the page.\n\n# Authentication\n\nThe Trustpair API uses token to authenticate requests.\n\nThe Bearer authentication token must be provided with the request as a header: `Authorization: Bearer <token>`\n\nAll API requests must be made over `HTTPS`. Calls made over plain `HTTP` will fail.\n\nAPI requests without authentication will also fail.\n\n\n### Error response\n\nReturns a `401 UNAUTHORIZED` code if the provided bearer token is not found.\n\n# Rate limits\nLimits are placed on the number of requests that can be made on the Trustpair API (the currently enforced limit being 100 requests over a 10 seconds periods). These limits help us provide the reliable and scalable API that our customers rely on.\n\nIf the defined limit is exceeded, the API will return an HTTP code `429 Too Many Requests`.\n\n\n# Pagination\n\nThe API returns paginated results for list endpoints. By default, the number of items returned is 10.\n\nTrustpair utilizes cursor-based pagination via the `starting_after` and `ending_before` parameters.\nBoth parameters take an existing object ID value and return objects in reverse chronological order.\nThe `ending_before` parameter returns objects listed before the named object. The `starting_after` parameter returns objects listed after the named object.\nIf both parameters are provided, only `ending_before` is used.\n\n\n| Arguments      | Description                                                         | Required                | Example                                                |\n| -------------  |:-------------:                                                      | -----:                  | ---:                                                   |\n| limit          | A limit on the number of objects to be returned, between 1 and 100. | optional, default is 10 | */?limit=2                                             |\n| starting_after | A cursor for use in pagination                                      | optional                | */?starting_after=c58ac778-67b5-4f98-ba33-a1e9aaf394eb |\n| ending_before  | A cursor for use in pagination                                      | optional                | */?ending_before=c58ac778-67b5-4f98-ba33-a1e9aaf394eb  |\n\n\n# Filters\n\nThe API results can be filtered according to different criteria on every endpoint.\n\nThere is no theoric limit on how many different elements can be submitted in a filter, only that the request header should be kept under 8kb.\n\n| Arguments            | Description                                                                                    | Example                                                                                                       |\n| -------------        |:-------------:                                                                                 | ---------------------------------------:                                                                      |\n| ids                  | Returns selected objects                                                                       | /api/v1/paid_payments?ids=a414df38-f13b-48b6-95f7-f941ca121f28,a414df38-f13b-48b6-95f7-f941ca121f29           |\n| recents              | Returns objects evaluated in the last 24 hours                                                 | /api/v1/company_account_audits/recents                                                                        |\n| recents/?last_update | Returns the objects evaluated from the given date (included) (format: `%d/%m/%Y`)              | /api/v1/payment_checks/recents?last_update='01/01/2021'                                                       |\n| state                | Filters by global state (in `pending`, `favorable`, `unfavorable`, `anomaly` or `unevaluated`) | api/v1/company_account_checks/?state=unfavorable                                                              |\n\n# HTTP Codes\n\nTrustpair uses conventional HTTP response codes to indicate the success or failure of an API request.\n\n| Code                       | Description                                                             |\n| -------------              |:-------------:                                                          |\n| 200 - OK                   | Everything worked as expected                                           |\n| 202 - Accepted             | The request has been accepted and processing has not been completed yet |\n| 401 - Unauthorized         | No valid token was provided                                             |\n| 403 - Forbidden            | The token doesn't have permissions for the request                      |\n| 404 - Not found            | The requested resource doesn't exist                                    |\n| 422 - Unprocessable Entity | The request format was invalid                                          |\n| 429 - Too many requests    | The requests limit is exceeded                                          |\n\n# Webhooks\n\nThe webhook events documentation can be found by selecting `Webhooks - V1` in the [definitions](#definitions) select.\n\n"
  },
  "servers": [
    {
      "url": "https://app-sandbox.trustpair.com/"
    }
  ],
  "paths": {
    "/api/v1/company_account_audits/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "required": true,
          "description": "The unique identifier (UUID) of the company account audit to update.",
          "example": "123e4567-e89b-12d3-a456-426614174000"
        }
      ],
      "patch": {
        "summary": "Update a company account audit",
        "tags": [
          "Company account audits"
        ],
        "description": "This endpoint updates an existing company account audit.\n\nUpdates can include changes to supplier identifiers, IBAN/bank account information, and other audit details.\n\n**Required permissions:**\n- `company_account_audits_write`\n",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "Accept-Language",
            "in": "header",
            "schema": {
              "type": "string",
              "enum": [
                "en",
                "fr"
              ]
            },
            "required": false,
            "description": "Specifies the preferred language for the response. Supported languages:\n* `en` - English\n* `fr` - French\n\nIf not provided, the default language will be used.\n",
            "example": "en"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response code",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/company_account_audit"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized response code",
            "content": {
              "application/json": {
                "examples": {
                  "With invalid token": {
                    "value": {
                      "message": "Bearer token invalid or missing"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden response code",
            "content": {
              "application/json": {
                "examples": {
                  "Without required permissions": {
                    "value": {
                      "message": "Access requires permission: 'company_account_audits_write'"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found response code",
            "content": {
              "application/json": {
                "examples": {
                  "With non-existent company account audit ID": {
                    "value": {
                      "message": "Not found"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable content response code",
            "content": {
              "application/json": {
                "examples": {
                  "With duplicate IBAN across supplier list": {
                    "value": {
                      "message": "The requested update failed because it would introduce a duplicate entry. The provided data match an existing vendor (356a6969-e358-4e5f-a37e-97387f955caf)"
                    }
                  },
                  "With invalid supplier": {
                    "value": {
                      "message": "Validation failed: Supplier can't be blank"
                    }
                  },
                  "With a supplier_ids that is not an array of strings": {
                    "value": {
                      "message": "supplier_ids must be an array of strings"
                    }
                  },
                  "With an out-of-base Company Account Audit": {
                    "value": {
                      "message": "Company account audit is out of base and can't be modified"
                    }
                  }
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/patch_company_account_audit"
              },
              "examples": {
                "supplier_id_update": {
                  "summary": "When you need to update your internal supplier identifier",
                  "value": {
                    "supplier_id": "your_new_internal_unique_id_1"
                  }
                },
                "iban_update": {
                  "summary": "When the supplier changes its account IBAN",
                  "value": {
                    "iban": "ES00009999999999990123456"
                  }
                },
                "company_registrations_update": {
                  "summary": "Updating registrations via typed company_registrations array",
                  "value": {
                    "company_country_code": "FR",
                    "company_registrations": [
                      {
                        "type": "company/registration/siren",
                        "id": "832940670"
                      }
                    ]
                  }
                },
                "supplier_ids_reset": {
                  "summary": "When you want the supplier ID list reset to supplier_id alone",
                  "value": {
                    "supplier_ids": []
                  }
                },
                "supplier_ids_replace": {
                  "summary": "When you want to replace the whole supplier ID list",
                  "value": {
                    "supplier_ids": [
                      "your_internal_unique_id_1",
                      "your_internal_unique_id_2"
                    ]
                  }
                }
              }
            }
          },
          "required": true,
          "description": "The company account audit update payload"
        }
      }
    }
  },
  "tags": [
    {
      "name": "Company account audits",
      "description": "List and add companies to your suppliers list, and check their bank account data.\n            You can submit and retrieve a company account audit object to get the\n            Trustpair evaluation of a given company and bank account."
    }
  ],
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    },
    "schemas": {
      "company_registrations": {
        "type": "array",
        "nullable": true,
        "items": {
          "type": "object",
          "properties": {
            "type": {
              "type": "string",
              "description": "Registration type identifier. See the table above for the recommended value per country.",
              "enum": [
                "company/registration/siren",
                "company/registration/vat",
                "company/registration/duns",
                "company/registration/cif",
                "company/registration/ide",
                "company/registration/uscc",
                "company/registration/other_national"
              ]
            },
            "id": {
              "type": "string",
              "description": "Registration identifier value (e.g. SIREN number, VAT number with country prefix, DUNS number)."
            },
            "country_code": {
              "type": "string",
              "nullable": true,
              "description": "ISO 3166-1 alpha-2 country code for this registration. Defaults to `company_country_code` if omitted."
            }
          },
          "required": [
            "type",
            "id"
          ]
        },
        "description": "Typed company registrations array. Use this instead of the flat keys (`company_registration`, `tax_number`, `duns`) to provide one or more typed registration identifiers per company. When provided, each entry overrides the matching flat key (`company/registration/vat` → `tax_number`, `company/registration/duns` → `duns`, any other type → `company_registration`).\n\n**Recommended `type` per country / region:**\n\n| Country / Region                                | Recommended type                      | Notes                                        |\n|-------------------------------------------------|---------------------------------------|----------------------------------------------|\n| 🇫🇷 France                                       | `company/registration/siren`          | SIRET also accepted (first 9 digits = SIREN) |\n| 🇨🇭 Switzerland                                  | `company/registration/ide`            | Format: CHE + 9 digits                       |\n| 🇩🇪 🇬🇧 🇮🇹 🇪🇸 🇧🇪 + rest of Europe                  | `company/registration/vat`            | Include country prefix (e.g. DE, GB, IT)     |\n| 🇪🇸 Spain                                        | `company/registration/cif`            | Alternative to VAT for Spanish companies     |\n| 🇨🇳 China                                        | `company/registration/uscc`           | 18-character code from business licence      |\n| 🇧🇷 🇲🇽 🇺🇸 🇨🇦 + rest of world                      | `company/registration/duns`           | 9-digit DUNS from dnb.com                    |\n| Any country (fallback)                          | `company/registration/other_national` | Use when no specific type applies            |\n"
      },
      "patch_company_account_audit": {
        "type": "object",
        "properties": {
          "supplier_id": {
            "type": "string",
            "nullable": true,
            "description": "Your own unique supplier ID"
          },
          "supplier_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Every supplier ID Trustpair holds for this vendor. Send `[]` to reset the list to `supplier_id` alone; send a list to replace it. `supplier_id` is always kept in the list, so the response may hold one entry more than you sent. Blank entries are dropped and duplicates are removed. At most 10 entries are stored. A reset does not stop a retired ID coming back: if your next file or API call still sends it, it is added to the list again.",
            "maxItems": 10,
            "example": []
          },
          "company_name": {
            "type": "string",
            "nullable": true,
            "description": "Required - if company country code is US"
          },
          "company_raw_address": {
            "type": "string",
            "nullable": true
          },
          "company_country_code": {
            "type": "string",
            "nullable": true
          },
          "company_registration": {
            "type": "string",
            "nullable": true
          },
          "tax_number": {
            "type": "string",
            "nullable": true
          },
          "duns": {
            "type": "string",
            "nullable": true
          },
          "company_registrations": {
            "$ref": "#/components/schemas/company_registrations"
          },
          "first_name": {
            "type": "string",
            "nullable": true
          },
          "last_name": {
            "type": "string",
            "nullable": true
          },
          "middle_name": {
            "type": "string",
            "nullable": true
          },
          "other_name": {
            "type": "string",
            "nullable": true
          },
          "birthdate": {
            "type": "string",
            "nullable": true,
            "description": "%d/%m/%Y",
            "pattern": "^\\d{2}/\\d{2}/\\d{4}$"
          },
          "natural_person_country_code": {
            "type": "string",
            "nullable": true
          },
          "natural_person_tax_number": {
            "type": "string",
            "nullable": true
          },
          "iban": {
            "type": "string",
            "nullable": true
          },
          "bank_account_country_code": {
            "type": "string",
            "nullable": true
          },
          "bank_account_number": {
            "type": "string",
            "nullable": true,
            "description": "Required - if bank_account_bic filled"
          },
          "bank_account_bic": {
            "type": "string",
            "nullable": true,
            "description": "Required - if bank_account_number filled"
          },
          "control_key": {
            "type": "string",
            "nullable": true
          },
          "routing_number": {
            "type": "string",
            "nullable": true
          },
          "contact_first_name": {
            "type": "string",
            "nullable": true,
            "description": "First name of the company contact person"
          },
          "contact_last_name": {
            "type": "string",
            "nullable": true,
            "description": "Last name of the company contact person"
          },
          "contact_department": {
            "type": "string",
            "nullable": true,
            "description": "Department of the company contact person",
            "enum": [
              "accounting",
              "financial",
              "other",
              "procurement",
              "treasury"
            ]
          },
          "contact_email": {
            "type": "string",
            "nullable": true,
            "description": "Email address of the company contact person"
          }
        }
      },
      "address": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          },
          "country_code": {
            "type": "string",
            "nullable": true
          },
          "zip_code": {
            "type": "string",
            "nullable": true
          }
        },
        "nullable": true
      },
      "entity_state_reasons": {
        "oneOf": [
          {
            "type": "object",
            "nullable": true,
            "additionalProperties": false,
            "maxProperties": 0,
            "description": "May be an empty object"
          },
          {
            "type": "object",
            "nullable": true,
            "additionalProperties": false,
            "required": [
              "raw",
              "state",
              "state_reasons"
            ],
            "properties": {
              "raw": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "state": {
                "type": "string",
                "nullable": true,
                "description": "State for this sub-entity"
              },
              "state_reasons": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        ]
      },
      "company_account_audit": {
        "type": "object",
        "required": [
          "id",
          "type",
          "attributes"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "814a56f9-64d7-43e6-916a-b0bafe568a2b"
          },
          "type": {
            "type": "string",
            "enum": [
              "company_account_audit"
            ]
          },
          "attributes": {
            "type": "object",
            "properties": {
              "supplier_id": {
                "type": "string",
                "nullable": true
              },
              "supplier_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Every supplier ID seen for this company account audit"
              },
              "factor_id": {
                "type": "string",
                "nullable": true
              },
              "url": {
                "type": "string",
                "nullable": true
              },
              "created_at": {
                "type": "integer",
                "description": "Unix timestamp (seconds)"
              },
              "updated_at": {
                "type": "integer",
                "description": "Unix timestamp (seconds)"
              },
              "suggestions": {
                "type": "object",
                "nullable": true,
                "deprecated": true,
                "properties": {
                  "suggested_company_registration": {
                    "type": "string",
                    "nullable": true
                  },
                  "suggested_tax_number": {
                    "type": "string",
                    "nullable": true
                  }
                }
              },
              "company_name": {
                "type": "string",
                "nullable": true,
                "example": "Company name"
              },
              "company_country_code": {
                "type": "string",
                "nullable": true,
                "example": "FR"
              },
              "company_country_code_iso3": {
                "type": "string",
                "nullable": true,
                "example": "FRA"
              },
              "company_registration": {
                "type": "string",
                "nullable": true,
                "example": "B859102711"
              },
              "tax_number": {
                "type": "string",
                "nullable": true
              },
              "duns": {
                "type": "string",
                "nullable": true
              },
              "company_raw_address": {
                "type": "string",
                "nullable": true
              },
              "company_details": {
                "type": "object",
                "nullable": true,
                "additionalProperties": false,
                "properties": {
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "commercial_name": {
                    "type": "string",
                    "nullable": true
                  },
                  "address": {
                    "$ref": "#/components/schemas/address"
                  },
                  "employees": {
                    "type": "string",
                    "nullable": true
                  },
                  "legal_form": {
                    "type": "string",
                    "nullable": true
                  },
                  "opening_date": {
                    "type": "integer",
                    "description": "Unix timestamp (seconds)",
                    "nullable": true
                  },
                  "dissolution_date": {
                    "type": "integer",
                    "description": "Unix timestamp (seconds)",
                    "nullable": true
                  },
                  "activity": {
                    "type": "object",
                    "nullable": true,
                    "additionalProperties": false,
                    "properties": {
                      "code": {
                        "type": "string",
                        "nullable": true
                      },
                      "label": {
                        "type": "string",
                        "nullable": true
                      },
                      "type": {
                        "type": "string",
                        "nullable": true
                      }
                    }
                  },
                  "insolvencies": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "properties": {
                        "date": {
                          "type": "string",
                          "description": "Published at - YYYY-MM-DD",
                          "nullable": false
                        },
                        "url": {
                          "type": "string",
                          "nullable": false
                        }
                      }
                    }
                  },
                  "enriched_by": {
                    "type": "string",
                    "description": "How the supplier was enriched",
                    "nullable": true,
                    "enum": [
                      "company_registration",
                      "company_name_address"
                    ]
                  }
                }
              },
              "iban": {
                "type": "string",
                "nullable": true
              },
              "bank_account_country_code": {
                "type": "string",
                "nullable": true
              },
              "bank_account_country_code_iso3": {
                "type": "string",
                "nullable": true
              },
              "bank_account_number": {
                "type": "string",
                "nullable": true
              },
              "bank_account_bic": {
                "type": "string",
                "nullable": true
              },
              "routing_number": {
                "type": "string",
                "nullable": true
              },
              "control_key": {
                "type": "string",
                "nullable": true
              },
              "bank_details": {
                "type": "object",
                "nullable": true,
                "additionalProperties": false,
                "properties": {
                  "factor": {
                    "type": "boolean",
                    "nullable": true
                  },
                  "name": {
                    "type": "string",
                    "nullable": true
                  },
                  "address": {
                    "$ref": "#/components/schemas/address"
                  },
                  "account_blacklisted": {
                    "type": "boolean",
                    "nullable": true
                  }
                }
              },
              "state": {
                "type": "string",
                "enum": [
                  "anomaly",
                  "favorable",
                  "pending",
                  "unfavorable",
                  "unevaluated"
                ]
              },
              "state_reasons": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "company": {
                    "$ref": "#/components/schemas/entity_state_reasons"
                  },
                  "bank_account": {
                    "$ref": "#/components/schemas/entity_state_reasons"
                  },
                  "correlation": {
                    "$ref": "#/components/schemas/entity_state_reasons"
                  },
                  "supplier_sanctions_screening": {
                    "$ref": "#/components/schemas/entity_state_reasons"
                  },
                  "bank_sanctions_screening": {
                    "$ref": "#/components/schemas/entity_state_reasons"
                  }
                }
              },
              "first_name": {
                "type": "string",
                "nullable": true
              },
              "last_name": {
                "type": "string",
                "nullable": true
              },
              "middle_name": {
                "type": "string",
                "nullable": true
              },
              "other_name": {
                "type": "string",
                "nullable": true
              },
              "birthdate": {
                "type": "string",
                "description": "DD-MM-YYYY",
                "nullable": true
              },
              "natural_person_country_code": {
                "type": "string",
                "nullable": true
              },
              "natural_person_country_code_iso3": {
                "type": "string",
                "nullable": true
              },
              "natural_person_tax_number": {
                "type": "string",
                "nullable": true
              },
              "override_initial_status": {
                "type": "string",
                "nullable": true
              },
              "override_request_date": {
                "type": "string",
                "nullable": true
              },
              "override_request_initiator": {
                "type": "string",
                "nullable": true
              },
              "override_review_date": {
                "type": "string",
                "nullable": true
              },
              "override_request_reviewer": {
                "type": "string",
                "nullable": true
              },
              "contact_email": {
                "type": "string",
                "nullable": true
              },
              "contact_first_name": {
                "type": "string",
                "nullable": true
              },
              "contact_last_name": {
                "type": "string",
                "nullable": true
              },
              "contact_department": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "accounting",
                  "financial",
                  "other",
                  "procurement",
                  "treasury"
                ]
              },
              "tax_id_match": {
                "$ref": "#/components/schemas/tax_id_match"
              },
              "tags": {
                "type": "array",
                "description": "Array of strings, each item is a separated tag",
                "items": {
                  "type": "string",
                  "description": "A single tag value",
                  "example": "tag1"
                }
              }
            }
          },
          "links": {
            "type": "object",
            "required": [
              "details_in_app"
            ],
            "properties": {
              "details_in_app": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "tax_id_match": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string",
            "enum": [
              "pending",
              "favorable",
              "unfavorable",
              "anomaly",
              "bypassed"
            ]
          },
          "state_reason": {
            "type": "string",
            "description": "A human-readable label for the TIN match result"
          }
        }
      }
    }
  }
}
```