Download OpenAPI specification:
Customer REST API Documentation
Register a customer
the customer data (identifier must be null)
| id | integer |
| firstName required | string non-empty |
| lastName required | string non-empty |
| email required | string <email> |
required | object (Address) |
required | object (CreditCard) |
{- "firstName": "Alice",
- "lastName": "Smith",
- "email": "alice@example.org",
- "address": {
- "street": "123 Maple Street",
- "city": "Mill Valley",
- "stateProvince": "CA",
- "postalCode": "90952",
- "country": "US"
}, - "creditCard": {
- "type": "MASTER_CARD",
- "number": "5400000000000005",
- "expirationMonth": 1,
- "expirationYear": 2030
}
}{- "id": 215,
- "firstName": "Alice",
- "lastName": "Smith",
- "email": "alice@example.org",
- "address": {
- "street": "123 Maple Street",
- "city": "Mill Valley",
- "stateProvince": "CA",
- "postalCode": "90952",
- "country": "US"
}, - "creditCard": {
- "type": "MASTER_CARD",
- "number": "5400000000000005",
- "expirationMonth": 1,
- "expirationYear": 2030
}
}Find a customer
| id required | integer Example: 217 the customer identifier |
{- "id": 217,
- "firstName": "Alice",
- "lastName": "Smith",
- "email": "alice@example.org",
- "address": {
- "street": "123 Maple Street",
- "city": "Mill Valley",
- "stateProvince": "CA",
- "postalCode": "90952",
- "country": "US"
}, - "creditCard": {
- "type": "MASTER_CARD",
- "number": "5400000000000005",
- "expirationMonth": 1,
- "expirationYear": 2030
}
}Update a customer
| id required | integer Example: 215 the customer identifier |
the new customer data (identifier must match path parameter)
| id | integer |
| firstName required | string non-empty |
| lastName required | string non-empty |
| email required | string <email> |
required | object (Address) |
required | object (CreditCard) |
{- "id": 215,
- "firstName": "Alice",
- "lastName": "Smith",
- "email": "smith@example.org",
- "address": {
- "street": "123 Maple Street",
- "city": "Mill Valley",
- "stateProvince": "CA",
- "postalCode": "90952",
- "country": "US"
}, - "creditCard": {
- "type": "MASTER_CARD",
- "number": "5400000000000005",
- "expirationMonth": 1,
- "expirationYear": 2030
}
}{- "id": 215,
- "firstName": "Alice",
- "lastName": "Smith",
- "email": "smith@example.org",
- "address": {
- "street": "123 Maple Street",
- "city": "Mill Valley",
- "stateProvince": "CA",
- "postalCode": "90952",
- "country": "US"
}, - "creditCard": {
- "type": "MASTER_CARD",
- "number": "5400000000000005",
- "expirationMonth": 1,
- "expirationYear": 2030
}
}