openapi: 3.2.0 info: description: "MobileServicesManagement APIs\n\n ---\n \n ## [Source view](https://app.swaggerhub.com/apis/kpn/MobileServicesManagement-KPN/)
\n [Documentation view](https://app.swaggerhub.com/apis/kpn/MobileServicesManagement-KPN/)\n \n ---\n \n ## [KPN Developer](https://developer.kpn.com/)
\n [Getting Started](https://developer.kpn.com/getting-started)\n \n\n ---" version: v11 title: MobileServicesManagement-KPN Rest Address Controller API termsOfService: https://developer.kpn.com/legal contact: name: API Support email: api_developer@kpn.com url: https://developer.kpn.com/support servers: - url: https://api-prd.kpn.com/mobile/kpn/mobileservices tags: - name: rest-address-controller description: Rest Address Controller paths: /address/all: get: tags: - rest-address-controller summary: Get a list of all addresses description: Required privileges (one of the following): operationId: getAllAddressesUsingGET responses: '200': description: OK content: '*/*': schema: type: array items: $ref: '#/components/schemas/DeliveryAddress' '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '401': description: Unauthorized content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' security: - OAuth2: [] /address/customer: get: tags: - rest-address-controller summary: Get a list of general addresses description: Required privileges (one of the following): operationId: getGeneralAddressesUsingGET responses: '200': description: OK content: '*/*': schema: type: array items: $ref: '#/components/schemas/DeliveryAddress' '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '401': description: Unauthorized content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' security: - OAuth2: [] post: tags: - rest-address-controller summary: Add new general address description: Required privileges (one of the following): operationId: newGeneralAddressUsingPOST responses: '200': description: OK content: '*/*': schema: $ref: '#/components/schemas/DeliveryAddress' '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '401': description: Unauthorized content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' security: - OAuth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/DeliveryAddressRequest1' description: deliveryAddress required: true /address/user: get: tags: - rest-address-controller summary: Get a list of personal addresses description: Required privileges (one of the following): operationId: getPersonalAddressesUsingGET responses: '200': description: OK content: '*/*': schema: type: array items: $ref: '#/components/schemas/DeliveryAddress' '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '401': description: Unauthorized content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' security: - OAuth2: [] post: tags: - rest-address-controller summary: Add new personal address description: Required privileges (one of the following): operationId: newPersonalAddressUsingPOST responses: '200': description: OK content: '*/*': schema: $ref: '#/components/schemas/DeliveryAddress' '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '401': description: Unauthorized content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' security: - OAuth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/DeliveryAddressRequest' description: deliveryAddress required: true /address/{id}/delete: post: tags: - rest-address-controller summary: Delete given address from general or personal addresses description: Required privileges (one of the following): operationId: deleteAddressUsingPOST parameters: - name: id in: path description: id required: true schema: type: integer format: int64 responses: '200': description: OK '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '401': description: Unauthorized content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' security: - OAuth2: [] /address/{id}/edit: post: tags: - rest-address-controller summary: Update personal or general address description: Required privileges (one of the following): operationId: updateAddressUsingPOST parameters: - name: id in: path description: id required: true schema: type: integer format: int64 responses: '200': description: OK '400': description: Bad Request content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '401': description: Unauthorized content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '403': description: Forbidden content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '404': description: Not Found content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '429': description: Too Many Requests content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '500': description: Server Error content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' '503': description: Service Unavailable content: '*/*': schema: $ref: '#/components/schemas/ErrorResponse' security: - OAuth2: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/DeliveryAddressRequest1' description: deliveryAddress required: true components: schemas: DeliveryAddressRequest: type: object required: - city - companyName - country - houseNumber - postalCode - street properties: addressName: type: string attention: type: string minLength: 0 maxLength: 35 city: type: string minLength: 1 maxLength: 30 companyName: type: string minLength: 1 maxLength: 35 country: type: string description: Only "NL" value is supported floor: type: string minLength: 0 maxLength: 21 houseNumber: type: string minLength: 1 maxLength: 5 location: type: string minLength: 0 maxLength: 21 postalCode: type: string example: 1234AB description: should contain 4 digits first and then 2 letters room: type: string minLength: 0 maxLength: 20 street: type: string minLength: 1 maxLength: 24 title: DeliveryAddressRequest DeliveryAddressRequest1: type: object required: - city - companyName - country - houseNumber - postalCode - street properties: addressName: type: string attention: type: string minLength: 0 maxLength: 35 city: type: string minLength: 1 maxLength: 30 companyName: type: string minLength: 1 maxLength: 35 country: type: string description: Only "NL" value is supported floor: type: string minLength: 0 maxLength: 21 houseNumber: type: string minLength: 1 maxLength: 5 location: type: string minLength: 0 maxLength: 21 postalCode: type: string example: 1234AB description: should contain 4 digits first and then 2 letters room: type: string minLength: 0 maxLength: 20 street: type: string minLength: 1 maxLength: 24 title: DeliveryAddressRequest ErrorResponse: type: object properties: transactionId: type: string description: transaction id of the the request title: Transaction ID status: type: string description: Status title: Status name: type: string description: Error name title: Error name message: type: string description: Error message title: Error message info: type: string description: Additional information about error title: Info DeliveryAddress: type: object properties: addressName: type: string attention: type: string city: type: string companyName: type: string country: type: string floor: type: string houseNumber: type: string id: type: integer format: int64 location: type: string postalCode: type: string room: type: string street: type: string title: DeliveryAddress securitySchemes: OAuth2: type: oauth2 flows: clientCredentials: scopes: {} tokenUrl: https://api-prd.kpn.com/oauth/grip/msm/accesstoken?grant_type=client_credentials