Suppliers
Update a supplier
Changed onThis endpoint returns the updated supplier.
ℹ️ This endpoint requires the following scope: suppliers:all
put/api/external/v2/suppliers/{id}
Request
- Base URLhttps://app.pennylane.com
- URLhttps://app.pennylane.com/api/external/v2/suppliers/{id}
- AuthOAuth 2Authorization code: https://app.pennylane.com/oauth/authorizeToken URL: https://app.pennylane.com/oauth/oauth/token scopes: suppliers:all
Path parameters
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
{
"name": "Pennylane",
"establishment_no": "82762938500014",
"reg_no": "827629385",
"postal_address": {
"address": "8 rue de la paix",
"postal_code": "75002",
"city": "Paris",
"country_alpha2": "FR"
},
"vat_number": "FR32123456789",
"emails": [
"hello@example.org"
],
"iban": "FR3330002005500000157841Z25",
"supplier_due_date_delay": 30,
"external_reference": "FR123"
}Response
Returns the updated supplier
Example response
{
"id": 42,
"name": "Pennylane",
"establishment_no": "82762938500014",
"reg_no": "827629385",
"vat_number": "FR32123456789",
"emails": [
"hello@example.org"
],
"iban": "FRXXXXXXXXXXXXXXXXXXXXXXXXX",
"supplier_due_date_delay": 30,
"external_reference": "FR123",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}Changes
- info
added the new optional
headerrequest parameterX-Company-Id
- info