Customers
Update a contact of a customer
Changed onUpdate a contact of a customer. Only the submitted fields are updated, the others are left unchanged. Contacts are a separate resource: updating one does not change the invoice recipients of the customer.
ℹ️ This endpoint requires the following scope: customers:all
put/api/external/v2/customers/{customer_id}/contacts/{id}
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/customers/{customer_id}/contacts/{id}
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: customers:all
Path parameters
customer_idinteger required
idinteger required
Headers
X-Company-Idstring
Example:12345
Numeric ID of the company to act on. Required when authenticating with a firm token. Ignored when the token is already bound to a company.
Request body
Example request
{
"first_name": "Jane",
"last_name": "Doe",
"role": "accountant",
"email": "jane.doe@example.com",
"telephone_number": "+33123456789",
"mobile_number": "+33612345678"
}Response
Returns the updated contact
Example response
{
"id": 421,
"first_name": "Jane",
"last_name": "Doe",
"role": "accountant",
"email": "jane.doe@example.com",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}Changes
- info
endpoint added
- info