Create a partner
const url = 'https://example.com/api/v1/partners';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","workspace_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","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 POST \ --url https://example.com/api/v1/partners \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "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 ”Request Body required
Section titled “Request Body required ”object
Name of the partner to create
ID of the workspace this partner belongs to
Billing mode for the partner. Omit to use the default (partner_billing).
Required when billing_mode is self_billing. Contains all data needed to generate invoices on behalf of the partner.
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 created successfully
object
ID of the newly created partner
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}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."}Internal server error
object
Example
{ "error_code": "UNAUTHORIZED", "message": "Authentication credentials were not provided or are invalid."}