> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fatorly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Put v1vendors



## OpenAPI

````yaml /api-reference/openapi.json put /v1/vendors/{id}
openapi: 3.0.1
info:
  title: Fatorly Integration
  version: v1
servers:
  - url: https://integration.fatorly.com
    description: Production
  - url: https://integration.sandbox.fatorly.com
    description: Sandbox
security:
  - ApiKey: []
tags:
  - name: CreditNotes
  - name: Customers
  - name: Invoices
  - name: Items
  - name: PurchaseCreditNotes
  - name: PurchaseInvoices
  - name: Vendors
  - name: Webhooks
  - name: WhoAmi
  - name: EchoTest
  - name: ThrowTest
paths:
  /v1/vendors/{id}:
    put:
      tags:
        - Vendors
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1VendorWrite'
          text/json:
            schema:
              $ref: '#/components/schemas/V1VendorWrite'
          application/*+json:
            schema:
              $ref: '#/components/schemas/V1VendorWrite'
        required: true
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/V1Vendor'
            application/json:
              schema:
                $ref: '#/components/schemas/V1Vendor'
            text/json:
              schema:
                $ref: '#/components/schemas/V1Vendor'
        '400':
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemPayload'
        '401':
          description: Unauthorized — Missing or invalid X-Api-Key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemPayload'
        '403':
          description: Forbidden — The API key lacks the scope this operation requires.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemPayload'
        '404':
          description: Not Found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemPayload'
        '422':
          description: Unprocessable Entity
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemPayload'
        '429':
          description: >-
            Too Many Requests — Rate limit exceeded; retry after the Retry-After
            interval.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
            X-RateLimit-Remaining:
              description: Requests remaining in the current window (0 when rejected).
              schema:
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemPayload'
        '500':
          description: Internal Server Error — Unexpected server error; report the traceId.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemPayload'
        '502':
          description: Bad Gateway
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemPayload'
components:
  schemas:
    V1VendorWrite:
      required:
        - name
      type: object
      properties:
        name:
          type: string
        nameAr:
          type: string
          default: null
          nullable: true
        email:
          type: string
          default: null
          nullable: true
        phone:
          type: string
          default: null
          nullable: true
        vatTrn:
          type: string
          default: null
          nullable: true
        address:
          type: string
          default: null
          nullable: true
        city:
          type: string
          default: null
          nullable: true
        country:
          type: string
          default: null
          nullable: true
        contactPerson:
          type: string
          default: null
          nullable: true
        participantId:
          type: string
          default: null
          nullable: true
        isActive:
          type: boolean
          default: true
        postalCode:
          type: string
          default: null
          nullable: true
        addressLine2:
          type: string
          default: null
          nullable: true
        stateProvince:
          type: string
          default: null
          nullable: true
        companyRegistrationNumber:
          type: string
          default: null
          nullable: true
        code:
          type: string
          default: null
          nullable: true
    V1Vendor:
      required:
        - id
        - name
        - nameAr
        - email
        - phone
        - vatTrn
        - address
        - city
        - country
        - contactPerson
        - participantId
        - isActive
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        nameAr:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        phone:
          type: string
          nullable: true
        vatTrn:
          type: string
          nullable: true
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        contactPerson:
          type: string
          nullable: true
        participantId:
          type: string
          nullable: true
        isActive:
          type: boolean
        postalCode:
          type: string
          default: null
          nullable: true
        addressLine2:
          type: string
          default: null
          nullable: true
        stateProvince:
          type: string
          default: null
          nullable: true
        companyRegistrationNumber:
          type: string
          default: null
          nullable: true
        code:
          type: string
          default: null
          nullable: true
    ProblemPayload:
      required:
        - type
        - title
        - status
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
          format: int32
        detail:
          type: string
          nullable: true
        instance:
          type: string
          nullable: true
        traceId:
          type: string
          nullable: true
        errors:
          type: array
          nullable: true
  securitySchemes:
    ApiKey:
      type: apiKey
      description: >-
        Your fat_… integration key. Create one in Settings → Integrations → API
        Keys.
      name: X-Api-Key
      in: header

````