Customers
Customers object
This operation returns a list of customers
Note: This operation needs Authentication and supports the following JSON:API features:
Filters -
emailEq,fullNameEqSparse fieldsets - supports all fields of
customerquery parameter.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
The number of resources to return in a single response.
Unique identifier.
^[a-zA-Z0-9-]+$Unique identifier.
^[a-zA-Z0-9-]+$example@email.comPattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Full Name
Name SurnamePattern: ^[^<>&]+$Successful response with customers data in JSON:API format.
Bad request.
Unauthorized.
Too many requests.
Internal Server Error.
Service is unavailable.
GET /pos/v1/customers HTTP/1.1
Host: api.mews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"data": [
{
"id": "31b14937-2524-491f-b0a0-dc0a7393ff33",
"type": "customers",
"attributes": {
"fullName": "John Doe",
"companyName": "Doe Enterprises",
"taxNumber": "123456789",
"email": "john.doe@mews.com",
"address1": "123 Main St.",
"address2": "Apt. 123",
"city": "Palo Alto",
"state": "CA",
"postalCode": "12345",
"country": "US",
"notes": "This is a note about this customer.",
"phone": "1234567890",
"mobile": "3334567890",
"countrySpecificCode": "332118889",
"dateOfBirth": "1970-01-01",
"createdAt": "2024-10-16T14:30:00Z",
"updatedAt": "2024-10-19T14:30:00Z"
}
}
],
"links": {
"prev": "https://api.mews-demo.com/pos/v1/customers?page%5Bbefore%5D=NA&page%5Bsize%5D=1",
"next": "https://api.mews-demo.com/pos/v1/customers?page%5Bafter%5D=NA&page%5Bsize%5D=1"
}
}Create a customer. A customer represents a person or organization that can be billed for goods or services. Note: This operation needs Authentication.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
The customer was successfully created.
Bad request.
Unauthorized.
Unprocessable entity.
Too many requests.
Internal Server Error.
Service is unavailable.
POST /pos/v1/customers HTTP/1.1
Host: api.mews.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/vnd.api+json
Accept: */*
Content-Length: 416
{
"data": {
"type": "customers",
"attributes": {
"fullName": "John Doe",
"companyName": "Doe Enterprises",
"taxNumber": "123456789",
"email": "john.doe@mews.com",
"address1": "123 Main St.",
"address2": "Apt. 123",
"city": "Palo Alto",
"state": "CA",
"postalCode": "12345",
"country": "US",
"notes": "This is a note about this customer.",
"phone": "1234567890",
"mobile": "3334567890",
"countrySpecificCode": "332118889",
"dateOfBirth": "1970-01-01"
}
}
}{
"data": {
"id": "83f93e1c-b6e1-4040-90cf-3274b6f3c82d",
"type": "customers",
"attributes": {
"fullName": "John Doe",
"companyName": "Doe Enterprises",
"taxNumber": "123456789",
"email": "john.doe@mews.com",
"address1": "123 Main St.",
"address2": "Apt. 123",
"city": "Palo Alto",
"state": "CA",
"postalCode": "12345",
"country": "US",
"notes": "This is a note about this customer.",
"phone": "1234567890",
"mobile": "3334567890",
"countrySpecificCode": "332118889",
"dateOfBirth": "1970-01-01",
"createdAt": "2024-10-16T14:30:00Z",
"updatedAt": "2024-10-19T14:30:00Z"
}
}
}Last updated
Was this helpful?