Clients, Leads and Contacts / Clients / UPDATE PEPPOL ID via the Tax ID
Purpose Updates the PEPPOL identifier for a client, resolving the client via Tax ID or internal ID depending on the provided key fields. This endpoint is part of the NIZU Cloud API Client v.
Body parameters
module
|
string |
Example: clients_peppol
|
key
|
string |
Example: id
|
keyval
|
integer |
Example: 278
|
data
|
object |
Example:
|
Purpose
Updates the PEPPOL identifier for a client, resolving the client via Tax ID or internal ID depending on the provided key fields. This endpoint is part of the NIZU Cloud API Client v.3.9.0 collection.
Authentication
- Bearer token expected via environment variable.
- Ensure the request sends the Authorization header using {{client_token2}} (set this in your environment).
Endpoint
- Method: PUT
- URL: {{base_url2}}
Request Body (JSON)
``` json
{
"module": "clients_peppol",
"key": "id",
"keyval": 278, // value for the NIZU Client ID
"data": []
}
```
Field Details
- module: Must be "clients_peppol".
- key: The property used to identify the client record (e.g., "id").
- keyval: The value for the chosen key (number or string depending on the key).
- data: empty
Example
PUT {{base_url2}}
Body:
{
"module": "clients_peppol",
"key": "id",
"keyval": 20,
"data": \[\]
}
Expected Responses
- 200 OK: Update succeeded. Response contains the updated resource or a status acknowledgement.
- 400/422: Validation error (e.g., invalid key/keyval or malformed data array).
- 401/403: Authentication/authorization failure (check {{client_token2}}).
- 404: Client not found using the provided key/keyval.
Notes
- This request relies on environment variables: {{base_url2}} for the API host and {{client_token2}} for auth.
- Use saved examples to document typical success and error responses and to power mock servers, if available in this collection.