# Document Raw Data

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /Documents:
    post:
      summary: Document Raw Data
      deprecated: false
      description: ''
      tags:
        - eTaxGo/Document Management
        - Documents
      parameters:
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: รหัส subscription key ของลูกค้า
          required: true
          example: <Your-Subscription-Key>
          schema:
            type: string
        - name: Authorization
          in: header
          description: >-
            OAuth token obtained after the user has provided consent and the
            authorized partner calls the /authorization/Connect/Token endpoint
            to retrieve this token
          required: true
          example: ''
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ' Content type of request payload Value: - application/x-www-form-urlencoded'
          required: true
          example: application/x-www-form-urlencoded
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              x-apidog-refs: {}
              x-apidog-orders:
                - rawData
                - pdfFile
                - xmlFile
              properties:
                rawData:
                  description: โครงสร้าง Json ที่ใช้ส่งข้อมูล
                  type: object
                  x-apidog-refs: {}
                  x-apidog-orders:
                    - DeliveryModels
                  properties:
                    DeliveryModels:
                      type: array
                      items:
                        type: object
                        x-apidog-refs: {}
                        x-apidog-orders:
                          - deliveryInfo
                          - documents
                          - eTaxNo
                        properties:
                          deliveryInfo:
                            description: ข้อมูลสำหรับการกำหนดการทำงานต่างๆ
                            type: object
                            x-apidog-refs:
                              01GSSQNXY7M33N18SPY3JGXCS6:
                                $ref: '#/components/schemas/DeliveryInfo'
                                x-apidog-overrides:
                                  emailAddress1: &ref_0
                                    type: string
                                    description: อีเมล 1
                                    nullable: true
                                  emailAddress2: &ref_1
                                    type: string
                                    description: อีเมล 2
                                    nullable: true
                                  customEmailAddresses: &ref_2
                                    type: array
                                    items:
                                      type: string
                                    description: >-
                                      อีเมลเพิ่มเติมกรณีต้องการส่งมากกว่า 2
                                      อีเมล
                                    nullable: true
                                  customSMSTelNos: &ref_4
                                    type: array
                                    items:
                                      type: string
                                    description: >-
                                      เบอร์โทรศัพท์มือถือสำหรับส่งข้อมูลเพิ่มเติม
                                    nullable: true
                                  smsTelNo1: &ref_3
                                    type: string
                                    description: เบอร์โทรศัพท์มือถือสำหรับส่งข้อมูล
                                    nullable: true
                                  password: &ref_5
                                    type: string
                                    description: รหัสผ่านกรณีเข้ารหัสไฟล์ PDF
                                    nullable: true
                                  printDeiveryType: &ref_6
                                    type: string
                                    description: >-
                                      ว่าง / NoPrint = ไม่จัดพิมพ์, Mail = ส่ง
                                      By Mail, Hand = ส่ง By Hand
                                    nullable: true
                                  eDeliveryType: &ref_7
                                    type: boolean
                                    description: 0 = ไม่ส่งทางอีเมล, 1 = ส่งทางอีเมล
                                    nullable: true
                                  isAlertbySMS: &ref_8
                                    type: boolean
                                    description: 0 = ไม่แจ้งทาง SMS, 1 = แจ้งทาง SMS
                                    nullable: true
                                  templateToken: &ref_9
                                    type: string
                                    description: ใช้สำหรับ Template
                                required:
                                  - templateToken
                            x-apidog-orders:
                              - 01GSSQNXY7M33N18SPY3JGXCS6
                            properties:
                              emailAddress1: *ref_0
                              emailAddress2: *ref_1
                              customEmailAddresses: *ref_2
                              smsTelNo1: *ref_3
                              customSMSTelNos: *ref_4
                              password: *ref_5
                              printDeiveryType: *ref_6
                              eDeliveryType: *ref_7
                              isAlertbySMS: *ref_8
                              templateToken: *ref_9
                              sendEmailDateTime:
                                type: string
                                nullable: true
                              sendSmsDateTime:
                                type: string
                                nullable: true
                            required:
                              - templateToken
                            x-apidog-ignore-properties:
                              - emailAddress1
                              - emailAddress2
                              - customEmailAddresses
                              - smsTelNo1
                              - customSMSTelNos
                              - password
                              - printDeiveryType
                              - eDeliveryType
                              - isAlertbySMS
                              - templateToken
                              - sendEmailDateTime
                              - sendSmsDateTime
                          documents:
                            type: array
                            items:
                              type: object
                              x-apidog-refs:
                                01GSSQTM9BQRERB1DNRXV2W2GB:
                                  $ref: '#/components/schemas/Document'
                                  x-apidog-overrides:
                                    header: &ref_110
                                      description: ส่วนหัวของเอกสาร
                                      type: object
                                      x-apidog-refs:
                                        01GSSQVPS7FW9QEDN7YG4V3GYP: &ref_112
                                          $ref: '#/components/schemas/Header'
                                          x-apidog-overrides:
                                            exchangedDocument: &ref_76
                                              type: object
                                              x-apidog-refs:
                                                01GSSQVRRF507Y3EPAS2X7WXQQ: &ref_118
                                                  $ref: '#/components/schemas/HExchangedDocument'
                                                  x-apidog-overrides:
                                                    id: &ref_10
                                                      type: string
                                                      description: เลขที่เอกสาร
                                                    name: &ref_11
                                                      type: string
                                                      description: ชื่อเอกสาร
                                                    typeCode: &ref_12
                                                      type: string
                                                      description: รหัสประเภทเอกสาร
                                                    issueDateTime: &ref_13
                                                      type: string
                                                      description: วันเดือนปี ที่ออกเอกสาร
                                                      format: date-time
                                                      examples:
                                                        - '2024-10-21T00:00:00'
                                                    content: &ref_18
                                                      type: string
                                                      description: เนื้อหา
                                                      nullable: true
                                                    subject: &ref_17
                                                      type: string
                                                      description: หัวข้อ
                                                      nullable: true
                                                    creationDateTime: &ref_16
                                                      type: string
                                                      description: วันเดือนปีและเวลาที่สร้างเอกสาร
                                                      format: date-time
                                                      examples:
                                                        - '2024-10-21T00:00:00'
                                                    purposeCode: &ref_15
                                                      type: string
                                                      description: รหัสสาเหตุการออกเอกสาร
                                                      nullable: true
                                                    purpose: &ref_14
                                                      type: string
                                                      description: สาเหตุการออกเอกสาร
                                                      nullable: true
                                                  required:
                                                    - id
                                                    - name
                                                    - typeCode
                                                    - issueDateTime
                                                    - creationDateTime
                                              x-apidog-orders:
                                                - 01GSSQVRRF507Y3EPAS2X7WXQQ
                                              properties:
                                                id: *ref_10
                                                name: *ref_11
                                                typeCode: *ref_12
                                                issueDateTime: *ref_13
                                                purpose: *ref_14
                                                purposeCode: *ref_15
                                                creationDateTime: *ref_16
                                                subject: *ref_17
                                                content: *ref_18
                                              required:
                                                - id
                                                - name
                                                - typeCode
                                                - issueDateTime
                                                - creationDateTime
                                              x-apidog-ignore-properties:
                                                - id
                                                - name
                                                - typeCode
                                                - issueDateTime
                                                - purpose
                                                - purposeCode
                                                - creationDateTime
                                                - subject
                                                - content
                                            sellerTradeParty: &ref_77
                                              type: object
                                              x-apidog-refs:
                                                01GSSQY48YHSR3WW2KT3KGC4S1: &ref_119
                                                  $ref: '#/components/schemas/HSellerTradeParty'
                                                  x-apidog-overrides:
                                                    id: &ref_19
                                                      type: string
                                                      description: รหัสผู้ค้า (ผู้ขาย)
                                                      nullable: true
                                                    name: &ref_20
                                                      type: string
                                                      description: ชื่อ (ผู้ขาย)
                                                    taxId: &ref_21
                                                      type: string
                                                      description: รหัสประจำตัวผู้เสียภาษี (ผู้ขาย)
                                                    postcode: &ref_22
                                                      type: string
                                                      description: รหัสไปรษณีย์ (ผู้ขาย)
                                                    buildingName: &ref_23
                                                      type: string
                                                      description: ชื่ออาคาร (ผู้ขาย)
                                                      nullable: true
                                                    addressLine1: &ref_24
                                                      type: string
                                                      description: ที่อยู่บรรทัดที่ 1 (ผู้ขาย)
                                                    addressLine2: &ref_25
                                                      type: string
                                                      description: ที่อยู่บรรทัดที่ 2 (ผู้ขาย)
                                                    line3: &ref_26
                                                      type: string
                                                      description: ซอย (ผู้ขาย)
                                                      nullable: true
                                                    line4: &ref_27
                                                      type: string
                                                      description: หมู่บ้าน (ผู้ขาย)
                                                      nullable: true
                                                    line5: &ref_28
                                                      type: string
                                                      description: หมู่ที่ (ผู้ขาย)
                                                      nullable: true
                                                    streetName: &ref_29
                                                      type: string
                                                      description: ถนน (ผู้ขาย)
                                                      nullable: true
                                                    cityName: &ref_30
                                                      type: string
                                                      description: รหัสอำเภอ (ผู้ขาย)
                                                    citySubDivisionName: &ref_31
                                                      type: string
                                                      description: รหัสตำบล (ผู้ขาย)
                                                    countryId: &ref_32
                                                      type: string
                                                      description: รหัสประเทศ (ผู้ขาย)
                                                    countrySubDivisionName: &ref_33
                                                      type: string
                                                      description: รหัสจังหวัด (ผู้ขาย)
                                                    buildingNumber: &ref_34
                                                      type: string
                                                      description: บ้านเลขที่ (ผู้ขาย)
                                                  required:
                                                    - name
                                                    - taxId
                                                    - postcode
                                                    - addressLine1
                                                    - addressLine2
                                                    - cityName
                                                    - citySubDivisionName
                                                    - countryId
                                                    - countrySubDivisionName
                                                    - buildingNumber
                                              x-apidog-orders:
                                                - 01GSSQY48YHSR3WW2KT3KGC4S1
                                              properties:
                                                id: *ref_19
                                                name: *ref_20
                                                taxId: *ref_21
                                                postcode: *ref_22
                                                buildingName: *ref_23
                                                addressLine1: *ref_24
                                                addressLine2: *ref_25
                                                line3: *ref_26
                                                line4: *ref_27
                                                line5: *ref_28
                                                streetName: *ref_29
                                                cityName: *ref_30
                                                citySubDivisionName: *ref_31
                                                countryId: *ref_32
                                                countrySubDivisionName: *ref_33
                                                buildingNumber: *ref_34
                                              required:
                                                - name
                                                - taxId
                                                - postcode
                                                - addressLine1
                                                - addressLine2
                                                - cityName
                                                - citySubDivisionName
                                                - countryId
                                                - countrySubDivisionName
                                                - buildingNumber
                                              x-apidog-ignore-properties:
                                                - id
                                                - name
                                                - taxId
                                                - postcode
                                                - buildingName
                                                - addressLine1
                                                - addressLine2
                                                - line3
                                                - line4
                                                - line5
                                                - streetName
                                                - cityName
                                                - citySubDivisionName
                                                - countryId
                                                - countrySubDivisionName
                                                - buildingNumber
                                            buyerTradeParty: &ref_78
                                              type: object
                                              x-apidog-refs:
                                                01GSSR326W28X750VVMEFG8SBV: &ref_120
                                                  $ref: '#/components/schemas/HBuyerTradeParty'
                                                  x-apidog-overrides:
                                                    id: &ref_35
                                                      type: string
                                                      description: ' รหัสผู้ค้า (ผู้ซื้อ)'
                                                      nullable: true
                                                    name: &ref_36
                                                      type: string
                                                      description: ' ชื่อ (ผู้ซื้อ)'
                                                    taxId: &ref_37
                                                      type: string
                                                      description: รหัสประจำตัวผู้เสียภาษี (ผู้ซื้อ)
                                                    taxIdSchemeId: &ref_38
                                                      type: string
                                                      nullable: true
                                                    postcode: &ref_39
                                                      type: string
                                                      description: ' รหัสไปรษณีย์ (ผู้ซื้อ)'
                                                      nullable: true
                                                    buildingName: &ref_40
                                                      type: string
                                                      description: ' ชื่ออาคาร (ผู้ซื้อ)'
                                                      nullable: true
                                                    addressLine1: &ref_41
                                                      type: string
                                                      description: ที่อยู่บรรทัดที่ 1 (ผู้ซื้อ)
                                                    addressLine2: &ref_42
                                                      type: string
                                                      description: ' ที่อยู่บรรทัดที่ 2 (ผู้ซื้อ)'
                                                      nullable: true
                                                    line3: &ref_43
                                                      type: string
                                                      description: ' ซอย (ผู้ซื้อ)'
                                                      nullable: true
                                                    line4: &ref_44
                                                      type: string
                                                      description: ' หมู่บ้าน (ผู้ซื้อ)'
                                                      nullable: true
                                                    buildingNumber: &ref_51
                                                      type: string
                                                      description: ' บ้านเลขที่ (ผู้ซื้อ)'
                                                      nullable: true
                                                    countrySubDivisionName: &ref_50
                                                      type: string
                                                      description: ' รหัสจังหวัด (ผู้ซื้อ)'
                                                      nullable: true
                                                    countryId: &ref_49
                                                      type: string
                                                      description: ' รหัสประเทศ (ผู้ซื้อ)'
                                                    citySubDivisionName: &ref_48
                                                      type: string
                                                      description: รหัสตำบล (ผู้ซื้อ)
                                                      nullable: true
                                                    cityName: &ref_47
                                                      type: string
                                                      description: ' รหัสอำเภอ (ผู้ซื้อ)'
                                                      nullable: true
                                                    streetName: &ref_46
                                                      type: string
                                                      description: ถนน (ผู้ซื้อ)
                                                      nullable: true
                                                    line5: &ref_45
                                                      type: string
                                                      description: ' หมู่ที่ (ผู้ซื้อ)'
                                                      nullable: true
                                                  required:
                                                    - name
                                                    - taxId
                                                    - addressLine1
                                                    - countryId
                                              x-apidog-orders:
                                                - 01GSSR326W28X750VVMEFG8SBV
                                              properties:
                                                id: *ref_35
                                                name: *ref_36
                                                taxId: *ref_37
                                                taxIdSchemeId: *ref_38
                                                postcode: *ref_39
                                                buildingName: *ref_40
                                                addressLine1: *ref_41
                                                addressLine2: *ref_42
                                                line3: *ref_43
                                                line4: *ref_44
                                                line5: *ref_45
                                                streetName: *ref_46
                                                cityName: *ref_47
                                                citySubDivisionName: *ref_48
                                                countryId: *ref_49
                                                countrySubDivisionName: *ref_50
                                                buildingNumber: *ref_51
                                              required:
                                                - name
                                                - taxId
                                                - addressLine1
                                                - countryId
                                              x-apidog-ignore-properties:
                                                - id
                                                - name
                                                - taxId
                                                - taxIdSchemeId
                                                - postcode
                                                - buildingName
                                                - addressLine1
                                                - addressLine2
                                                - line3
                                                - line4
                                                - line5
                                                - streetName
                                                - cityName
                                                - citySubDivisionName
                                                - countryId
                                                - countrySubDivisionName
                                                - buildingNumber
                                            additionalReferencedDocument: &ref_79
                                              type: object
                                              x-apidog-refs:
                                                01GSSRCVJY8M5K00AWT8PJGV34: &ref_121
                                                  $ref: >-
                                                    #/components/schemas/HAdditionalReferencedDocument
                                                  x-apidog-overrides:
                                                    issueAssignedId: &ref_52
                                                      type: string
                                                      description: เลขที่เอกสารอ้างอิง
                                                      nullable: true
                                                    issueDateTime: &ref_53
                                                      type: string
                                                      description: วันเดือนปี ที่ออกเอกสารอ้างอิง
                                                      format: date-time
                                                      examples:
                                                        - '2024-10-21T00:00:00'
                                                      nullable: true
                                                    referenceTypeCode: &ref_54
                                                      type: string
                                                      description: รหัสระบุประเภทเอกสารอ้างอิง
                                                      nullable: true
                                              x-apidog-orders:
                                                - 01GSSRCVJY8M5K00AWT8PJGV34
                                              properties:
                                                issueAssignedId: *ref_52
                                                issueDateTime: *ref_53
                                                referenceTypeCode: *ref_54
                                              x-apidog-ignore-properties:
                                                - issueAssignedId
                                                - issueDateTime
                                                - referenceTypeCode
                                            applicableTradeTax: &ref_80
                                              type: object
                                              x-apidog-refs:
                                                01GSSREBTXXPB16J32QMT3RR6Z: &ref_122
                                                  $ref: '#/components/schemas/HApplicableTradeTax'
                                                  x-apidog-overrides:
                                                    currencyCode: &ref_55
                                                      type: string
                                                      description: รหัสสกุลเงินตรา
                                                      nullable: true
                                                    typeCode: &ref_56
                                                      type: string
                                                      description: รหัสประเภทภาษี
                                                    calculatedRate: &ref_57
                                                      type: integer
                                                      description: อัตราภาษี
                                                    basisAmount: &ref_58
                                                      type: integer
                                                      description: >-
                                                        มูลค่าสินค้า/บริการ
                                                        (ม่รวมภาษีมูลค่าเพิ่ม)
                                                    calculatedAmount: &ref_59
                                                      type: integer
                                                      description: มูลค่าภาษีมูลค่าเพิ่ม
                                                  required:
                                                    - typeCode
                                                    - calculatedRate
                                                    - basisAmount
                                                    - calculatedAmount
                                              x-apidog-orders:
                                                - 01GSSREBTXXPB16J32QMT3RR6Z
                                              properties:
                                                currencyCode: *ref_55
                                                typeCode: *ref_56
                                                calculatedRate: *ref_57
                                                basisAmount: *ref_58
                                                calculatedAmount: *ref_59
                                              required:
                                                - typeCode
                                                - calculatedRate
                                                - basisAmount
                                                - calculatedAmount
                                              x-apidog-ignore-properties:
                                                - currencyCode
                                                - typeCode
                                                - calculatedRate
                                                - basisAmount
                                                - calculatedAmount
                                            specifiedTradeAllowance: &ref_81
                                              type: object
                                              x-apidog-refs:
                                                01GSSRGW36TP6QHXECB913NG3A: &ref_123
                                                  $ref: >-
                                                    #/components/schemas/HSpecifiedTradeAllowance
                                                  x-apidog-overrides:
                                                    chargeIndicator: &ref_60
                                                      type: boolean
                                                      description: ตัวบอกส่วนลด
                                                      nullable: true
                                                    actualAmount: &ref_61
                                                      type: integer
                                                      description: มูลค่าส่วนลด
                                                      nullable: true
                                                    reasonCode: &ref_62
                                                      type: string
                                                      description: รหัสเหตุผลในการคิดส่วนลด
                                                      nullable: true
                                                    reason: &ref_63
                                                      type: string
                                                      description: เหตุผลในการคิดส่วนลด
                                                      nullable: true
                                              x-apidog-orders:
                                                - 01GSSRGW36TP6QHXECB913NG3A
                                              properties:
                                                chargeIndicator: *ref_60
                                                actualAmount: *ref_61
                                                reasonCode: *ref_62
                                                reason: *ref_63
                                              x-apidog-ignore-properties:
                                                - chargeIndicator
                                                - actualAmount
                                                - reasonCode
                                                - reason
                                            specifiedTradeCharge: &ref_82
                                              type: object
                                              x-apidog-refs:
                                                01GSSRJ5DB1AR8MJQ5N0TMHQ50: &ref_124
                                                  $ref: >-
                                                    #/components/schemas/HSpecifiedTradeCharge
                                                  x-apidog-overrides:
                                                    chargeIndicator: &ref_64
                                                      type: boolean
                                                      description: ตัวบอกค่าธรรมเนียม
                                                      nullable: true
                                                    actualAmount: &ref_65
                                                      type: integer
                                                      description: มูลค่าค่าธรรมเนียม
                                                      nullable: true
                                                    reasonCode: &ref_66
                                                      type: string
                                                      description: รหัสเหตุผลในการคิดค่าธรรมเนียม
                                                      nullable: true
                                                    reason: &ref_67
                                                      type: string
                                                      description: เหตุผลในการคิดค่าธรรมเนียม
                                                      nullable: true
                                              x-apidog-orders:
                                                - 01GSSRJ5DB1AR8MJQ5N0TMHQ50
                                              properties:
                                                chargeIndicator: *ref_64
                                                actualAmount: *ref_65
                                                reasonCode: *ref_66
                                                reason: *ref_67
                                              x-apidog-ignore-properties:
                                                - chargeIndicator
                                                - actualAmount
                                                - reasonCode
                                                - reason
                                            specifiedTradeSettlementHeaderMonetarySummation: &ref_83
                                              type: object
                                              x-apidog-refs:
                                                01GSSRJATDCX8DEV8730SXCTW7: &ref_125
                                                  $ref: >-
                                                    #/components/schemas/HSpecifiedTradeSettlementHeaderMonetarySummation
                                                  x-apidog-overrides:
                                                    originalInformationAmount: &ref_68
                                                      type: integer
                                                      description: ' รวมมูลค่าตามเอกสารเดิม'
                                                      nullable: true
                                                    lineTotalAmount: &ref_69
                                                      type: integer
                                                      description: ' รวมมูลค่าตามรายการ/มูลค่าที่ถูกต้อง'
                                                    differenceSalesInformationAmount: &ref_70
                                                      type: integer
                                                      description: มูลค่าผลต่าง
                                                      nullable: true
                                                    allowanceTotalAmount: &ref_71
                                                      type: integer
                                                      description: ส่วนลดทั้งหมด
                                                      nullable: true
                                                    chargeTotalAmount: &ref_72
                                                      type: integer
                                                      description: ค่าธรรมเนียมทั้งหมด
                                                      nullable: true
                                                    taxBasisTotalAmount: &ref_73
                                                      type: integer
                                                      description: มูลค่าที่นำมาคิดภาษีมูลค่าเพิ่ม
                                                    taxTotalAmount: &ref_74
                                                      type: integer
                                                      description: จำนวนภาษีมูลค่าเพิ่ม
                                                    grandTotalAmount: &ref_75
                                                      type: integer
                                                      description: ' ยอดเงินรวม/ยอดเงินรวมภาษีมูลค่าเพิ่ม'
                                                  required:
                                                    - lineTotalAmount
                                                    - taxBasisTotalAmount
                                                    - taxTotalAmount
                                                    - grandTotalAmount
                                              x-apidog-orders:
                                                - 01GSSRJATDCX8DEV8730SXCTW7
                                              properties:
                                                originalInformationAmount: *ref_68
                                                lineTotalAmount: *ref_69
                                                differenceSalesInformationAmount: *ref_70
                                                allowanceTotalAmount: *ref_71
                                                chargeTotalAmount: *ref_72
                                                taxBasisTotalAmount: *ref_73
                                                taxTotalAmount: *ref_74
                                                grandTotalAmount: *ref_75
                                              required:
                                                - lineTotalAmount
                                                - taxBasisTotalAmount
                                                - taxTotalAmount
                                                - grandTotalAmount
                                              x-apidog-ignore-properties:
                                                - originalInformationAmount
                                                - lineTotalAmount
                                                - differenceSalesInformationAmount
                                                - allowanceTotalAmount
                                                - chargeTotalAmount
                                                - taxBasisTotalAmount
                                                - taxTotalAmount
                                                - grandTotalAmount
                                            custom: &ref_84
                                              description: ' ข้อมูลอื่น ๆ'
                                              anyOf:
                                                - &ref_126
                                                  $ref: '#/components/schemas/HCustom'
                                                  description: ' ข้อมูลอื่น ๆ'
                                                - type: 'null'
                                      x-apidog-orders:
                                        - 01GSSQVPS7FW9QEDN7YG4V3GYP
                                      properties:
                                        exchangedDocument: *ref_76
                                        sellerTradeParty: *ref_77
                                        buyerTradeParty: *ref_78
                                        additionalReferencedDocument: *ref_79
                                        applicableTradeTax: *ref_80
                                        specifiedTradeAllowance: *ref_81
                                        specifiedTradeCharge: *ref_82
                                        specifiedTradeSettlementHeaderMonetarySummation: *ref_83
                                        custom: *ref_84
                                      x-apidog-ignore-properties:
                                        - exchangedDocument
                                        - sellerTradeParty
                                        - buyerTradeParty
                                        - additionalReferencedDocument
                                        - applicableTradeTax
                                        - specifiedTradeAllowance
                                        - specifiedTradeCharge
                                        - >-
                                          specifiedTradeSettlementHeaderMonetarySummation
                                        - custom
                                    details: &ref_111
                                      type: array
                                      items:
                                        type: object
                                        x-apidog-refs:
                                          01GSSRTQ0DEKPZJ5C4MV9A61ZX: &ref_113
                                            $ref: '#/components/schemas/Detail'
                                            x-apidog-overrides:
                                              includedSupplyChainTradeLineItem: &ref_104
                                                type: object
                                                x-apidog-refs:
                                                  01GSSRTR18DB6BAAJYZ0VVW5YY: &ref_114
                                                    $ref: >-
                                                      #/components/schemas/DIncludedSupplyChainTradeLineItem
                                                    x-apidog-overrides:
                                                      lineId: &ref_85
                                                        type: string
                                                        description: ลำดับรายการ
                                                      id: &ref_86
                                                        type: string
                                                        description: รหัสสินค้า
                                                        nullable: true
                                                      name: &ref_87
                                                        type: string
                                                        description: ชื่อของสินค้า
                                                      chargeAmount: &ref_88
                                                        type: integer
                                                        description: ราคาต่อหน่วย
                                                      billedQuantity: &ref_89
                                                        type: integer
                                                        description: จำนวนสินค้า
                                                        nullable: true
                                                      billedQuantityUnit: &ref_90
                                                        type: integer
                                                        description: หน่วย
                                                        nullable: true
                                                    required:
                                                      - lineId
                                                      - name
                                                      - chargeAmount
                                                x-apidog-orders:
                                                  - 01GSSRTR18DB6BAAJYZ0VVW5YY
                                                properties:
                                                  lineId: *ref_85
                                                  id: *ref_86
                                                  name: *ref_87
                                                  chargeAmount: *ref_88
                                                  billedQuantity: *ref_89
                                                  billedQuantityUnit: *ref_90
                                                required:
                                                  - lineId
                                                  - name
                                                  - chargeAmount
                                                x-apidog-ignore-properties:
                                                  - lineId
                                                  - id
                                                  - name
                                                  - chargeAmount
                                                  - billedQuantity
                                                  - billedQuantityUnit
                                              applicableTradeTax: &ref_105
                                                type: object
                                                x-apidog-refs:
                                                  01GSSRY8WMACAE8BWKWXBDP92T: &ref_115
                                                    $ref: '#/components/schemas/DApplicableTradeTax'
                                                    x-apidog-overrides:
                                                      typeCode: &ref_91
                                                        type: string
                                                        description: รหัสประเภทภาษี
                                                      calculatedRate: &ref_92
                                                        type: integer
                                                        description: อัตราภาษี
                                                      basisAmount: &ref_93
                                                        type: integer
                                                        description: >-
                                                          มูลค่าสินค้า/บริการ
                                                          (ไม่รวมภาษีมูลค่าเพิ่ม)
                                                      calculatedAmount: &ref_94
                                                        type: integer
                                                        description: มูลค่าภาษีมูลค่าเพิ่ม
                                                    required:
                                                      - typeCode
                                                      - calculatedRate
                                                      - basisAmount
                                                      - calculatedAmount
                                                x-apidog-orders:
                                                  - 01GSSRY8WMACAE8BWKWXBDP92T
                                                properties:
                                                  typeCode: *ref_91
                                                  calculatedRate: *ref_92
                                                  basisAmount: *ref_93
                                                  calculatedAmount: *ref_94
                                                required:
                                                  - typeCode
                                                  - calculatedRate
                                                  - basisAmount
                                                  - calculatedAmount
                                                x-apidog-ignore-properties:
                                                  - typeCode
                                                  - calculatedRate
                                                  - basisAmount
                                                  - calculatedAmount
                                              specifiedTradeAllowance: &ref_106
                                                type: object
                                                x-apidog-refs:
                                                  01GSSRZGHQVJWXC0PR35GHAX6T: &ref_116
                                                    $ref: >-
                                                      #/components/schemas/DSpecifiedTradeAllowance
                                                    x-apidog-overrides:
                                                      chargeIndicator: &ref_95
                                                        type: boolean
                                                        description: ตัวบอกส่วนลด
                                                        nullable: true
                                                      actualAmount: &ref_96
                                                        type: integer
                                                        description: มูลค่าส่วนลด
                                                        nullable: true
                                                      reasonCode: &ref_97
                                                        type: string
                                                        description: รหัสเหตุผลในการคิดส่วนลด
                                                        nullable: true
                                                      reason: &ref_98
                                                        type: string
                                                        description: เหตุผลในการคิดส่วนลด
                                                        nullable: true
                                                x-apidog-orders:
                                                  - 01GSSRZGHQVJWXC0PR35GHAX6T
                                                properties:
                                                  chargeIndicator: *ref_95
                                                  actualAmount: *ref_96
                                                  reasonCode: *ref_97
                                                  reason: *ref_98
                                                x-apidog-ignore-properties:
                                                  - chargeIndicator
                                                  - actualAmount
                                                  - reasonCode
                                                  - reason
                                              specifiedTradeSettlementMonetarySummation: &ref_107
                                                type: object
                                                x-apidog-refs:
                                                  01GSSS0JYK9E18QC3BBA5QGQEE: &ref_117
                                                    $ref: >-
                                                      #/components/schemas/DSpecifiedTradeSettlementMonetarySummation
                                                    x-apidog-overrides:
                                                      netIncludingTaxesLineTotalAmount: &ref_101
                                                        type: integer
                                                        description: ' จำนวนเงินรวม'
                                                      netLineTotalAmount: &ref_100
                                                        type: integer
                                                        description: จำนวนเงินรวมก่อนภาษี
                                                      taxTotalAmount: &ref_99
                                                        type: integer
                                                        description: ภาษีมูลค่าเพิ่ม
                                                        nullable: true
                                                    required:
                                                      - netLineTotalAmount
                                                      - netIncludingTaxesLineTotalAmount
                                                x-apidog-orders:
                                                  - 01GSSS0JYK9E18QC3BBA5QGQEE
                                                properties:
                                                  taxTotalAmount: *ref_99
                                                  netLineTotalAmount: *ref_100
                                                  netIncludingTaxesLineTotalAmount: *ref_101
                                                required:
                                                  - netLineTotalAmount
                                                  - netIncludingTaxesLineTotalAmount
                                                x-apidog-ignore-properties:
                                                  - taxTotalAmount
                                                  - netLineTotalAmount
                                                  - netIncludingTaxesLineTotalAmount
                                              custom: &ref_108
                                                type: object
                                                x-apidog-refs:
                                                  01GSSS2PTTWZTJEZ5KD1284Z0Z: &ref_103
                                                    $ref: '#/components/schemas/DCustom'
                                                    x-apidog-overrides:
                                                      custom01: &ref_102
                                                        type: string
                                                        nullable: true
                                                x-apidog-orders:
                                                  - 01GSSS2PTTWZTJEZ5KD1284Z0Z
                                                properties:
                                                  custom01: *ref_102
                                                  custom02:
                                                    type: string
                                                    nullable: true
                                                  custom03:
                                                    type: string
                                                    nullable: true
                                                  custom04:
                                                    type: string
                                                    nullable: true
                                                  custom05:
                                                    type: string
                                                    nullable: true
                                                  custom06:
                                                    type: string
                                                    nullable: true
                                                  custom07:
                                                    type: string
                                                    nullable: true
                                                  custom08:
                                                    type: string
                                                    nullable: true
                                                  custom09:
                                                    type: string
                                                    nullable: true
                                                  custom10:
                                                    type: string
                                                    nullable: true
                                                  custom11:
                                                    type: string
                                                    nullable: true
                                                  custom12:
                                                    type: string
                                                    nullable: true
                                                  custom13:
                                                    type: string
                                                    nullable: true
                                                  custom14:
                                                    type: string
                                                    nullable: true
                                                  custom15:
                                                    type: string
                                                    nullable: true
                                                  custom16:
                                                    type: string
                                                    nullable: true
                                                  custom17:
                                                    type: string
                                                    nullable: true
                                                  custom18:
                                                    type: string
                                                    nullable: true
                                                  custom19:
                                                    type: string
                                                    nullable: true
                                                  custom20:
                                                    type: string
                                                    nullable: true
                                                  custom21:
                                                    type: string
                                                    nullable: true
                                                  custom22:
                                                    type: string
                                                    nullable: true
                                                  custom23:
                                                    type: string
                                                    nullable: true
                                                  custom24:
                                                    type: string
                                                    nullable: true
                                                  custom25:
                                                    type: string
                                                    nullable: true
                                                  custom26:
                                                    type: string
                                                    nullable: true
                                                  custom27:
                                                    type: string
                                                    nullable: true
                                                  custom28:
                                                    type: string
                                                    nullable: true
                                                  custom29:
                                                    type: string
                                                    nullable: true
                                                  custom30:
                                                    type: string
                                                    nullable: true
                                                  custom31:
                                                    type: string
                                                    nullable: true
                                                  custom32:
                                                    type: string
                                                    nullable: true
                                                  custom33:
                                                    type: string
                                                    nullable: true
                                                  custom34:
                                                    type: string
                                                    nullable: true
                                                  custom35:
                                                    type: string
                                                    nullable: true
                                                  custom36:
                                                    type: string
                                                    nullable: true
                                                  custom37:
                                                    type: string
                                                    nullable: true
                                                  custom38:
                                                    type: string
                                                    nullable: true
                                                  custom39:
                                                    type: string
                                                    nullable: true
                                                  custom40:
                                                    type: string
                                                    nullable: true
                                                  custom41:
                                                    type: string
                                                    nullable: true
                                                  custom42:
                                                    type: string
                                                    nullable: true
                                                  custom43:
                                                    type: string
                                                    nullable: true
                                                  custom44:
                                                    type: string
                                                    nullable: true
                                                  custom45:
                                                    type: string
                                                    nullable: true
                                                  custom46:
                                                    type: string
                                                    nullable: true
                                                  custom47:
                                                    type: string
                                                    nullable: true
                                                  custom48:
                                                    type: string
                                                    nullable: true
                                                  custom49:
                                                    type: string
                                                    nullable: true
                                                  custom50:
                                                    type: string
                                                    nullable: true
                                                description: ' ข้อมูลอื่น ๆ'
                                                x-apidog-ignore-properties:
                                                  - custom01
                                                  - custom02
                                                  - custom03
                                                  - custom04
                                                  - custom05
                                                  - custom06
                                                  - custom07
                                                  - custom08
                                                  - custom09
                                                  - custom10
                                                  - custom11
                                                  - custom12
                                                  - custom13
                                                  - custom14
                                                  - custom15
                                                  - custom16
                                                  - custom17
                                                  - custom18
                                                  - custom19
                                                  - custom20
                                                  - custom21
                                                  - custom22
                                                  - custom23
                                                  - custom24
                                                  - custom25
                                                  - custom26
                                                  - custom27
                                                  - custom28
                                                  - custom29
                                                  - custom30
                                                  - custom31
                                                  - custom32
                                                  - custom33
                                                  - custom34
                                                  - custom35
                                                  - custom36
                                                  - custom37
                                                  - custom38
                                                  - custom39
                                                  - custom40
                                                  - custom41
                                                  - custom42
                                                  - custom43
                                                  - custom44
                                                  - custom45
                                                  - custom46
                                                  - custom47
                                                  - custom48
                                                  - custom49
                                                  - custom50
                                              subDetails: &ref_109
                                                type: array
                                                items: *ref_103
                                                nullable: true
                                        x-apidog-orders:
                                          - 01GSSRTQ0DEKPZJ5C4MV9A61ZX
                                        properties:
                                          includedSupplyChainTradeLineItem: *ref_104
                                          applicableTradeTax: *ref_105
                                          specifiedTradeAllowance: *ref_106
                                          specifiedTradeSettlementMonetarySummation: *ref_107
                                          custom: *ref_108
                                          subDetails: *ref_109
                                        x-apidog-ignore-properties:
                                          - includedSupplyChainTradeLineItem
                                          - applicableTradeTax
                                          - specifiedTradeAllowance
                                          - >-
                                            specifiedTradeSettlementMonetarySummation
                                          - custom
                                          - subDetails
                                  required:
                                    - header
                                    - details
                              x-apidog-orders:
                                - 01GSSQTM9BQRERB1DNRXV2W2GB
                              properties:
                                header: *ref_110
                                details: *ref_111
                              required:
                                - header
                                - details
                              x-apidog-ignore-properties:
                                - header
                                - details
                            description: ข้อมูลของเอกสาร
                            nullable: true
                          eTaxNo:
                            type: string
                            description: หมายเลขของ eTax
                            nullable: true
                        required:
                          - deliveryInfo
                          - documents
                        x-apidog-ignore-properties: []
                  required:
                    - DeliveryModels
                  x-apidog-ignore-properties: []
                pdfFile:
                  type: string
                  format: byte
                  description: ' ไฟล์เอกสาร Pdf'
                  nullable: true
                xmlFile:
                  type: string
                  format: byte
                  description: ' ไฟล์เอกสาร Xml'
                  nullable: true
              required:
                - rawData
              x-apidog-ignore-properties: []
            example: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  validate:
                    type: boolean
                    description: ผลตรวจสอบข้อมูล
                  validateEmail:
                    type: boolean
                    description: ผลตรวจสอบอีเมล
                  validateSms:
                    type: boolean
                    description: ผลตรวจสอบเบอร์สำหรับส่ง SMS
                  errorMessage:
                    type: string
                    description: >-
                      ข้อความ Error: แจ้งผลการตรวจสอบข้อมูลล้มเหลง
                      (ข้อมูลไม่ตรงหรือผิด)
                      โดยจะบอกข้อผิดพลาดทั้งหมดในข้อมูลที่ส่งมา
                    nullable: true
                  warningMessage:
                    type: string
                    description: >-
                      ข้อความเตือน: *ไม่มีผลต่อการสร้างเอกสาร*
                      แต่จะกระทบการทำงานอื่น ๆ เช่น Email ไม่ถูกต้อง
                      ทำให้ไม่สามารถส่ง Email ได้
                    nullable: true
                  batchId:
                    type: string
                    nullable: true
                  pdf:
                    type: string
                    description: ไฟล์ PDF ที่ถูก Encode มาเป็น Base64
                    nullable: true
                  isSuccess:
                    type: boolean
                    description: สร้างเอกสารสำเร็จหรือไม่
                  printQty:
                    type: number
                    nullable: true
                  templateToken:
                    type: string
                    nullable: true
                required:
                  - validate
                  - validateEmail
                  - validateSms
                  - errorMessage
                  - warningMessage
                  - batchId
                  - pdf
                  - isSuccess
                  - printQty
                  - templateToken
                x-apidog-orders:
                  - validate
                  - validateEmail
                  - validateSms
                  - errorMessage
                  - warningMessage
                  - batchId
                  - pdf
                  - isSuccess
                  - printQty
                  - templateToken
                x-apidog-ignore-properties: []
              example:
                validate: true
                validateEmail: true
                validateSms: true
                errorMessage: null
                warningMessage: null
                batchId: null
                pdf: ...base64 encoded pdf...
                isSuccess: true
                printQty: null
                templateToken: null
          headers: {}
          x-apidog-name: OK
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: Forbidden
        x-200:User authentication required V2.:
          description: ''
          content:
            application/json:
              schema:
                title: ''
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Required%20authorization'
                  status:
                    $ref: '#/components/schemas/Response%20Error%20Msg%20'
                required:
                  - data
                  - status
                x-apidog-orders:
                  - data
                  - status
                x-apidog-ignore-properties: []
              example:
                data:
                  subCode: E9103
                  description: Authorization credentials required
                  metadata: {}
                status:
                  code: '4001'
                  description: Business error with 1 errors
          headers: {}
          x-apidog-name: User authentication required V2.
      security:
        - bearer: []
      x-apidog-folder: eTaxGo/Document Management
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-3627544-run
components:
  schemas:
    Document:
      type: object
      properties:
        header: *ref_112
        details:
          type: array
          items: *ref_113
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - header
        - details
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Detail:
      type: object
      properties:
        includedSupplyChainTradeLineItem: *ref_114
        applicableTradeTax: *ref_115
        specifiedTradeAllowance: *ref_116
        specifiedTradeSettlementMonetarySummation: *ref_117
        custom: *ref_103
        subDetails:
          type: array
          items: *ref_103
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - includedSupplyChainTradeLineItem
        - applicableTradeTax
        - specifiedTradeAllowance
        - specifiedTradeSettlementMonetarySummation
        - custom
        - subDetails
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    DCustom:
      type: object
      properties:
        custom01:
          type: string
          nullable: true
        custom02:
          type: string
          nullable: true
        custom03:
          type: string
          nullable: true
        custom04:
          type: string
          nullable: true
        custom05:
          type: string
          nullable: true
        custom06:
          type: string
          nullable: true
        custom07:
          type: string
          nullable: true
        custom08:
          type: string
          nullable: true
        custom09:
          type: string
          nullable: true
        custom10:
          type: string
          nullable: true
        custom11:
          type: string
          nullable: true
        custom12:
          type: string
          nullable: true
        custom13:
          type: string
          nullable: true
        custom14:
          type: string
          nullable: true
        custom15:
          type: string
          nullable: true
        custom16:
          type: string
          nullable: true
        custom17:
          type: string
          nullable: true
        custom18:
          type: string
          nullable: true
        custom19:
          type: string
          nullable: true
        custom20:
          type: string
          nullable: true
        custom21:
          type: string
          nullable: true
        custom22:
          type: string
          nullable: true
        custom23:
          type: string
          nullable: true
        custom24:
          type: string
          nullable: true
        custom25:
          type: string
          nullable: true
        custom26:
          type: string
          nullable: true
        custom27:
          type: string
          nullable: true
        custom28:
          type: string
          nullable: true
        custom29:
          type: string
          nullable: true
        custom30:
          type: string
          nullable: true
        custom31:
          type: string
          nullable: true
        custom32:
          type: string
          nullable: true
        custom33:
          type: string
          nullable: true
        custom34:
          type: string
          nullable: true
        custom35:
          type: string
          nullable: true
        custom36:
          type: string
          nullable: true
        custom37:
          type: string
          nullable: true
        custom38:
          type: string
          nullable: true
        custom39:
          type: string
          nullable: true
        custom40:
          type: string
          nullable: true
        custom41:
          type: string
          nullable: true
        custom42:
          type: string
          nullable: true
        custom43:
          type: string
          nullable: true
        custom44:
          type: string
          nullable: true
        custom45:
          type: string
          nullable: true
        custom46:
          type: string
          nullable: true
        custom47:
          type: string
          nullable: true
        custom48:
          type: string
          nullable: true
        custom49:
          type: string
          nullable: true
        custom50:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - custom01
        - custom02
        - custom03
        - custom04
        - custom05
        - custom06
        - custom07
        - custom08
        - custom09
        - custom10
        - custom11
        - custom12
        - custom13
        - custom14
        - custom15
        - custom16
        - custom17
        - custom18
        - custom19
        - custom20
        - custom21
        - custom22
        - custom23
        - custom24
        - custom25
        - custom26
        - custom27
        - custom28
        - custom29
        - custom30
        - custom31
        - custom32
        - custom33
        - custom34
        - custom35
        - custom36
        - custom37
        - custom38
        - custom39
        - custom40
        - custom41
        - custom42
        - custom43
        - custom44
        - custom45
        - custom46
        - custom47
        - custom48
        - custom49
        - custom50
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    DSpecifiedTradeSettlementMonetarySummation:
      type: object
      properties:
        taxTotalAmount:
          type: string
          nullable: true
        netLineTotalAmount:
          type: string
          nullable: true
        netIncludingTaxesLineTotalAmount:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - taxTotalAmount
        - netLineTotalAmount
        - netIncludingTaxesLineTotalAmount
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    DSpecifiedTradeAllowance:
      type: object
      properties:
        chargeIndicator:
          type: string
          nullable: true
        actualAmount:
          type: string
          nullable: true
        reasonCode:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - chargeIndicator
        - actualAmount
        - reasonCode
        - reason
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    DApplicableTradeTax:
      type: object
      properties:
        typeCode:
          type: string
          nullable: true
        calculatedRate:
          type: string
          nullable: true
        basisAmount:
          type: string
          nullable: true
        calculatedAmount:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - typeCode
        - calculatedRate
        - basisAmount
        - calculatedAmount
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    DIncludedSupplyChainTradeLineItem:
      type: object
      properties:
        lineId:
          type: string
          nullable: true
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        chargeAmount:
          type: string
          nullable: true
        billedQuantity:
          type: string
          nullable: true
        billedQuantityUnit:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - lineId
        - id
        - name
        - chargeAmount
        - billedQuantity
        - billedQuantityUnit
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Header:
      type: object
      properties:
        exchangedDocument: *ref_118
        sellerTradeParty: *ref_119
        buyerTradeParty: *ref_120
        additionalReferencedDocument: *ref_121
        applicableTradeTax: *ref_122
        specifiedTradeAllowance: *ref_123
        specifiedTradeCharge: *ref_124
        specifiedTradeSettlementHeaderMonetarySummation: *ref_125
        custom: *ref_126
      additionalProperties: false
      x-apidog-orders:
        - exchangedDocument
        - sellerTradeParty
        - buyerTradeParty
        - additionalReferencedDocument
        - applicableTradeTax
        - specifiedTradeAllowance
        - specifiedTradeCharge
        - specifiedTradeSettlementHeaderMonetarySummation
        - custom
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HCustom:
      type: object
      properties:
        custom01:
          type: string
          nullable: true
        custom02:
          type: string
          nullable: true
        custom03:
          type: string
          nullable: true
        custom04:
          type: string
          nullable: true
        custom05:
          type: string
          nullable: true
        custom06:
          type: string
          nullable: true
        custom07:
          type: string
          nullable: true
        custom08:
          type: string
          nullable: true
        custom09:
          type: string
          nullable: true
        custom10:
          type: string
          nullable: true
        custom11:
          type: string
          nullable: true
        custom12:
          type: string
          nullable: true
        custom13:
          type: string
          nullable: true
        custom14:
          type: string
          nullable: true
        custom15:
          type: string
          nullable: true
        custom16:
          type: string
          nullable: true
        custom17:
          type: string
          nullable: true
        custom18:
          type: string
          nullable: true
        custom19:
          type: string
          nullable: true
        custom20:
          type: string
          nullable: true
        custom21:
          type: string
          nullable: true
        custom22:
          type: string
          nullable: true
        custom23:
          type: string
          nullable: true
        custom24:
          type: string
          nullable: true
        custom25:
          type: string
          nullable: true
        custom26:
          type: string
          nullable: true
        custom27:
          type: string
          nullable: true
        custom28:
          type: string
          nullable: true
        custom29:
          type: string
          nullable: true
        custom30:
          type: string
          nullable: true
        custom31:
          type: string
          nullable: true
        custom32:
          type: string
          nullable: true
        custom33:
          type: string
          nullable: true
        custom34:
          type: string
          nullable: true
        custom35:
          type: string
          nullable: true
        custom36:
          type: string
          nullable: true
        custom37:
          type: string
          nullable: true
        custom38:
          type: string
          nullable: true
        custom39:
          type: string
          nullable: true
        custom40:
          type: string
          nullable: true
        custom41:
          type: string
          nullable: true
        custom42:
          type: string
          nullable: true
        custom43:
          type: string
          nullable: true
        custom44:
          type: string
          nullable: true
        custom45:
          type: string
          nullable: true
        custom46:
          type: string
          nullable: true
        custom47:
          type: string
          nullable: true
        custom48:
          type: string
          nullable: true
        custom49:
          type: string
          nullable: true
        custom50:
          type: string
          nullable: true
        custom51:
          type: string
          nullable: true
        custom52:
          type: string
          nullable: true
        custom53:
          type: string
          nullable: true
        custom54:
          type: string
          nullable: true
        custom55:
          type: string
          nullable: true
        custom56:
          type: string
          nullable: true
        custom57:
          type: string
          nullable: true
        custom58:
          type: string
          nullable: true
        custom59:
          type: string
          nullable: true
        custom60:
          type: string
          nullable: true
        custom61:
          type: string
          nullable: true
        custom62:
          type: string
          nullable: true
        custom63:
          type: string
          nullable: true
        custom64:
          type: string
          nullable: true
        custom65:
          type: string
          nullable: true
        custom66:
          type: string
          nullable: true
        custom67:
          type: string
          nullable: true
        custom68:
          type: string
          nullable: true
        custom69:
          type: string
          nullable: true
        custom70:
          type: string
          nullable: true
        custom71:
          type: string
          nullable: true
        custom72:
          type: string
          nullable: true
        custom73:
          type: string
          nullable: true
        custom74:
          type: string
          nullable: true
        custom75:
          type: string
          nullable: true
        custom76:
          type: string
          nullable: true
        custom77:
          type: string
          nullable: true
        custom78:
          type: string
          nullable: true
        custom79:
          type: string
          nullable: true
        custom80:
          type: string
          nullable: true
        custom81:
          type: string
          nullable: true
        custom82:
          type: string
          nullable: true
        custom83:
          type: string
          nullable: true
        custom84:
          type: string
          nullable: true
        custom85:
          type: string
          nullable: true
        custom86:
          type: string
          nullable: true
        custom87:
          type: string
          nullable: true
        custom88:
          type: string
          nullable: true
        custom89:
          type: string
          nullable: true
        custom90:
          type: string
          nullable: true
        custom91:
          type: string
          nullable: true
        custom92:
          type: string
          nullable: true
        custom93:
          type: string
          nullable: true
        custom94:
          type: string
          nullable: true
        custom95:
          type: string
          nullable: true
        custom96:
          type: string
          nullable: true
        custom97:
          type: string
          nullable: true
        custom98:
          type: string
          nullable: true
        custom99:
          type: string
          nullable: true
        custom100:
          type: string
          nullable: true
        custom101:
          type: string
          nullable: true
        custom102:
          type: string
          nullable: true
        custom103:
          type: string
          nullable: true
        custom104:
          type: string
          nullable: true
        custom105:
          type: string
          nullable: true
        custom106:
          type: string
          nullable: true
        custom107:
          type: string
          nullable: true
        custom108:
          type: string
          nullable: true
        custom109:
          type: string
          nullable: true
        custom110:
          type: string
          nullable: true
        custom111:
          type: string
          nullable: true
        custom112:
          type: string
          nullable: true
        custom113:
          type: string
          nullable: true
        custom114:
          type: string
          nullable: true
        custom115:
          type: string
          nullable: true
        custom116:
          type: string
          nullable: true
        custom117:
          type: string
          nullable: true
        custom118:
          type: string
          nullable: true
        custom119:
          type: string
          nullable: true
        custom120:
          type: string
          nullable: true
        custom121:
          type: string
          nullable: true
        custom122:
          type: string
          nullable: true
        custom123:
          type: string
          nullable: true
        custom124:
          type: string
          nullable: true
        custom125:
          type: string
          nullable: true
        custom126:
          type: string
          nullable: true
        custom127:
          type: string
          nullable: true
        custom128:
          type: string
          nullable: true
        custom129:
          type: string
          nullable: true
        custom130:
          type: string
          nullable: true
        custom131:
          type: string
          nullable: true
        custom132:
          type: string
          nullable: true
        custom133:
          type: string
          nullable: true
        custom134:
          type: string
          nullable: true
        custom135:
          type: string
          nullable: true
        custom136:
          type: string
          nullable: true
        custom137:
          type: string
          nullable: true
        custom138:
          type: string
          nullable: true
        custom139:
          type: string
          nullable: true
        custom140:
          type: string
          nullable: true
        custom141:
          type: string
          nullable: true
        custom142:
          type: string
          nullable: true
        custom143:
          type: string
          nullable: true
        custom144:
          type: string
          nullable: true
        custom145:
          type: string
          nullable: true
        custom146:
          type: string
          nullable: true
        custom147:
          type: string
          nullable: true
        custom148:
          type: string
          nullable: true
        custom149:
          type: string
          nullable: true
        custom150:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - custom01
        - custom02
        - custom03
        - custom04
        - custom05
        - custom06
        - custom07
        - custom08
        - custom09
        - custom10
        - custom11
        - custom12
        - custom13
        - custom14
        - custom15
        - custom16
        - custom17
        - custom18
        - custom19
        - custom20
        - custom21
        - custom22
        - custom23
        - custom24
        - custom25
        - custom26
        - custom27
        - custom28
        - custom29
        - custom30
        - custom31
        - custom32
        - custom33
        - custom34
        - custom35
        - custom36
        - custom37
        - custom38
        - custom39
        - custom40
        - custom41
        - custom42
        - custom43
        - custom44
        - custom45
        - custom46
        - custom47
        - custom48
        - custom49
        - custom50
        - custom51
        - custom52
        - custom53
        - custom54
        - custom55
        - custom56
        - custom57
        - custom58
        - custom59
        - custom60
        - custom61
        - custom62
        - custom63
        - custom64
        - custom65
        - custom66
        - custom67
        - custom68
        - custom69
        - custom70
        - custom71
        - custom72
        - custom73
        - custom74
        - custom75
        - custom76
        - custom77
        - custom78
        - custom79
        - custom80
        - custom81
        - custom82
        - custom83
        - custom84
        - custom85
        - custom86
        - custom87
        - custom88
        - custom89
        - custom90
        - custom91
        - custom92
        - custom93
        - custom94
        - custom95
        - custom96
        - custom97
        - custom98
        - custom99
        - custom100
        - custom101
        - custom102
        - custom103
        - custom104
        - custom105
        - custom106
        - custom107
        - custom108
        - custom109
        - custom110
        - custom111
        - custom112
        - custom113
        - custom114
        - custom115
        - custom116
        - custom117
        - custom118
        - custom119
        - custom120
        - custom121
        - custom122
        - custom123
        - custom124
        - custom125
        - custom126
        - custom127
        - custom128
        - custom129
        - custom130
        - custom131
        - custom132
        - custom133
        - custom134
        - custom135
        - custom136
        - custom137
        - custom138
        - custom139
        - custom140
        - custom141
        - custom142
        - custom143
        - custom144
        - custom145
        - custom146
        - custom147
        - custom148
        - custom149
        - custom150
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HSpecifiedTradeSettlementHeaderMonetarySummation:
      type: object
      properties:
        originalInformationAmount:
          type: string
          nullable: true
        lineTotalAmount:
          type: string
          nullable: true
        differenceSalesInformationAmount:
          type: string
          nullable: true
        allowanceTotalAmount:
          type: string
          nullable: true
        chargeTotalAmount:
          type: string
          nullable: true
        taxBasisTotalAmount:
          type: string
          nullable: true
        taxTotalAmount:
          type: string
          nullable: true
        grandTotalAmount:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - originalInformationAmount
        - lineTotalAmount
        - differenceSalesInformationAmount
        - allowanceTotalAmount
        - chargeTotalAmount
        - taxBasisTotalAmount
        - taxTotalAmount
        - grandTotalAmount
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HSpecifiedTradeCharge:
      type: object
      properties:
        chargeIndicator:
          type: string
          nullable: true
        actualAmount:
          type: string
          nullable: true
        reasonCode:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - chargeIndicator
        - actualAmount
        - reasonCode
        - reason
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HSpecifiedTradeAllowance:
      type: object
      properties:
        chargeIndicator:
          type: string
          nullable: true
        actualAmount:
          type: string
          nullable: true
        reasonCode:
          type: string
          nullable: true
        reason:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - chargeIndicator
        - actualAmount
        - reasonCode
        - reason
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HApplicableTradeTax:
      type: object
      properties:
        currencyCode:
          type: string
          nullable: true
        typeCode:
          type: string
          nullable: true
        calculatedRate:
          type: string
          nullable: true
        basisAmount:
          type: string
          nullable: true
        calculatedAmount:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - currencyCode
        - typeCode
        - calculatedRate
        - basisAmount
        - calculatedAmount
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HAdditionalReferencedDocument:
      type: object
      properties:
        issueAssignedId:
          type: string
          nullable: true
        issueDateTime:
          type: string
          nullable: true
        referenceTypeCode:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - issueAssignedId
        - issueDateTime
        - referenceTypeCode
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HBuyerTradeParty:
      type: object
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        taxId:
          type: string
          nullable: true
        taxIdSchemeId:
          type: string
          nullable: true
        postcode:
          type: string
          nullable: true
        buildingName:
          type: string
          nullable: true
        addressLine1:
          type: string
          nullable: true
        addressLine2:
          type: string
          nullable: true
        line3:
          type: string
          nullable: true
        line4:
          type: string
          nullable: true
        line5:
          type: string
          nullable: true
        streetName:
          type: string
          nullable: true
        cityName:
          type: string
          nullable: true
        citySubDivisionName:
          type: string
          nullable: true
        countryId:
          type: string
          nullable: true
        countrySubDivisionName:
          type: string
          nullable: true
        buildingNumber:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - id
        - name
        - taxId
        - taxIdSchemeId
        - postcode
        - buildingName
        - addressLine1
        - addressLine2
        - line3
        - line4
        - line5
        - streetName
        - cityName
        - citySubDivisionName
        - countryId
        - countrySubDivisionName
        - buildingNumber
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HSellerTradeParty:
      type: object
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        taxId:
          type: string
          nullable: true
        postcode:
          type: string
          nullable: true
        buildingName:
          type: string
          nullable: true
        addressLine1:
          type: string
          nullable: true
        addressLine2:
          type: string
          nullable: true
        line3:
          type: string
          nullable: true
        line4:
          type: string
          nullable: true
        line5:
          type: string
          nullable: true
        streetName:
          type: string
          nullable: true
        cityName:
          type: string
          nullable: true
        citySubDivisionName:
          type: string
          nullable: true
        countryId:
          type: string
          nullable: true
        countrySubDivisionName:
          type: string
          nullable: true
        buildingNumber:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - id
        - name
        - taxId
        - postcode
        - buildingName
        - addressLine1
        - addressLine2
        - line3
        - line4
        - line5
        - streetName
        - cityName
        - citySubDivisionName
        - countryId
        - countrySubDivisionName
        - buildingNumber
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    HExchangedDocument:
      type: object
      properties:
        id:
          type: string
          nullable: true
        name:
          type: string
          nullable: true
        typeCode:
          type: string
          nullable: true
        issueDateTime:
          type: string
          nullable: true
        purpose:
          type: string
          nullable: true
        purposeCode:
          type: string
          nullable: true
        creationDateTime:
          type: string
          nullable: true
        subject:
          type: string
          nullable: true
        content:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - id
        - name
        - typeCode
        - issueDateTime
        - purpose
        - purposeCode
        - creationDateTime
        - subject
        - content
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    DeliveryInfo:
      type: object
      properties:
        emailAddress1:
          type: string
          nullable: true
        emailAddress2:
          type: string
          nullable: true
        customEmailAddresses:
          type: array
          items:
            type: string
          nullable: true
        smsTelNo1:
          type: string
          nullable: true
        customSMSTelNos:
          type: array
          items:
            type: string
          nullable: true
        password:
          type: string
          nullable: true
        printDeiveryType:
          type: string
          nullable: true
        eDeliveryType:
          type: string
          nullable: true
        isAlertbySMS:
          type: string
          nullable: true
        templateToken:
          type: string
          nullable: true
        sendEmailDateTime:
          type: string
          nullable: true
        sendSmsDateTime:
          type: string
          nullable: true
      additionalProperties: false
      x-apidog-orders:
        - emailAddress1
        - emailAddress2
        - customEmailAddresses
        - smsTelNo1
        - customSMSTelNos
        - password
        - printDeiveryType
        - eDeliveryType
        - isAlertbySMS
        - templateToken
        - sendEmailDateTime
        - sendSmsDateTime
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    'Response Error Msg ':
      type: object
      properties:
        code:
          type: string
          x-apidog-mock: '4001'
        description:
          type: string
          x-apidog-mock: Business error with 1 errors
      required:
        - code
        - description
      x-apidog-orders:
        - code
        - description
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    Required authorization:
      type: object
      properties:
        subCode:
          type: string
          x-apidog-mock: E9103
        description:
          type: string
          x-apidog-mock: Authorization credentials required
        metadata:
          type: object
          properties: {}
          x-apidog-orders: []
          x-apidog-ignore-properties: []
      required:
        - subCode
        - description
        - metadata
      x-apidog-orders:
        - subCode
        - description
        - metadata
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
