Create party
POST
/api/v1/tenants/{tenant_id}/workspaces/{workspace_id}/parties
Create a new party (supplier/customer).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ” PartyCreate
Create party schema.
object
legal_name
required
Legal Name
string
party_type
PartyType
Party type enumeration.
string
is_peppol_participant
Is Peppol Participant
boolean
identifiers
Identifiers
Array<object>
PartyIdentifierCreateCreate party identifier schema.
object
scheme_id
required
Scheme Id
ISO 6523 scheme code (e.g., 0088 for GLN)
string
identifier
required
Identifier
string
is_primary
Is Primary
boolean
addresses
Addresses
Array<object>
AddressCreateCreate address schema.
object
address_type
Address Type
string
city_name
required
City Name
string
country_code
required
Country Code
ISO 3166-1 alpha-2
string
is_primary
Is Primary
boolean
bank_accounts
Bank Accounts
Array<object>
BankAccountCreateCreate bank account schema.
object
account_number
required
Account Number
string
currency_code
Currency Code
string
is_primary
Is Primary
boolean
Examples
Create party request example
{ "legal_name": "Optimum Business Solution Ltd", "trading_name": "OBS", "party_type": "customer", "tax_id": "TIN-12345678", "registration_number": "RC-900123", "email": "ap@obs.ng", "phone": "+2348012345678", "website": "https://obs.ng", "business_description": "ERP and accounting integration services", "notes": "Primary enterprise customer", "is_peppol_participant": true, "identifiers": [ { "scheme_id": "0088", "identifier": "9501234567890", "is_primary": true } ], "addresses": [ { "address_type": "postal", "street_name": "Adeola Odeku Street", "building_number": "12", "city_name": "Lagos", "postal_zone": "101241", "state": "Lagos", "country_code": "NG", "is_primary": true } ], "bank_accounts": [ { "bank_name": "First Bank of Nigeria", "bank_code": "011", "account_name": "Optimum Business Solution Ltd", "account_number": "0123456789", "currency_code": "NGN", "is_primary": true } ]}Responses
Section titled “ Responses ”Successful Response
Examples
Created party response
{ "id": "8a1c7f6c-61a1-4d89-8d96-3f7e7747f0c0", "legal_name": "Optimum Business Solution Ltd", "party_type": "customer", "created_at": "2026-02-11T10:12:30Z", "updated_at": "2026-02-11T10:12:30Z"}Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examples
422 response example
{ "detail": [ { "loc": [], "msg": "string", "type": "string" } ]}