get/suppliers

Summary

Get suppliers.

Description

Returns a list of suppliers.

Parameters

Query

code

string

Supplier code.

name

string

Supplier name.

country

string

Supplier country.

createdBefore

string

Filter suppliers created before or in the specified date.

Format

date

createdAfter

string

Filter suppliers created after or in the specified date.

Format

date

Responses

200

Returns a list of suppliers.

Response type

application/json

Response content

Array<Supplier>

400

Invalid query parameters.

Response type

application/json

Response content

Error

500

Failed to get suppliers.

Response type

application/json

Response content

Error

post/suppliers

Summary

Create suppliers

Description

Create one or more suppliers.

Request body required

Request type

application/json

Request content

SupplierArray<Supplier>

Responses

200

Suppliers upserted successfully.

Response type

application/json

Response content

Array<Supplier>

400

Invalid supplier data.

Response type

application/json

Response content

Error

500

Failed to upsert suppliers.

Response type

application/json

Response content

Error

put/suppliers/{supplierCode}

Summary

Update supplier.

Description

Update a supplier.

Parameters

Path

supplierCode

string
required

Supplier code.

Request body required

Request type

application/json

Request content

Supplier

Responses

200

Supplier updated successfully.

Response type

application/json

Response content

Supplier

400

Invalid request payload.

Response type

application/json

Response content

Error

404

Supplier not found.

Response type

application/json

Response content

Error

500

Failed to update supplier.

Response type

application/json

Response content

Error

delete/suppliers/{supplierCode}

Summary

Delete supplier.

Description

Delete a supplier.

Parameters

Path

supplierCode

string
required

Supplier code.

Responses

200

Supplier deleted successfully.

Response type

application/json

Response content

Success

404

Supplier not found.

Response type

application/json

Response content

Error

500

Failed to delete supplier.

Response type

application/json

Response content

Error