get/customers

Summary

Get customers.

Description

Returns a list of customers.

Parameters

Query

code

string

Customer code.

name

string

Customer name.

country

string

Customer country.

createdBefore

string

Filter customers created before or in the specified date.

Format

date

createdAfter

string

Filter customers created after or in the specified date.

Format

date

Responses

200

Returns a list of customers.

Response type

application/json

Response content

Array<Customer>

400

Invalid query parameters.

Response type

application/json

Response content

Error

500

Failed to get customers.

Response type

application/json

Response content

Error

post/customers

Summary

Create customers

Description

Create one or more customers.

Request body required

Request type

application/json

Request content

CustomerArray<Customer>

Responses

200

Customers upserted successfully.

Response type

application/json

Response content

Array<Customer>

400

Invalid product data.

Response type

application/json

Response content

Error

500

Failed to upsert customers.

Response type

application/json

Response content

Error

put/customers/{customerCode}

Summary

Update customer.

Description

Update a customer.

Parameters

Path

customerCode

string
required

Customer code.

Request body required

Request type

application/json

Request content

Customer

Responses

200

Customer updated successfully.

Response type

application/json

Response content

Customer

400

Invalid request payload.

Response type

application/json

Response content

Error

404

Customer not found.

Response type

application/json

Response content

Error

500

Failed to update customer.

Response type

application/json

Response content

Error

delete/customers/{customerCode}

Summary

Delete customer.

Description

Delete a customer.

Parameters

Path

customerCode

string
required

Customer code.

Responses

200

Customer deleted successfully.

Response type

application/json

Response content

Success

404

Customer not found.

Response type

application/json

Response content

Error

500

Failed to delete customer.

Response type

application/json

Response content

Error