openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /idoc/SYPART01/SYPART:
    post:
      summary: Partner profiles
      operationId: /idoc/SYPART01/SYPART
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                EDI_DC40:
                  properties:
                    TABNAM:
                      type: string
                      maxLength: 10
                      description: Name of Table Structure
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client
                    DOCNUM:
                      type: string
                      maxLength: 16
                      description: IDoc number
                    DOCREL:
                      type: string
                      maxLength: 4
                      description: SAP Release for IDoc
                    STATUS:
                      type: string
                      maxLength: 2
                      description: Status of IDoc
                    DIRECT:
                      type: string
                      maxLength: 1
                      description: 'Direction enumValues: 1=Outbound, 2=Inbound'
                      enum:
                      - '1'
                      - '2'
                    OUTMOD:
                      type: string
                      maxLength: 1
                      description: 'Output mode enumValues: 1=Transfer IDoc immediately and start external subsystem, 2=Transfer IDoc immediately, 3=Collect IDocs, transfer and start external subsystem, 4=Collect IDocs and transfer'
                      enum:
                      - '1'
                      - '2'
                      - '3'
                      - '4'
                    EXPRSS:
                      type: string
                      maxLength: 1
                      description: 'Overriding in inbound processing enumValues: ""=No overriding, X=Overriding'
                      enum:
                      - ''
                      - X
                    TEST:
                      type: string
                      maxLength: 1
                      description: 'Test flag enumValues: ""=IDoc contains a productive message, X=IDoc contains a test message'
                      enum:
                      - ''
                      - X
                    IDOCTYP:
                      type: string
                      maxLength: 30
                      description: Name of basic type
                    CIMTYP:
                      type: string
                      maxLength: 30
                      description: Extension (defined by customer)
                    MESTYP:
                      type: string
                      maxLength: 30
                      description: Message type
                    MESCOD:
                      type: string
                      maxLength: 3
                      description: Message code
                    MESFCT:
                      type: string
                      maxLength: 3
                      description: Message Function
                    STD:
                      type: string
                      maxLength: 1
                      description: EDI standard, flag
                    STDVRS:
                      type: string
                      maxLength: 6
                      description: EDI standard, version and release
                    STDMES:
                      type: string
                      maxLength: 6
                      description: EDI message type
                    SNDPOR:
                      type: string
                      maxLength: 10
                      description: Sender port (SAP System, external subsystem)
                    SNDPRT:
                      type: string
                      maxLength: 2
                      description: Partner type of sender
                    SNDPFC:
                      type: string
                      maxLength: 2
                      description: Partner Function of Sender
                    SNDPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Sender
                    SNDSAD:
                      type: string
                      maxLength: 21
                      description: Sender address (SADR)
                    SNDLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of sender
                    RCVPOR:
                      type: string
                      maxLength: 10
                      description: Receiver port
                    RCVPRT:
                      type: string
                      maxLength: 2
                      description: Partner Type of Receiver
                    RCVPFC:
                      type: string
                      maxLength: 2
                      description: Partner function of recipient
                    RCVPRN:
                      type: string
                      maxLength: 10
                      description: Partner Number of Receiver
                    RCVSAD:
                      type: string
                      maxLength: 21
                      description: Recipient address (SADR)
                    RCVLAD:
                      type: string
                      maxLength: 70
                      description: Logical address of recipient
                    CREDAT:
                      type: string
                      format: date
                      maxLength: 8
                      description: Created on
                    CRETIM:
                      type: string
                      maxLength: 6
                      description: Created at
                    REFINT:
                      type: string
                      maxLength: 14
                      description: Transmission file (EDI Interchange)
                    REFGRP:
                      type: string
                      maxLength: 14
                      description: Message group (EDI Message Group)
                    REFMES:
                      type: string
                      maxLength: 14
                      description: Message (EDI Message)
                    ARCKEY:
                      type: string
                      maxLength: 70
                      description: Key for external message archive
                    SERIAL:
                      type: string
                      maxLength: 20
                      description: Serialization
                E1EDPP1:
                  type: array
                  items:
                    properties:
                      LOGSYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      PARNUM:
                        type: string
                        maxLength: 10
                        description: Partner number
                      PARTYP:
                        type: string
                        maxLength: 2
                        description: Partner Type
                      CLASS:
                        type: string
                        maxLength: 3
                        description: Partner class
                      MATLVL:
                        type: string
                        maxLength: 1
                        description: Status of partner profile
                      TEST:
                        type: string
                        maxLength: 1
                        description: 'Flag for test mode: ""=Blank,X=Selection flag'
                        enum:
                        - ''
                        - X
                      ARCHIV:
                        type: string
                        maxLength: 1
                        description: 'Documents available?: ""=No partner profile in archive,X=Partner profile exists in archive'
                        enum:
                        - ''
                        - X
                      USRTYP:
                        type: string
                        maxLength: 10
                        description: User Type
                      USRKEY:
                        type: string
                        maxLength: 70
                        description: 'Permitted users: ID'
                      USRLNG:
                        type: string
                        maxLength: 1
                        description: Language of notification
                      ISOUSRLNG:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      DSC_RCVPRT:
                        type: string
                        maxLength: 60
                        description: Short description of object
                      DSC_USRLNG:
                        type: string
                        maxLength: 16
                        description: Language
                      DSC_MATLVL:
                        type: string
                        maxLength: 60
                        description: 'IDoc: Long description of partner status'
                      DSC_RCVPRN:
                        type: string
                        maxLength: 60
                        description: Short description of object
                      E1ADRM0:
                        type: array
                        items:
                          properties:
                            PARTNER_Q:
                              type: string
                              maxLength: 3
                              description: 'Qualifier for partner function: AA=Customer in Financial Document,AG=Sold-to party,AP=Contact Person,AW=Ship-to Party in Financial Document,BA=Bank of Sold-to Party,BB=Bank of Beneficiary, Partner for Debit Memo,BE=Beneficiary,DE=Bank holding account,FR=Message Sender,LF=Vendor,MF=Manufacturer,MR=Message recipient,OB=Opening bank,PA=Partner for Debit Memo, Debit, Withdrawal,...,RE=Bill-to party,RG=Payer,RS=Invoicing Party,SP=Forwarding agent,TK=Tracking
                                partner,WE=Ship-to party,KND=Node address,IRC=Intermediate Resale Customer,OSP=Shipping Point,OSO=Sales Organization,OSF=Sales Office,OTP=Transportation planning point,QCR=Recipient of quality certificates,RSB=Branch in the resale,RSC=Customer in resale,SLS=Supplementary Logistics Service'
                              enum:
                              - AA
                              - AG
                              - AP
                              - AW
                              - BA
                              - BB
                              - BE
                              - DE
                              - FR
                              - LF
                              - MF
                              - MR
                              - OB
                              - PA
                              - RE
                              - RG
                              - RS
                              - SP
                              - TK
                              - WE
                              - KND
                              - IRC
                              - OSP
                              - OSO
                              - OSF
                              - OTP
                              - QCR
                              - RSB
                              - RSC
                              - SLS
                            ADDRESS_T:
                              type: string
                              maxLength: 1
                              description: 'Addr. type: 1=Legal person,2=Natural person,3=Contact Person'
                              enum:
                              - '1'
                              - '2'
                              - '3'
                            PARTNER_ID:
                              type: string
                              maxLength: 17
                              description: Partner no. (SAP)
                            JURISDIC:
                              type: string
                              maxLength: 17
                              description: Location for tax calculation - Tax Jurisdiction Code
                            LANGUAGE:
                              type: string
                              maxLength: 2
                              description: Language key
                            FORMOFADDR:
                              type: string
                              maxLength: 15
                              description: Form of address
                            NAME1:
                              type: string
                              maxLength: 40
                              description: Name or address line
                            NAME2:
                              type: string
                              maxLength: 40
                              description: Name or address line
                            NAME3:
                              type: string
                              maxLength: 40
                              description: Name or address line
                            NAME4:
                              type: string
                              maxLength: 40
                              description: Name or address line
                            NAME_TEXT:
                              type: string
                              maxLength: 50
                              description: Name or address line (formatted)
                            NAME_CO:
                              type: string
                              maxLength: 40
                              description: Subsequent line for name or address (c/o)
                            LOCATION:
                              type: string
                              maxLength: 40
                              description: Location description of location
                            BUILDING:
                              type: string
                              maxLength: 10
                              description: 'Location description: Building'
                            FLOOR:
                              type: string
                              maxLength: 10
                              description: 'Location description: Floor'
                            ROOM:
                              type: string
                              maxLength: 10
                              description: 'Location description: Room'
                            STREET1:
                              type: string
                              maxLength: 40
                              description: House number and street
                            STREET2:
                              type: string
                              maxLength: 40
                              description: House number and street
                            STREET3:
                              type: string
                              maxLength: 40
                              description: House number and street
                            HOUSE_SUPL:
                              type: string
                              maxLength: 4
                              description: House number
                            HOUSE_RANG:
                              type: string
                              maxLength: 10
                              description: House no. (interval)
                            POSTL_COD1:
                              type: string
                              maxLength: 10
                              description: Postal code
                            POSTL_COD3:
                              type: string
                              maxLength: 10
                              description: Postal code
                            POSTL_AREA:
                              type: string
                              maxLength: 15
                              description: Post delivery district
                            CITY1:
                              type: string
                              maxLength: 40
                              description: Town or city
                            CITY2:
                              type: string
                              maxLength: 40
                              description: Town or city
                            POSTL_PBOX:
                              type: string
                              maxLength: 10
                              description: PO Box
                            POSTL_COD2:
                              type: string
                              maxLength: 10
                              description: Postal code
                            POSTL_CITY:
                              type: string
                              maxLength: 40
                              description: Town or city
                            TELEPHONE1:
                              type: string
                              maxLength: 30
                              description: Telephone number
                            TELEPHONE2:
                              type: string
                              maxLength: 30
                              description: Telephone number
                            TELEFAX:
                              type: string
                              maxLength: 30
                              description: Fax number
                            TELEX:
                              type: string
                              maxLength: 30
                              description: Telex number
                            E_MAIL:
                              type: string
                              maxLength: 70
                              description: E-Mail Address
                            COUNTRY1:
                              type: string
                              maxLength: 3
                              description: Country indicator (ISO alphanumeric)
                            COUNTRY2:
                              type: string
                              maxLength: 3
                              description: Country indicator (ISO numeric)
                            REGION:
                              type: string
                              maxLength: 3
                              description: Region, state
                            COUNTY_COD:
                              type: string
                              maxLength: 3
                              description: County Code (e.g. in USA)
                            COUNTY_TXT:
                              type: string
                              maxLength: 25
                              description: County name (for example, in USA)
                            TZCODE:
                              type: string
                              maxLength: 6
                              description: Location for time zone (SAP code)
                            TZDESC:
                              type: string
                              maxLength: 35
                              description: Location for time zone (external code)
                            E1ADRP0:
                              type: array
                              items:
                                properties:
                                  PERSON_Q:
                                    type: string
                                    maxLength: 3
                                    description: 'Qualifier for contact person (person function): AP=Contact Person'
                                    enum:
                                    - AP
                                  TITLE:
                                    type: string
                                    maxLength: 4
                                    description: Form-of-Address Key
                                  NAME_FIRST:
                                    type: string
                                    maxLength: 35
                                    description: Name components
                                  NAME_LAST:
                                    type: string
                                    maxLength: 35
                                    description: Last name
                                  NAME2_PERS:
                                    type: string
                                    maxLength: 35
                                    description: Name components
                                  NICKNAME:
                                    type: string
                                    maxLength: 20
                                    description: Nickname or first name
                                  INITIALS:
                                    type: string
                                    maxLength: 10
                                    description: Initials or "middle initial"
                                  TITLE_ACA1:
                                    type: string
                                    maxLength: 4
                                    description: Academic grades and names affixes
                                  TITLE_ACA2:
                                    type: string
                                    maxLength: 4
                                    description: Academic grades and names affixes
                                  TITLE_SPPL:
                                    type: string
                                    maxLength: 4
                                    description: Academic grades and names affixes
                                  PREFIX1:
                                    type: string
                                    maxLength: 4
                                    description: Name prefix
                                  PREFIX2:
                                    type: string
                                    maxLength: 4
                                    description: Name prefix
                                  DEPARTMENT:
                                    type: string
                                    maxLength: 40
                                    description: Department
                                  FUNCTION:
                                    type: string
                                    maxLength: 40
                                    description: Function
                            E1ADRE0:
                              type: array
                              items:
                                properties:
                                  EXTEND_Q:
                                    type: string
                                    maxLength: 3
                                    description: 'Qualifier for additional data, e.g. ILN or D&B number: 100=ILN - International Location Number,200=DUNS number,300=Own account number for recipient,301=Reference number for recipient (KNREF),302=Reference number for recipient (conversion via TEDPUA),303=Standard Point Location Code,304=Standard Carrier Code,305=Transportation planning point (recipient),306=Own account number at distributor,307=Own number allocated by distributor,308=Own number allocated
                                      by manufacturer'
                                    enum:
                                    - '100'
                                    - '200'
                                    - '300'
                                    - '301'
                                    - '302'
                                    - '303'
                                    - '304'
                                    - '305'
                                    - '306'
                                    - '307'
                                    - '308'
                                  EXTEND_D:
                                    type: string
                                    maxLength: 70
                                    description: Additional data, e.g. ILN or D&B no.
                          required:
                          - E1ADRM0
                      E1EDP13:
                        type: array
                        items:
                          properties:
                            RCVPFC:
                              type: string
                              maxLength: 2
                              description: Partner function of recipient
                            MESTYP:
                              type: string
                              maxLength: 30
                              description: Message type
                            MESCOD:
                              type: string
                              maxLength: 3
                              description: Message code
                            MESFCT:
                              type: string
                              maxLength: 3
                              description: Message function
                            TEST:
                              type: string
                              maxLength: 1
                              description: 'Flag for test mode: ""=Blank,X=Selection flag'
                              enum:
                              - ''
                              - X
                            SYNCHK:
                              type: string
                              maxLength: 1
                              description: 'Cancel Processing After Syntax Error: ""=Syntax check off,X=Syntax check on'
                              enum:
                              - ''
                              - X
                            USRTYP:
                              type: string
                              maxLength: 10
                              description: User Type
                            USRKEY:
                              type: string
                              maxLength: 70
                              description: 'Permitted users: ID'
                            USRLNG:
                              type: string
                              maxLength: 1
                              description: Language of notification
                            ISOUSRLNG:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                            OUTMOD:
                              type: string
                              maxLength: 1
                              description: 'Output Mode: 1=Transfer IDoc immediately and start external subsystem,2=Transfer IDoc immediately,3=Collect IDocs, transfer and start external subsystem,4=Collect IDocs and transfer'
                              enum:
                              - '1'
                              - '2'
                              - '3'
                              - '4'
                            RCVPOR:
                              type: string
                              maxLength: 10
                              description: Receiver port
                            IDOCTYP:
                              type: string
                              maxLength: 30
                              description: Basic type
                            CIMTYP:
                              type: string
                              maxLength: 30
                              description: Extension (customer extension of basic IDoc type)
                            STD:
                              type: string
                              maxLength: 1
                              description: EDI Standard
                            STDVRS:
                              type: string
                              maxLength: 6
                              description: Version of EDI standard
                            STDMES:
                              type: string
                              maxLength: 6
                              description: EDI message type
                            PCKSIZ:
                              type: string
                              maxLength: 4
                              description: 'Size of IDoc packets to be sent (unit: IDoc)'
                            SEGREL:
                              type: string
                              maxLength: 4
                              description: Release of IDoc segment
                            KAPPL:
                              type: string
                              maxLength: 2
                              description: Application for message conditions - without value table
                            KSCHL:
                              type: string
                              maxLength: 4
                              description: Message type
                            AENDE:
                              type: string
                              maxLength: 1
                              description: 'Change message flag: ""=No change message,X=Change message'
                              enum:
                              - ''
                              - X
                            EVCODA:
                              type: string
                              maxLength: 30
                              description: Outbound process code
                            EDIVIEW:
                              type: string
                              maxLength: 30
                              description: View of IDoc type
                            DSC_EVCODA:
                              type: string
                              maxLength: 50
                              description: Description of process
                            DSC_PORT:
                              type: string
                              maxLength: 50
                              description: Port description
                            DSC_MESTYP:
                              type: string
                              maxLength: 60
                              description: Short description of object
                            DSC_PARTYP:
                              type: string
                              maxLength: 60
                              description: Short description of object
                            DSC_USRLNG:
                              type: string
                              maxLength: 16
                              description: Field of length 16
                            DSC_IDOCTP:
                              type: string
                              maxLength: 60
                              description: Short description of object
                            DSC_CIMTYP:
                              type: string
                              maxLength: 60
                              description: Short description of object
                            DSC_EDVIEW:
                              type: string
                              maxLength: 60
                              description: Short description of object
                      E1EDP21:
                        type: array
                        items:
                          properties:
                            SNDPFC:
                              type: string
                              maxLength: 2
                              description: Partner function of sender
                            MESTYP:
                              type: string
                              maxLength: 30
                              description: Message type
                            MESCOD:
                              type: string
                              maxLength: 3
                              description: Message code
                            MESFCT:
                              type: string
                              maxLength: 3
                              description: Message function
                            TEST:
                              type: string
                              maxLength: 1
                              description: 'Flag for test mode: ""=Blank,X=Selection flag'
                              enum:
                              - ''
                              - X
                            EVCODE:
                              type: string
                              maxLength: 30
                              description: Inbound Process Code
                            SYNCHK:
                              type: string
                              maxLength: 1
                              description: 'Cancel Processing After Syntax Error: ""=Syntax check off,X=Syntax check on'
                              enum:
                              - ''
                              - X
                            USRTYP:
                              type: string
                              maxLength: 10
                              description: User Type
                            USRKEY:
                              type: string
                              maxLength: 70
                              description: 'Permitted users: ID'
                            USRLNG:
                              type: string
                              maxLength: 1
                              description: Language of notification
                            ISOUSRLNG:
                              type: string
                              maxLength: 2
                              description: Language according to ISO 639
                            INMOD:
                              type: string
                              maxLength: 1
                              description: 'IDoc processing immediate or via queue: 3=Trigger by background program,2=Obsolete, replaced by 3,1=Trigger immediately'
                              enum:
                              - '3'
                              - '2'
                              - '1'
                            DCART:
                              type: string
                              maxLength: 1
                              description: 'Type of data transfer to the application: ""=Blank,X=Selection flag'
                              enum:
                              - ''
                              - X
                            DSC_MESTYP:
                              type: string
                              maxLength: 60
                              description: Short description of object
                            DSC_EVCODE:
                              type: string
                              maxLength: 50
                              description: Description of process
                            DSC_PARTYP:
                              type: string
                              maxLength: 60
                              description: Short description of object
                            DSC_USRLNG:
                              type: string
                              maxLength: 16
                              description: Language
                    required:
                    - E1EDPP1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  TID:
                    type: string
                    description: tid
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
