---
title: "PUT /api/integrations/amfori/credentials/"
method: PUT
path: "/api/integrations/amfori/credentials/"
tags: ["Integrations - Amfori"]
---

# PUT /api/integrations/amfori/credentials/

`PUT /api/integrations/amfori/credentials/`

Create or update the Amfori credentials for the current company. When `clientSecret` is omitted, the previously stored secret is preserved and re-verified against the new `clientId`. Credentials are validated against the Amfori SSO endpoint before being persisted.

## Request body

- object
  - `clientId` string, required
  - `clientSecret` string

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `companyId` string, required
    - `clientId` string, required
    - `clientSecretSet` boolean, required
    - `memberAmforiId` string, required
    - `verifiedAt` string, required
    - `lastSyncedAt` string, required
    - `revokedAt` string, required

## Other responses

- `401` — Default Response
- `404` — Default Response
- `422` — Default Response

---

[API](https://skmtc.net/retraced/apis/api-reference.md) · [All operations](https://skmtc.net/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/60d6c901bc4e/schema)
