Update a partner
const url = 'https://example.com/api/v1/partners/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","billing_mode":"self_billing","self_billing_data":{"legal_name":"example","address":{"street":"example","city":"example","region":"example","postal_code":"example","country":"example"},"vat_number":"example","payment_terms_days":1,"bank_account":{"beneficiary_name":"example","iban":"example","bic":"example"},"tax_config":{"treatment":"standard","label":"example","rate_bps":1}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://example.com/api/v1/partners/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "billing_mode": "self_billing", "self_billing_data": { "legal_name": "example", "address": { "street": "example", "city": "example", "region": "example", "postal_code": "example", "country": "example" }, "vat_number": "example", "payment_terms_days": 1, "bank_account": { "beneficiary_name": "example", "iban": "example", "bic": "example" }, "tax_config": { "treatment": "standard", "label": "example", "rate_bps": 1 } } }'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Partner ID
Request Body required
Section titled “Request Body required ”object
Updated name for the partner (omit to leave unchanged)
Updated billing mode. Omit to leave unchanged.
Required when billing_mode is self_billing. Replaces all self-billing data atomically. Omit to leave unchanged.
object
Legal entity name of the partner (used on invoices)
Registered business address shown on invoices
object
Street address including house number
City
State, province, or region
Postal or ZIP code
ISO 3166-1 alpha-2 country code
VAT or tax registration number (e.g. “FR12345678901”)
Number of days after invoice issuance until payment is due
Bank account to which the settlement amount should be transferred
object
Name of the bank account beneficiary
International Bank Account Number
Bank Identifier Code (SWIFT/BIC)
Tax treatment applied to this partner’s invoices
object
Tax treatment applied to commissions paid to this partner
Tax label printed on invoices (e.g. “VAT”, “TVA”, “MwSt”)
Tax rate in basis points (e.g. 2000 = 20%). Required when treatment is standard.
Responses
Section titled “ Responses ”Partner updated successfully
Bad request
object
Example
{ "error_code": "UNAUTHORIZED", "message": "Authentication credentials were not provided or are invalid."}Unauthorized
object
Example
{ "error_code": "UNAUTHORIZED", "message": "Authentication credentials were not provided or are invalid."}Partner not found
object
Example
{ "error_code": "UNAUTHORIZED", "message": "Authentication credentials were not provided or are invalid."}Internal server error
object
Example
{ "error_code": "UNAUTHORIZED", "message": "Authentication credentials were not provided or are invalid."}