Edara API v3

Edara API v3: Suppliers

Read the guide first: authentication, paging, errors, rate limits and the shared PagedResult, BatchResult and *Reference shapes.

Endpoints

GET /v3/suppliers: Lists suppliers.

Operation GetSuppliers · permission read:supplier

Query string: GetSuppliersQuery

field type default validation description
offset int? 0 >= 0 Number of items to skip before returning results. Defaults to 0.
limit int? 100 1..1000 (out of range → 400) Maximum number of items to return. Defaults to 100, maximum 1000.
name string Supplier name filter.

Responses: OK PagedResult<SupplierResponse>: Paged list of suppliers.

Notes


GET /v3/suppliers/{id}: Gets a supplier by id.

Operation GetSupplierById · permission read:supplier

Parameters

name in type default description
id route int The supplier id.

Responses: OK SupplierResponse: The supplier.

Notes


POST /v3/suppliers: Creates a supplier.

Operation CreateSupplier · permission create:supplier

Body: SupplierCreateRequest

field type default validation description
name string NotEmpty() .MaximumLength(100) Supplier display name.
mobile string Supplier mobile number.
email string Supplier email address.
taxRegisterationId string Supplier tax registration id.
relatedAccountId int? Existing GL account to link. Mutually exclusive with RelatedAccountParentNodeId.
relatedAccountParentNodeId int? Parent chart-of-accounts node under which to create a new related account. Mutually exclusive with RelatedAccountId.

Responses: Created SupplierResponse: Supplier created.

Business errors (HTTP 409, match on errorCode):

Notes


PUT /v3/suppliers/{id}: Updates a supplier.

Operation UpdateSupplier · permission update:supplier

Parameters

name in type default description
id route int The supplier id.

Body: SupplierUpdateRequest

field type default validation description
name string NotEmpty() .MaximumLength(100) Supplier display name.
mobile string Supplier mobile number.
email string Supplier email address.
taxRegisterationId string Supplier tax registration id.

Responses: OK SupplierResponse: The updated supplier.

Business errors (HTTP 409, match on errorCode):

Notes


DELETE /v3/suppliers/{id}: Deletes a supplier.

Operation DeleteSupplier · permission delete:supplier

Parameters

name in type default description
id route int The supplier id.

Responses: NoContent: (not declared; read from the method body)

Business errors (HTTP 409, match on errorCode):

Notes

Types

AccountReference

Lightweight account reference (id + code + name).

field type description
id int The account id.
code string The account code.
name string The account name.

SupplierResponse

Response describing a supplier.

field type description
id int Supplier identifier.
name string Supplier name.
mobile string Supplier mobile number.
email string Supplier email address.
taxRegisterationId string Supplier tax registration id.
relatedAccount AccountReference Related general-ledger account.