The Customer resource stores information about individuals and companies that purchase products from Ferreandina. Rather than a traditionalDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tutosrive/ferreandina-nosql/llms.txt
Use this file to discover all available pages before exploring further.
name/email schema, customer documents follow a Colombian-market pattern: each customer is identified by a NI (Número de Identificación, stored under the BSON key "NI"), a unique lowercase alias, a category indicating the customer type ("company" or "person"), and a phone number. There is no name or email field in this resource. The seed dataset ships with thousands of customer records. All CRUD operations are available at /api/customers.
Document Schema
Unique integer identifier for the customer.
National Identification number (Número de Identificación). Stored in MongoDB under the key
"NI" (uppercase). Mapped via @BsonProperty("NI") in the Java model.Unique lowercase slug alias for the customer (e.g.,
"oviedoplc", "rodríguez-cardona").Customer type. Accepted values:
"company" or "person".Contact phone number (format varies — includes local Colombian landline and mobile formats).
Endpoints
GET /api/customers
Returns an array of all customer documents.GET /api/customers/{id}
Returns a single customer by its integer_id.
POST /api/customers
Creates a new customer document. Request BodyUnique integer ID for the new customer.
National Identification number (must be unique).
Unique lowercase alias for the customer.
Customer category:
"company" or "person".Contact phone number.
PATCH /api/customers/{id}
Partially updates a customer. Include only the fields to change. Request BodyUpdated national identification number.
Updated alias.
Updated category (
"company" or "person").Updated phone number.
DELETE /api/customers/{id}
Deletes the customer with the given integer_id.