Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
<FAQ>

Beskrivning

Tjänsten listar en persons kundrelationer till olika bolag.

Livscykelstatus

DesignProduktion

Lösningsbeskrivning

<Infoga en Gliffy-bild som visuellt beskriver lösningen>

Gliffy
displayNamecustomer-service Copy
namecustomer-service Copy
pagePin1

Hantering av personuppgifter

<Vilka Inga personuppgifter hanteras och varför?>i tjänsten.

API specifikation

Draft:

Swagger ui
---
openapi: 3.0.2
info:
  title: Customer API
  description: "API used to get customer-info"
  version: 1.0.0
tags:
  - name: Customer API endpoints
paths:
  /customers/persons/{personId}:
    get:
      tags:
        - Customer API endpoints
      summary: Get customers by person-id
      parameters:
        - name: personId
          in: path
          description: Person ID
          required: true
          style: simple
          explode: false
          schema:
            type: string
          example: 81471222-5798-11e9-ae24-57fa13b361e1
      responses:
        "200":
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomerResponse'
        "400":
          description: Bad request - correct message id (UUID) must be provided
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceErrorResponse'
        "500":
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceErrorResponse'
components:
  schemas:
      CustomerResponse:
        type: object
        properties:
            id:
              type: string
              description: Id of Customer
              example: '435553'
            customerType:
              allOf:
                - $ref: '#/components/schemas/CustomerType'
                - description: Disturbance category
            customerRelations:
              type: array
              description: Customer relations
              items:
                required:
                  - customerId
                  - companyId
                type: object
                properties:
                  customerId:
                    type: string
                    description: Customer Id
                    example: '81471222'
                  companyId:
                    type: string
                    description: Company Id
                    example: '81471222'
      CustomerType:
          type: string
          description: CustomerType model
          enum:
            - PRIVATE
            - ENTERPRISE
      ServiceErrorResponse:
          type: object
          properties:
            httpCode:
              format: int32
              type: integer
            message:
              type: string
            technicalDetails:
              $ref: '#/components/schemas/TechnicalDetails'
      TechnicalDetails:
          type: object
          properties:
            rootCode:
              format: int32
              type: integer
            rootCause:
              type: string
            serviceId:
              type: string
            requestId:
              type: string
            details:
              type: array
              items:
                type: string

Säkerhetsklassning

Säkerhetsklass <0, 1, 2, 3, 4>

Autentiseringsmetod: <API Key, Oauth2>

(Ref: Säkerhetsklassning av APIer )

API-ägare

<Kontaktuppgifter till den verksamhet som äger APIets livscykel>

Teknisk ägare

<Kontaktuppgifter till utvecklare/teknisk förvaltare>

Länkar

<Länkar till dev-portal;

  • Test

  • Sandbox

  • Produktion>

FAQ

Open api
showCommonExtensionstrue
deepLinkingtrue
supportedSubmitMethodsnone
locationurl
showExtensionstrue
urlhttps://api-test.sundsvall.se/customer/api-docs


Säkerhetsklassning

Säkerhetsklass 1

Autentiseringsmetod: Oauth2

Teknisk ägare

Team Unmasked
teamunmasked@sundsvall.se

Källkod

Github

FAQ

N/A