# PUT /api/payments/{id}

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

- `id` (path, string, required)
  Type: string

Request body: application/json (required)

Type: object

Schema: [UpdatePaymentDTO](https://sourcey-gauzy.pages.dev/api-reference/models/updatepaymentdto/index.md)

- `tenant` (optional)
  Type: object

- `tenantId` (optional)
  Type: string

- `organization` (required)
  Type: object

- `organizationId` (required)
  Type: string

- `sentTo` (optional)
  Type: string

- `paymentDate` (optional)
  Type: string, date-time

- `amount` (required)
  Type: number

- `note` (optional)
  Type: string

- `currency` (optional)
  Type: string
  
  enum: ["AFN","AFA","ALL","ALK","DZD","ADP","AOA","AOK","AON","AOR","ARA","ARS","ARM","ARP","ARL","AMD","AWG","AUD","ATS","AZN","AZM","BSD","BHD","BDT","BBD","BYN","BYB","BYR","BEF","BEC","BEL","BZD","BMD","BTN","BOB","BOL","BOV","BOP","BAM","BAD","BAN","BWP","BRC","BRZ","BRE","BRR","BRN","BRB","BRL","GBP","BND","BGL","BGN","BGO","BGM","BUK","BIF","XPF","KHR","CAD","CVE","KYD","XAF","CLE","CLP","CLF","CNX","CNY","COP","COU","KMF","CDF","CRC","HRD","HRK","CUC","CUP","CYP","CZK","CSK","DKK","DJF","DOP","NLG","XCD","DDM","ECS","ECV","EGP","GQE","ERN","EEK","ETB","EUR","XEU","FKP","FJD","FIM","FRF","XFO","XFU","GMD","GEK","GEL","DEM","GHS","GHC","GIP","GRD","GTQ","GWP","GNF","GNS","GYD","HTG","HNL","HKD","HUF","ISK","ISJ","INR","IDR","IRR","IQD","IEP","ILS","ILP","ILR","ITL","JMD","JPY","JOD","KZT","KES","KWD","KGS","LAK","LVL","LVR","LBP","LSL","LRD","LYD","LTL","LTT","LUL","LUC","LUF","MOP","MKD","MKN","MGA","MGF","MWK","MYR","MVR","MVP","MLF","MTL","MTP","MRO","MUR","MXV","MXN","MXP","MDC","MDL","MCF","MNT","MAD","MAF","MZE","MZN","MZM","MMK","NAD","NPR","ANG","TWD","NZD","NIO","NIC","NGN","KPW","NOK","OMR","PKR","PAB","PGK","PYG","PEI","PEN","PES","PHP","PLN","PLZ","PTE","GWE","QAR","XRE","RHD","RON","ROL","RUB","RUR","RWF","SVC","WST","SAR","RSD","CSD","SCR","SLL","SGD","SKK","SIT","SBD","SOS","ZAR","ZAL","KRH","KRW","KRO","SSP","SUR","ESP","ESA","ESB","LKR","SHP","SDD","SDG","SDP","SRD","SRG","SZL","SEK","CHF","SYP","STD","TJR","TJS","TZS","THB","TPE","TOP","TTD","TND","TRY","TRL","TMT","TMM","USD","USN","USS","UGX","UGS","UAH","UAK","AED","UYU","UYP","UYI","UZS","VUV","VEF","VEB","VND","VNN","CHE","CHW","XOF","YDD","YER","YUN","YUD","YUM","YUR","ZRN","ZRZ","ZMW","ZMK","ZWD","ZWR","ZWL"]

- `paymentMethod` (optional)
  Type: string
  
  enum: ["BANK_TRANSFER","CASH","CHEQUE","CREDIT_CARD","DEBIT","ONLINE"]

- `overdue` (optional)
  Type: boolean

- `invoice` (optional)
  Reference: [Invoice](https://sourcey-gauzy.pages.dev/api-reference/models/invoice/index.md); Type: object

- `invoiceId` (optional)
  Type: string

- `project` (optional)
  Reference: [OrganizationProject](https://sourcey-gauzy.pages.dev/api-reference/models/organizationproject/index.md); Type: object

- `projectId` (optional)
  Type: string

- `organizationContact` (optional)
  Reference: [OrganizationContact](https://sourcey-gauzy.pages.dev/api-reference/models/organizationcontact/index.md); Type: object

- `organizationContactId` (optional)
  Type: string

- `tags` (optional)
  Type: array
  
  Items:
    Type: array

Responses:

- 202: 

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/payments/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "paymentDate": "2024-01-15T09:30:00Z",
  "amount": 0,
  "note": "string",
  "currency": "AFN",
  "paymentMethod": "BANK_TRANSFER",
  "overdue": true,
  "invoice": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "invoiceDate": "2024-01-15T09:30:00Z",
    "invoiceNumber": 0,
    "dueDate": "2024-01-15T09:30:00Z",
    "currency": "AFN",
    "discountValue": 0,
    "paid": true,
    "tax": 0,
    "tax2": 0,
    "terms": "string",
    "totalValue": 0,
    "status": "string",
    "isEstimate": true,
    "isAccepted": true,
    "discountType": "PERCENT",
    "taxType": "PERCENT",
    "tax2Type": "PERCENT",
    "invoiceType": "BY_EMPLOYEE_HOURS",
    "sentTo": "string",
    "organizationContactId": "string",
    "internalNote": "string",
    "alreadyPaid": 0,
    "amountDue": 0,
    "hasRemainingAmountInvoiced": true,
    "token": "string",
    "fromOrganization": {
      "select": {},
      "relations": {},
      "where": {},
      "order": {},
      "withDeleted": true,
      "take": 0,
      "skip": 0
    },
    "fromOrganizationId": "string",
    "toContactId": "string",
    "invoiceItems": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "description": "string",
        "price": 0,
        "quantity": 0,
        "totalValue": 0,
        "applyTax": true,
        "applyDiscount": true,
        "expenseId": "string",
        "invoiceId": "string",
        "task": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "title": "string",
          "description": "string",
          "status": "string",
          "priority": "string",
          "size": "string",
          "issueType": "string",
          "estimate": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "public": true,
          "startDate": "2024-01-15T09:30:00Z",
          "resolvedAt": "2024-01-15T09:30:00Z",
          "version": "string",
          "isDraft": true,
          "isScreeningTask": true,
          "parentId": "string",
          "project": {},
          "projectId": "string",
          "organizationSprint": {},
          "organizationSprintId": "string",
          "taskStatus": {},
          "taskStatusId": "string",
          "taskSize": {},
          "taskSizeId": "string",
          "taskPriority": {},
          "taskPriorityId": "string",
          "taskType": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "name": "string",
            "value": "string",
            "description": "string",
            "icon": "string",
            "color": "string",
            "isDefault": false,
            "isSystem": false,
            "imageId": "string",
            "projectId": "string",
            "organizationTeamId": "string"
          },
          "taskTypeId": "string",
          "tags": [
            []
          ],
          "members": [
            []
          ],
          "teams": [
            []
          ],
          "modules": [
            []
          ]
        },
        "taskId": "string",
        "employee": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "short_description": "string",
          "description": "string",
          "startedWorkOn": "2024-01-15T09:30:00Z",
          "endWork": "2024-01-15T09:30:00Z",
          "payPeriod": "WEEKLY",
          "billRateValue": 0,
          "minimumBillingRate": 0,
          "billRateCurrency": "USD",
          "reWeeklyLimit": 0,
          "offerDate": "2024-01-15T09:30:00Z",
          "acceptDate": "2024-01-15T09:30:00Z",
          "rejectDate": "2024-01-15T09:30:00Z",
          "employeeLevel": "string",
          "anonymousBonus": true,
          "averageIncome": 0,
          "averageBonus": 0,
          "totalWorkHours": 0,
          "averageExpenses": 0,
          "show_anonymous_bonus": true,
          "show_average_bonus": true,
          "show_average_expenses": true,
          "show_average_income": true,
          "show_billrate": true,
          "show_payperiod": true,
          "show_start_work_on": true,
          "isJobSearchActive": true,
          "linkedInUrl": "string",
          "facebookUrl": "string",
          "instagramUrl": "string",
          "twitterUrl": "string",
          "githubUrl": "string",
          "gitlabUrl": "string",
          "upworkUrl": "string",
          "stackoverflowUrl": "string",
          "isVerified": true,
          "isVetted": true,
          "totalJobs": 0,
          "jobSuccess": 0,
          "profile_link": "string",
          "isTrackingEnabled": true,
          "isOnline": true,
          "isAway": false,
          "isTrackingTime": true,
          "allowScreenshotCapture": true,
          "allowManualTime": true,
          "allowModifyTime": true,
          "allowDeleteTime": true,
          "allowAgentAppExit": true,
          "allowLogoutFromAgentApp": true,
          "trackKeyboardMouseActivity": true,
          "trackAllDisplays": true,
          "upworkId": "string",
          "linkedInId": "string",
          "userId": "string",
          "contactId": "string",
          "organizationPositionId": "string"
        },
        "employeeId": "string",
        "projectId": "string",
        "product": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "enabled": true,
          "code": "string",
          "imageUrl": "string",
          "featuredImage": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "name": "string",
            "url": "string",
            "thumb": "string",
            "width": 0,
            "height": 0,
            "size": 0,
            "isFeatured": true,
            "externalProviderId": "string",
            "storageProvider": "LOCAL",
            "productFeaturedImage": [],
            "equipmentImage": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "type": "string",
                "serialNumber": "string",
                "manufacturedYear": 0,
                "initialCost": 0,
                "currency": "AFN",
                "maxSharePeriod": 0,
                "autoApproveShare": true,
                "equipmentSharings": [
                  {
                    "deletedAt": "2018-11-21T06:20:32.232Z",
                    "createdAt": "2018-11-21T06:20:32.232Z",
                    "updatedAt": "2018-11-21T06:20:32.232Z",
                    "id": "string",
                    "isActive": true,
                    "isArchived": false,
                    "archivedAt": "2018-11-21T06:20:32.232Z",
                    "tenantId": "string",
                    "organizationId": "string",
                    "name": "string",
                    "shareRequestDay": "2024-01-15T09:30:00Z",
                    "shareStartDay": "2024-01-15T09:30:00Z",
                    "shareEndDay": "2024-01-15T09:30:00Z",
                    "status": 0,
                    "equipmentId": "string",
                    "equipmentSharingPolicy": {
                      "deletedAt": "2018-11-21T06:20:32.232Z",
                      "createdAt": "2018-11-21T06:20:32.232Z",
                      "updatedAt": "2018-11-21T06:20:32.232Z",
                      "id": "string",
                      "isActive": true,
                      "isArchived": false,
                      "archivedAt": "2018-11-21T06:20:32.232Z",
                      "tenantId": "string",
                      "organizationId": "string",
                      "name": "string",
                      "description": "string"
                    },
                    "equipmentSharingPolicyId": "string"
                  }
                ],
                "tags": []
              }
            ],
            "warehouses": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "code": "string",
                "email": "string",
                "description": "string",
                "active": true,
                "logoId": "string",
                "contactId": "string",
                "products": []
              }
            ],
            "productGallery": []
          },
          "featuredImageId": "string",
          "productType": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "icon": "briefcase-outline",
            "products": [],
            "translations": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "description": "string",
                "languageCode": "string",
                "referenceId": "string"
              }
            ]
          },
          "productTypeId": "string",
          "productCategory": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "imageUrl": "string",
            "imageId": "string",
            "products": [],
            "translations": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "description": "string",
                "languageCode": "string",
                "referenceId": "string"
              }
            ]
          },
          "productCategoryId": "string",
          "translations": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "name": "string",
              "description": "string",
              "languageCode": "en",
              "referenceId": "string"
            }
          ],
          "variants": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "taxes": 0,
              "notes": "string",
              "quantity": 0,
              "billingInvoicingPolicy": "string",
              "internalReference": "string",
              "enabled": true,
              "productId": "string",
              "image": {},
              "imageId": "string",
              "warehouseProductVariants": [
                {
                  "deletedAt": "2018-11-21T06:20:32.232Z",
                  "createdAt": "2018-11-21T06:20:32.232Z",
                  "updatedAt": "2018-11-21T06:20:32.232Z",
                  "id": "string",
                  "isActive": true,
                  "isArchived": false,
                  "archivedAt": "2018-11-21T06:20:32.232Z",
                  "tenantId": "string",
                  "organizationId": "string",
                  "quantity": 0,
                  "variantId": "string",
                  "warehouseProductId": "string"
                }
              ],
              "options": {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "code": "string",
                "groupId": "string",
                "translations": [
                  {
                    "deletedAt": "2018-11-21T06:20:32.232Z",
                    "createdAt": "2018-11-21T06:20:32.232Z",
                    "updatedAt": "2018-11-21T06:20:32.232Z",
                    "id": "string",
                    "isActive": true,
                    "isArchived": false,
                    "archivedAt": "2018-11-21T06:20:32.232Z",
                    "tenantId": "string",
                    "organizationId": "string",
                    "name": "string",
                    "description": "string",
                    "languageCode": "en",
                    "referenceId": "string"
                  }
                ]
              }
            }
          ],
          "optionGroups": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "name": "string",
              "productId": "string",
              "options": [],
              "translations": [
                {
                  "deletedAt": "2018-11-21T06:20:32.232Z",
                  "createdAt": "2018-11-21T06:20:32.232Z",
                  "updatedAt": "2018-11-21T06:20:32.232Z",
                  "id": "string",
                  "isActive": true,
                  "isArchived": false,
                  "archivedAt": "2018-11-21T06:20:32.232Z",
                  "tenantId": "string",
                  "organizationId": "string",
                  "name": "string",
                  "languageCode": "en",
                  "referenceId": "string"
                }
              ]
            }
          ],
          "invoiceItems": [],
          "warehouses": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "quantity": 0,
              "warehouse": {},
              "warehouseId": "string",
              "productId": "string",
              "variants": []
            }
          ],
          "tags": [],
          "gallery": []
        },
        "productId": "string"
      }
    ],
    "payments": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "paymentDate": "2024-01-15T09:30:00Z",
        "amount": 0,
        "note": "string",
        "currency": "AFN",
        "paymentMethod": "BANK_TRANSFER",
        "overdue": true,
        "employeeId": "string",
        "invoiceId": "string",
        "projectId": "string",
        "organizationContactId": "string",
        "tags": [
          []
        ]
      }
    ],
    "historyRecords": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "action": "string",
        "title": "string",
        "user": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "thirdPartyId": "string",
          "firstName": "string",
          "lastName": "string",
          "email": "string",
          "phoneNumber": "string",
          "username": "string",
          "timeZone": "string",
          "timeFormat": 12,
          "hash": "string",
          "refreshToken": "string",
          "imageUrl": "string",
          "preferredLanguage": "en",
          "preferredComponentLayout": "CARDS_GRID",
          "uiPreferences": {},
          "code": "string",
          "codeExpireAt": "2024-01-15T09:30:00Z",
          "emailVerifiedAt": "2024-01-15T09:30:00Z",
          "lastLoginAt": "2024-01-15T09:30:00Z",
          "emailToken": "string",
          "roleId": "string",
          "imageId": "string",
          "defaultTeamId": "string",
          "lastTeamId": "string",
          "defaultOrganizationId": "string",
          "lastOrganizationId": "string"
        },
        "userId": "string",
        "invoiceId": "string"
      }
    ],
    "tags": {
      "deletedAt": "2018-11-21T06:20:32.232Z",
      "createdAt": "2018-11-21T06:20:32.232Z",
      "updatedAt": "2018-11-21T06:20:32.232Z",
      "id": "string",
      "isActive": true,
      "isArchived": false,
      "archivedAt": "2018-11-21T06:20:32.232Z",
      "tenantId": "string",
      "organizationId": "string",
      "name": "string",
      "color": "string",
      "textColor": "string",
      "description": "string",
      "icon": "string",
      "isSystem": false,
      "tagTypeId": "string",
      "organizationTeamId": "string"
    }
  },
  "invoiceId": "string",
  "project": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "name": "string",
    "startDate": "string",
    "endDate": "string",
    "billing": "FLAT_FEE",
    "currency": "USD",
    "public": true,
    "owner": "CLIENT",
    "taskListType": "GRID",
    "code": "string",
    "description": "string",
    "color": "string",
    "billable": true,
    "billingFlat": true,
    "openSource": true,
    "projectUrl": "string",
    "openSourceProjectUrl": "string",
    "budget": 0,
    "budgetType": "hours",
    "imageUrl": "string",
    "icon": "string",
    "status": "open",
    "isTasksAutoSync": true,
    "isTasksAutoSyncOnLabel": true,
    "syncTag": "string",
    "archiveTasksIn": 0,
    "closeTasksIn": 0,
    "organizationContactId": "string",
    "imageId": "string",
    "defaultAssigneeId": "string"
  },
  "projectId": "string",
  "organizationContact": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "name": "string",
    "primaryEmail": "string",
    "primaryPhone": "string",
    "inviteStatus": "NOT_INVITED",
    "notes": "string",
    "contactType": "CLIENT",
    "imageUrl": "string",
    "budget": 0,
    "budgetType": "string",
    "contact": {
      "deletedAt": "2018-11-21T06:20:32.232Z",
      "createdAt": "2018-11-21T06:20:32.232Z",
      "updatedAt": "2018-11-21T06:20:32.232Z",
      "id": "string",
      "isActive": true,
      "isArchived": false,
      "archivedAt": "2018-11-21T06:20:32.232Z",
      "tenantId": "string",
      "organizationId": "string",
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "country": "string",
      "city": "string",
      "address": "string",
      "address2": "string",
      "postcode": "string",
      "latitude": 0,
      "longitude": 0,
      "regionCode": "string",
      "fax": "string",
      "fiscalInformation": "string",
      "website": "string"
    },
    "contactId": "string",
    "imageId": "string",
    "expenses": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "amount": 0,
        "typeOfExpense": "string",
        "notes": "string",
        "currency": "AFN",
        "valueDate": "2024-01-15T09:30:00Z",
        "purpose": "string",
        "taxType": "string",
        "taxLabel": "string",
        "rateValue": 0,
        "receipt": "string",
        "splitExpense": true,
        "reference": "string",
        "status": "INVOICED",
        "employee": {},
        "vendor": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "name": "string",
          "email": "string",
          "phone": "string",
          "website": "string",
          "expenses": []
        },
        "category": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "name": "string",
          "expenses": []
        },
        "project": {},
        "projectId": "string",
        "organizationContactId": "string",
        "tags": []
      }
    ],
    "incomes": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "amount": 0,
        "currency": "AFN",
        "valueDate": "2024-01-15T09:30:00Z",
        "notes": "string",
        "isBonus": true,
        "reference": "string",
        "employee": {},
        "clientId": "string",
        "tags": []
      }
    ],
    "timeLogs": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "logType": "TRACKED",
        "source": "BROWSER",
        "description": "string",
        "reason": "string",
        "isBillable": false,
        "isRunning": true,
        "version": "1.0.1",
        "employeeId": "string",
        "timesheetId": "string",
        "projectId": "string",
        "taskId": "string",
        "organizationContactId": "string",
        "organizationTeamId": "string"
      }
    ]
  },
  "organizationContactId": "string",
  "tags": [
    []
  ]
}'
```

### JavaScript

```javascript
const body = `{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "paymentDate": "2024-01-15T09:30:00Z",
  "amount": 0,
  "note": "string",
  "currency": "AFN",
  "paymentMethod": "BANK_TRANSFER",
  "overdue": true,
  "invoice": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "invoiceDate": "2024-01-15T09:30:00Z",
    "invoiceNumber": 0,
    "dueDate": "2024-01-15T09:30:00Z",
    "currency": "AFN",
    "discountValue": 0,
    "paid": true,
    "tax": 0,
    "tax2": 0,
    "terms": "string",
    "totalValue": 0,
    "status": "string",
    "isEstimate": true,
    "isAccepted": true,
    "discountType": "PERCENT",
    "taxType": "PERCENT",
    "tax2Type": "PERCENT",
    "invoiceType": "BY_EMPLOYEE_HOURS",
    "sentTo": "string",
    "organizationContactId": "string",
    "internalNote": "string",
    "alreadyPaid": 0,
    "amountDue": 0,
    "hasRemainingAmountInvoiced": true,
    "token": "string",
    "fromOrganization": {
      "select": {},
      "relations": {},
      "where": {},
      "order": {},
      "withDeleted": true,
      "take": 0,
      "skip": 0
    },
    "fromOrganizationId": "string",
    "toContactId": "string",
    "invoiceItems": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "description": "string",
        "price": 0,
        "quantity": 0,
        "totalValue": 0,
        "applyTax": true,
        "applyDiscount": true,
        "expenseId": "string",
        "invoiceId": "string",
        "task": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "title": "string",
          "description": "string",
          "status": "string",
          "priority": "string",
          "size": "string",
          "issueType": "string",
          "estimate": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "public": true,
          "startDate": "2024-01-15T09:30:00Z",
          "resolvedAt": "2024-01-15T09:30:00Z",
          "version": "string",
          "isDraft": true,
          "isScreeningTask": true,
          "parentId": "string",
          "project": {},
          "projectId": "string",
          "organizationSprint": {},
          "organizationSprintId": "string",
          "taskStatus": {},
          "taskStatusId": "string",
          "taskSize": {},
          "taskSizeId": "string",
          "taskPriority": {},
          "taskPriorityId": "string",
          "taskType": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "name": "string",
            "value": "string",
            "description": "string",
            "icon": "string",
            "color": "string",
            "isDefault": false,
            "isSystem": false,
            "imageId": "string",
            "projectId": "string",
            "organizationTeamId": "string"
          },
          "taskTypeId": "string",
          "tags": [
            []
          ],
          "members": [
            []
          ],
          "teams": [
            []
          ],
          "modules": [
            []
          ]
        },
        "taskId": "string",
        "employee": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "short_description": "string",
          "description": "string",
          "startedWorkOn": "2024-01-15T09:30:00Z",
          "endWork": "2024-01-15T09:30:00Z",
          "payPeriod": "WEEKLY",
          "billRateValue": 0,
          "minimumBillingRate": 0,
          "billRateCurrency": "USD",
          "reWeeklyLimit": 0,
          "offerDate": "2024-01-15T09:30:00Z",
          "acceptDate": "2024-01-15T09:30:00Z",
          "rejectDate": "2024-01-15T09:30:00Z",
          "employeeLevel": "string",
          "anonymousBonus": true,
          "averageIncome": 0,
          "averageBonus": 0,
          "totalWorkHours": 0,
          "averageExpenses": 0,
          "show_anonymous_bonus": true,
          "show_average_bonus": true,
          "show_average_expenses": true,
          "show_average_income": true,
          "show_billrate": true,
          "show_payperiod": true,
          "show_start_work_on": true,
          "isJobSearchActive": true,
          "linkedInUrl": "string",
          "facebookUrl": "string",
          "instagramUrl": "string",
          "twitterUrl": "string",
          "githubUrl": "string",
          "gitlabUrl": "string",
          "upworkUrl": "string",
          "stackoverflowUrl": "string",
          "isVerified": true,
          "isVetted": true,
          "totalJobs": 0,
          "jobSuccess": 0,
          "profile_link": "string",
          "isTrackingEnabled": true,
          "isOnline": true,
          "isAway": false,
          "isTrackingTime": true,
          "allowScreenshotCapture": true,
          "allowManualTime": true,
          "allowModifyTime": true,
          "allowDeleteTime": true,
          "allowAgentAppExit": true,
          "allowLogoutFromAgentApp": true,
          "trackKeyboardMouseActivity": true,
          "trackAllDisplays": true,
          "upworkId": "string",
          "linkedInId": "string",
          "userId": "string",
          "contactId": "string",
          "organizationPositionId": "string"
        },
        "employeeId": "string",
        "projectId": "string",
        "product": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "enabled": true,
          "code": "string",
          "imageUrl": "string",
          "featuredImage": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "name": "string",
            "url": "string",
            "thumb": "string",
            "width": 0,
            "height": 0,
            "size": 0,
            "isFeatured": true,
            "externalProviderId": "string",
            "storageProvider": "LOCAL",
            "productFeaturedImage": [],
            "equipmentImage": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "type": "string",
                "serialNumber": "string",
                "manufacturedYear": 0,
                "initialCost": 0,
                "currency": "AFN",
                "maxSharePeriod": 0,
                "autoApproveShare": true,
                "equipmentSharings": [
                  {
                    "deletedAt": "2018-11-21T06:20:32.232Z",
                    "createdAt": "2018-11-21T06:20:32.232Z",
                    "updatedAt": "2018-11-21T06:20:32.232Z",
                    "id": "string",
                    "isActive": true,
                    "isArchived": false,
                    "archivedAt": "2018-11-21T06:20:32.232Z",
                    "tenantId": "string",
                    "organizationId": "string",
                    "name": "string",
                    "shareRequestDay": "2024-01-15T09:30:00Z",
                    "shareStartDay": "2024-01-15T09:30:00Z",
                    "shareEndDay": "2024-01-15T09:30:00Z",
                    "status": 0,
                    "equipmentId": "string",
                    "equipmentSharingPolicy": {
                      "deletedAt": "2018-11-21T06:20:32.232Z",
                      "createdAt": "2018-11-21T06:20:32.232Z",
                      "updatedAt": "2018-11-21T06:20:32.232Z",
                      "id": "string",
                      "isActive": true,
                      "isArchived": false,
                      "archivedAt": "2018-11-21T06:20:32.232Z",
                      "tenantId": "string",
                      "organizationId": "string",
                      "name": "string",
                      "description": "string"
                    },
                    "equipmentSharingPolicyId": "string"
                  }
                ],
                "tags": []
              }
            ],
            "warehouses": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "code": "string",
                "email": "string",
                "description": "string",
                "active": true,
                "logoId": "string",
                "contactId": "string",
                "products": []
              }
            ],
            "productGallery": []
          },
          "featuredImageId": "string",
          "productType": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "icon": "briefcase-outline",
            "products": [],
            "translations": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "description": "string",
                "languageCode": "string",
                "referenceId": "string"
              }
            ]
          },
          "productTypeId": "string",
          "productCategory": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "imageUrl": "string",
            "imageId": "string",
            "products": [],
            "translations": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "description": "string",
                "languageCode": "string",
                "referenceId": "string"
              }
            ]
          },
          "productCategoryId": "string",
          "translations": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "name": "string",
              "description": "string",
              "languageCode": "en",
              "referenceId": "string"
            }
          ],
          "variants": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "taxes": 0,
              "notes": "string",
              "quantity": 0,
              "billingInvoicingPolicy": "string",
              "internalReference": "string",
              "enabled": true,
              "productId": "string",
              "image": {},
              "imageId": "string",
              "warehouseProductVariants": [
                {
                  "deletedAt": "2018-11-21T06:20:32.232Z",
                  "createdAt": "2018-11-21T06:20:32.232Z",
                  "updatedAt": "2018-11-21T06:20:32.232Z",
                  "id": "string",
                  "isActive": true,
                  "isArchived": false,
                  "archivedAt": "2018-11-21T06:20:32.232Z",
                  "tenantId": "string",
                  "organizationId": "string",
                  "quantity": 0,
                  "variantId": "string",
                  "warehouseProductId": "string"
                }
              ],
              "options": {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "code": "string",
                "groupId": "string",
                "translations": [
                  {
                    "deletedAt": "2018-11-21T06:20:32.232Z",
                    "createdAt": "2018-11-21T06:20:32.232Z",
                    "updatedAt": "2018-11-21T06:20:32.232Z",
                    "id": "string",
                    "isActive": true,
                    "isArchived": false,
                    "archivedAt": "2018-11-21T06:20:32.232Z",
                    "tenantId": "string",
                    "organizationId": "string",
                    "name": "string",
                    "description": "string",
                    "languageCode": "en",
                    "referenceId": "string"
                  }
                ]
              }
            }
          ],
          "optionGroups": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "name": "string",
              "productId": "string",
              "options": [],
              "translations": [
                {
                  "deletedAt": "2018-11-21T06:20:32.232Z",
                  "createdAt": "2018-11-21T06:20:32.232Z",
                  "updatedAt": "2018-11-21T06:20:32.232Z",
                  "id": "string",
                  "isActive": true,
                  "isArchived": false,
                  "archivedAt": "2018-11-21T06:20:32.232Z",
                  "tenantId": "string",
                  "organizationId": "string",
                  "name": "string",
                  "languageCode": "en",
                  "referenceId": "string"
                }
              ]
            }
          ],
          "invoiceItems": [],
          "warehouses": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "quantity": 0,
              "warehouse": {},
              "warehouseId": "string",
              "productId": "string",
              "variants": []
            }
          ],
          "tags": [],
          "gallery": []
        },
        "productId": "string"
      }
    ],
    "payments": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "paymentDate": "2024-01-15T09:30:00Z",
        "amount": 0,
        "note": "string",
        "currency": "AFN",
        "paymentMethod": "BANK_TRANSFER",
        "overdue": true,
        "employeeId": "string",
        "invoiceId": "string",
        "projectId": "string",
        "organizationContactId": "string",
        "tags": [
          []
        ]
      }
    ],
    "historyRecords": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "action": "string",
        "title": "string",
        "user": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "thirdPartyId": "string",
          "firstName": "string",
          "lastName": "string",
          "email": "string",
          "phoneNumber": "string",
          "username": "string",
          "timeZone": "string",
          "timeFormat": 12,
          "hash": "string",
          "refreshToken": "string",
          "imageUrl": "string",
          "preferredLanguage": "en",
          "preferredComponentLayout": "CARDS_GRID",
          "uiPreferences": {},
          "code": "string",
          "codeExpireAt": "2024-01-15T09:30:00Z",
          "emailVerifiedAt": "2024-01-15T09:30:00Z",
          "lastLoginAt": "2024-01-15T09:30:00Z",
          "emailToken": "string",
          "roleId": "string",
          "imageId": "string",
          "defaultTeamId": "string",
          "lastTeamId": "string",
          "defaultOrganizationId": "string",
          "lastOrganizationId": "string"
        },
        "userId": "string",
        "invoiceId": "string"
      }
    ],
    "tags": {
      "deletedAt": "2018-11-21T06:20:32.232Z",
      "createdAt": "2018-11-21T06:20:32.232Z",
      "updatedAt": "2018-11-21T06:20:32.232Z",
      "id": "string",
      "isActive": true,
      "isArchived": false,
      "archivedAt": "2018-11-21T06:20:32.232Z",
      "tenantId": "string",
      "organizationId": "string",
      "name": "string",
      "color": "string",
      "textColor": "string",
      "description": "string",
      "icon": "string",
      "isSystem": false,
      "tagTypeId": "string",
      "organizationTeamId": "string"
    }
  },
  "invoiceId": "string",
  "project": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "name": "string",
    "startDate": "string",
    "endDate": "string",
    "billing": "FLAT_FEE",
    "currency": "USD",
    "public": true,
    "owner": "CLIENT",
    "taskListType": "GRID",
    "code": "string",
    "description": "string",
    "color": "string",
    "billable": true,
    "billingFlat": true,
    "openSource": true,
    "projectUrl": "string",
    "openSourceProjectUrl": "string",
    "budget": 0,
    "budgetType": "hours",
    "imageUrl": "string",
    "icon": "string",
    "status": "open",
    "isTasksAutoSync": true,
    "isTasksAutoSyncOnLabel": true,
    "syncTag": "string",
    "archiveTasksIn": 0,
    "closeTasksIn": 0,
    "organizationContactId": "string",
    "imageId": "string",
    "defaultAssigneeId": "string"
  },
  "projectId": "string",
  "organizationContact": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "name": "string",
    "primaryEmail": "string",
    "primaryPhone": "string",
    "inviteStatus": "NOT_INVITED",
    "notes": "string",
    "contactType": "CLIENT",
    "imageUrl": "string",
    "budget": 0,
    "budgetType": "string",
    "contact": {
      "deletedAt": "2018-11-21T06:20:32.232Z",
      "createdAt": "2018-11-21T06:20:32.232Z",
      "updatedAt": "2018-11-21T06:20:32.232Z",
      "id": "string",
      "isActive": true,
      "isArchived": false,
      "archivedAt": "2018-11-21T06:20:32.232Z",
      "tenantId": "string",
      "organizationId": "string",
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "country": "string",
      "city": "string",
      "address": "string",
      "address2": "string",
      "postcode": "string",
      "latitude": 0,
      "longitude": 0,
      "regionCode": "string",
      "fax": "string",
      "fiscalInformation": "string",
      "website": "string"
    },
    "contactId": "string",
    "imageId": "string",
    "expenses": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "amount": 0,
        "typeOfExpense": "string",
        "notes": "string",
        "currency": "AFN",
        "valueDate": "2024-01-15T09:30:00Z",
        "purpose": "string",
        "taxType": "string",
        "taxLabel": "string",
        "rateValue": 0,
        "receipt": "string",
        "splitExpense": true,
        "reference": "string",
        "status": "INVOICED",
        "employee": {},
        "vendor": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "name": "string",
          "email": "string",
          "phone": "string",
          "website": "string",
          "expenses": []
        },
        "category": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "name": "string",
          "expenses": []
        },
        "project": {},
        "projectId": "string",
        "organizationContactId": "string",
        "tags": []
      }
    ],
    "incomes": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "amount": 0,
        "currency": "AFN",
        "valueDate": "2024-01-15T09:30:00Z",
        "notes": "string",
        "isBonus": true,
        "reference": "string",
        "employee": {},
        "clientId": "string",
        "tags": []
      }
    ],
    "timeLogs": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "logType": "TRACKED",
        "source": "BROWSER",
        "description": "string",
        "reason": "string",
        "isBillable": false,
        "isRunning": true,
        "version": "1.0.1",
        "employeeId": "string",
        "timesheetId": "string",
        "projectId": "string",
        "taskId": "string",
        "organizationContactId": "string",
        "organizationTeamId": "string"
      }
    ]
  },
  "organizationContactId": "string",
  "tags": [
    []
  ]
}`;

const response = await fetch('http://localhost:3000/api/payments/string', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body,
});

const data = await response.text();
```

### Python

```python
import requests

body = '''{
  "tenant": {},
  "tenantId": "string",
  "organization": {},
  "organizationId": "string",
  "sentTo": "string",
  "paymentDate": "2024-01-15T09:30:00Z",
  "amount": 0,
  "note": "string",
  "currency": "AFN",
  "paymentMethod": "BANK_TRANSFER",
  "overdue": true,
  "invoice": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "invoiceDate": "2024-01-15T09:30:00Z",
    "invoiceNumber": 0,
    "dueDate": "2024-01-15T09:30:00Z",
    "currency": "AFN",
    "discountValue": 0,
    "paid": true,
    "tax": 0,
    "tax2": 0,
    "terms": "string",
    "totalValue": 0,
    "status": "string",
    "isEstimate": true,
    "isAccepted": true,
    "discountType": "PERCENT",
    "taxType": "PERCENT",
    "tax2Type": "PERCENT",
    "invoiceType": "BY_EMPLOYEE_HOURS",
    "sentTo": "string",
    "organizationContactId": "string",
    "internalNote": "string",
    "alreadyPaid": 0,
    "amountDue": 0,
    "hasRemainingAmountInvoiced": true,
    "token": "string",
    "fromOrganization": {
      "select": {},
      "relations": {},
      "where": {},
      "order": {},
      "withDeleted": true,
      "take": 0,
      "skip": 0
    },
    "fromOrganizationId": "string",
    "toContactId": "string",
    "invoiceItems": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "description": "string",
        "price": 0,
        "quantity": 0,
        "totalValue": 0,
        "applyTax": true,
        "applyDiscount": true,
        "expenseId": "string",
        "invoiceId": "string",
        "task": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "title": "string",
          "description": "string",
          "status": "string",
          "priority": "string",
          "size": "string",
          "issueType": "string",
          "estimate": 0,
          "dueDate": "2024-01-15T09:30:00Z",
          "public": true,
          "startDate": "2024-01-15T09:30:00Z",
          "resolvedAt": "2024-01-15T09:30:00Z",
          "version": "string",
          "isDraft": true,
          "isScreeningTask": true,
          "parentId": "string",
          "project": {},
          "projectId": "string",
          "organizationSprint": {},
          "organizationSprintId": "string",
          "taskStatus": {},
          "taskStatusId": "string",
          "taskSize": {},
          "taskSizeId": "string",
          "taskPriority": {},
          "taskPriorityId": "string",
          "taskType": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "name": "string",
            "value": "string",
            "description": "string",
            "icon": "string",
            "color": "string",
            "isDefault": false,
            "isSystem": false,
            "imageId": "string",
            "projectId": "string",
            "organizationTeamId": "string"
          },
          "taskTypeId": "string",
          "tags": [
            []
          ],
          "members": [
            []
          ],
          "teams": [
            []
          ],
          "modules": [
            []
          ]
        },
        "taskId": "string",
        "employee": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "short_description": "string",
          "description": "string",
          "startedWorkOn": "2024-01-15T09:30:00Z",
          "endWork": "2024-01-15T09:30:00Z",
          "payPeriod": "WEEKLY",
          "billRateValue": 0,
          "minimumBillingRate": 0,
          "billRateCurrency": "USD",
          "reWeeklyLimit": 0,
          "offerDate": "2024-01-15T09:30:00Z",
          "acceptDate": "2024-01-15T09:30:00Z",
          "rejectDate": "2024-01-15T09:30:00Z",
          "employeeLevel": "string",
          "anonymousBonus": true,
          "averageIncome": 0,
          "averageBonus": 0,
          "totalWorkHours": 0,
          "averageExpenses": 0,
          "show_anonymous_bonus": true,
          "show_average_bonus": true,
          "show_average_expenses": true,
          "show_average_income": true,
          "show_billrate": true,
          "show_payperiod": true,
          "show_start_work_on": true,
          "isJobSearchActive": true,
          "linkedInUrl": "string",
          "facebookUrl": "string",
          "instagramUrl": "string",
          "twitterUrl": "string",
          "githubUrl": "string",
          "gitlabUrl": "string",
          "upworkUrl": "string",
          "stackoverflowUrl": "string",
          "isVerified": true,
          "isVetted": true,
          "totalJobs": 0,
          "jobSuccess": 0,
          "profile_link": "string",
          "isTrackingEnabled": true,
          "isOnline": true,
          "isAway": false,
          "isTrackingTime": true,
          "allowScreenshotCapture": true,
          "allowManualTime": true,
          "allowModifyTime": true,
          "allowDeleteTime": true,
          "allowAgentAppExit": true,
          "allowLogoutFromAgentApp": true,
          "trackKeyboardMouseActivity": true,
          "trackAllDisplays": true,
          "upworkId": "string",
          "linkedInId": "string",
          "userId": "string",
          "contactId": "string",
          "organizationPositionId": "string"
        },
        "employeeId": "string",
        "projectId": "string",
        "product": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "enabled": true,
          "code": "string",
          "imageUrl": "string",
          "featuredImage": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "name": "string",
            "url": "string",
            "thumb": "string",
            "width": 0,
            "height": 0,
            "size": 0,
            "isFeatured": true,
            "externalProviderId": "string",
            "storageProvider": "LOCAL",
            "productFeaturedImage": [],
            "equipmentImage": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "type": "string",
                "serialNumber": "string",
                "manufacturedYear": 0,
                "initialCost": 0,
                "currency": "AFN",
                "maxSharePeriod": 0,
                "autoApproveShare": true,
                "equipmentSharings": [
                  {
                    "deletedAt": "2018-11-21T06:20:32.232Z",
                    "createdAt": "2018-11-21T06:20:32.232Z",
                    "updatedAt": "2018-11-21T06:20:32.232Z",
                    "id": "string",
                    "isActive": true,
                    "isArchived": false,
                    "archivedAt": "2018-11-21T06:20:32.232Z",
                    "tenantId": "string",
                    "organizationId": "string",
                    "name": "string",
                    "shareRequestDay": "2024-01-15T09:30:00Z",
                    "shareStartDay": "2024-01-15T09:30:00Z",
                    "shareEndDay": "2024-01-15T09:30:00Z",
                    "status": 0,
                    "equipmentId": "string",
                    "equipmentSharingPolicy": {
                      "deletedAt": "2018-11-21T06:20:32.232Z",
                      "createdAt": "2018-11-21T06:20:32.232Z",
                      "updatedAt": "2018-11-21T06:20:32.232Z",
                      "id": "string",
                      "isActive": true,
                      "isArchived": false,
                      "archivedAt": "2018-11-21T06:20:32.232Z",
                      "tenantId": "string",
                      "organizationId": "string",
                      "name": "string",
                      "description": "string"
                    },
                    "equipmentSharingPolicyId": "string"
                  }
                ],
                "tags": []
              }
            ],
            "warehouses": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "code": "string",
                "email": "string",
                "description": "string",
                "active": true,
                "logoId": "string",
                "contactId": "string",
                "products": []
              }
            ],
            "productGallery": []
          },
          "featuredImageId": "string",
          "productType": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "icon": "briefcase-outline",
            "products": [],
            "translations": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "description": "string",
                "languageCode": "string",
                "referenceId": "string"
              }
            ]
          },
          "productTypeId": "string",
          "productCategory": {
            "deletedAt": "2018-11-21T06:20:32.232Z",
            "createdAt": "2018-11-21T06:20:32.232Z",
            "updatedAt": "2018-11-21T06:20:32.232Z",
            "id": "string",
            "isActive": true,
            "isArchived": false,
            "archivedAt": "2018-11-21T06:20:32.232Z",
            "tenantId": "string",
            "organizationId": "string",
            "imageUrl": "string",
            "imageId": "string",
            "products": [],
            "translations": [
              {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "description": "string",
                "languageCode": "string",
                "referenceId": "string"
              }
            ]
          },
          "productCategoryId": "string",
          "translations": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "name": "string",
              "description": "string",
              "languageCode": "en",
              "referenceId": "string"
            }
          ],
          "variants": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "taxes": 0,
              "notes": "string",
              "quantity": 0,
              "billingInvoicingPolicy": "string",
              "internalReference": "string",
              "enabled": true,
              "productId": "string",
              "image": {},
              "imageId": "string",
              "warehouseProductVariants": [
                {
                  "deletedAt": "2018-11-21T06:20:32.232Z",
                  "createdAt": "2018-11-21T06:20:32.232Z",
                  "updatedAt": "2018-11-21T06:20:32.232Z",
                  "id": "string",
                  "isActive": true,
                  "isArchived": false,
                  "archivedAt": "2018-11-21T06:20:32.232Z",
                  "tenantId": "string",
                  "organizationId": "string",
                  "quantity": 0,
                  "variantId": "string",
                  "warehouseProductId": "string"
                }
              ],
              "options": {
                "deletedAt": "2018-11-21T06:20:32.232Z",
                "createdAt": "2018-11-21T06:20:32.232Z",
                "updatedAt": "2018-11-21T06:20:32.232Z",
                "id": "string",
                "isActive": true,
                "isArchived": false,
                "archivedAt": "2018-11-21T06:20:32.232Z",
                "tenantId": "string",
                "organizationId": "string",
                "name": "string",
                "code": "string",
                "groupId": "string",
                "translations": [
                  {
                    "deletedAt": "2018-11-21T06:20:32.232Z",
                    "createdAt": "2018-11-21T06:20:32.232Z",
                    "updatedAt": "2018-11-21T06:20:32.232Z",
                    "id": "string",
                    "isActive": true,
                    "isArchived": false,
                    "archivedAt": "2018-11-21T06:20:32.232Z",
                    "tenantId": "string",
                    "organizationId": "string",
                    "name": "string",
                    "description": "string",
                    "languageCode": "en",
                    "referenceId": "string"
                  }
                ]
              }
            }
          ],
          "optionGroups": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "name": "string",
              "productId": "string",
              "options": [],
              "translations": [
                {
                  "deletedAt": "2018-11-21T06:20:32.232Z",
                  "createdAt": "2018-11-21T06:20:32.232Z",
                  "updatedAt": "2018-11-21T06:20:32.232Z",
                  "id": "string",
                  "isActive": true,
                  "isArchived": false,
                  "archivedAt": "2018-11-21T06:20:32.232Z",
                  "tenantId": "string",
                  "organizationId": "string",
                  "name": "string",
                  "languageCode": "en",
                  "referenceId": "string"
                }
              ]
            }
          ],
          "invoiceItems": [],
          "warehouses": [
            {
              "deletedAt": "2018-11-21T06:20:32.232Z",
              "createdAt": "2018-11-21T06:20:32.232Z",
              "updatedAt": "2018-11-21T06:20:32.232Z",
              "id": "string",
              "isActive": true,
              "isArchived": false,
              "archivedAt": "2018-11-21T06:20:32.232Z",
              "tenantId": "string",
              "organizationId": "string",
              "quantity": 0,
              "warehouse": {},
              "warehouseId": "string",
              "productId": "string",
              "variants": []
            }
          ],
          "tags": [],
          "gallery": []
        },
        "productId": "string"
      }
    ],
    "payments": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "paymentDate": "2024-01-15T09:30:00Z",
        "amount": 0,
        "note": "string",
        "currency": "AFN",
        "paymentMethod": "BANK_TRANSFER",
        "overdue": true,
        "employeeId": "string",
        "invoiceId": "string",
        "projectId": "string",
        "organizationContactId": "string",
        "tags": [
          []
        ]
      }
    ],
    "historyRecords": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "action": "string",
        "title": "string",
        "user": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "thirdPartyId": "string",
          "firstName": "string",
          "lastName": "string",
          "email": "string",
          "phoneNumber": "string",
          "username": "string",
          "timeZone": "string",
          "timeFormat": 12,
          "hash": "string",
          "refreshToken": "string",
          "imageUrl": "string",
          "preferredLanguage": "en",
          "preferredComponentLayout": "CARDS_GRID",
          "uiPreferences": {},
          "code": "string",
          "codeExpireAt": "2024-01-15T09:30:00Z",
          "emailVerifiedAt": "2024-01-15T09:30:00Z",
          "lastLoginAt": "2024-01-15T09:30:00Z",
          "emailToken": "string",
          "roleId": "string",
          "imageId": "string",
          "defaultTeamId": "string",
          "lastTeamId": "string",
          "defaultOrganizationId": "string",
          "lastOrganizationId": "string"
        },
        "userId": "string",
        "invoiceId": "string"
      }
    ],
    "tags": {
      "deletedAt": "2018-11-21T06:20:32.232Z",
      "createdAt": "2018-11-21T06:20:32.232Z",
      "updatedAt": "2018-11-21T06:20:32.232Z",
      "id": "string",
      "isActive": true,
      "isArchived": false,
      "archivedAt": "2018-11-21T06:20:32.232Z",
      "tenantId": "string",
      "organizationId": "string",
      "name": "string",
      "color": "string",
      "textColor": "string",
      "description": "string",
      "icon": "string",
      "isSystem": false,
      "tagTypeId": "string",
      "organizationTeamId": "string"
    }
  },
  "invoiceId": "string",
  "project": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "name": "string",
    "startDate": "string",
    "endDate": "string",
    "billing": "FLAT_FEE",
    "currency": "USD",
    "public": true,
    "owner": "CLIENT",
    "taskListType": "GRID",
    "code": "string",
    "description": "string",
    "color": "string",
    "billable": true,
    "billingFlat": true,
    "openSource": true,
    "projectUrl": "string",
    "openSourceProjectUrl": "string",
    "budget": 0,
    "budgetType": "hours",
    "imageUrl": "string",
    "icon": "string",
    "status": "open",
    "isTasksAutoSync": true,
    "isTasksAutoSyncOnLabel": true,
    "syncTag": "string",
    "archiveTasksIn": 0,
    "closeTasksIn": 0,
    "organizationContactId": "string",
    "imageId": "string",
    "defaultAssigneeId": "string"
  },
  "projectId": "string",
  "organizationContact": {
    "deletedAt": "2018-11-21T06:20:32.232Z",
    "createdAt": "2018-11-21T06:20:32.232Z",
    "updatedAt": "2018-11-21T06:20:32.232Z",
    "id": "string",
    "isActive": true,
    "isArchived": false,
    "archivedAt": "2018-11-21T06:20:32.232Z",
    "tenantId": "string",
    "organizationId": "string",
    "name": "string",
    "primaryEmail": "string",
    "primaryPhone": "string",
    "inviteStatus": "NOT_INVITED",
    "notes": "string",
    "contactType": "CLIENT",
    "imageUrl": "string",
    "budget": 0,
    "budgetType": "string",
    "contact": {
      "deletedAt": "2018-11-21T06:20:32.232Z",
      "createdAt": "2018-11-21T06:20:32.232Z",
      "updatedAt": "2018-11-21T06:20:32.232Z",
      "id": "string",
      "isActive": true,
      "isArchived": false,
      "archivedAt": "2018-11-21T06:20:32.232Z",
      "tenantId": "string",
      "organizationId": "string",
      "name": "string",
      "firstName": "string",
      "lastName": "string",
      "country": "string",
      "city": "string",
      "address": "string",
      "address2": "string",
      "postcode": "string",
      "latitude": 0,
      "longitude": 0,
      "regionCode": "string",
      "fax": "string",
      "fiscalInformation": "string",
      "website": "string"
    },
    "contactId": "string",
    "imageId": "string",
    "expenses": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "amount": 0,
        "typeOfExpense": "string",
        "notes": "string",
        "currency": "AFN",
        "valueDate": "2024-01-15T09:30:00Z",
        "purpose": "string",
        "taxType": "string",
        "taxLabel": "string",
        "rateValue": 0,
        "receipt": "string",
        "splitExpense": true,
        "reference": "string",
        "status": "INVOICED",
        "employee": {},
        "vendor": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "name": "string",
          "email": "string",
          "phone": "string",
          "website": "string",
          "expenses": []
        },
        "category": {
          "deletedAt": "2018-11-21T06:20:32.232Z",
          "createdAt": "2018-11-21T06:20:32.232Z",
          "updatedAt": "2018-11-21T06:20:32.232Z",
          "id": "string",
          "isActive": true,
          "isArchived": false,
          "archivedAt": "2018-11-21T06:20:32.232Z",
          "tenantId": "string",
          "organizationId": "string",
          "name": "string",
          "expenses": []
        },
        "project": {},
        "projectId": "string",
        "organizationContactId": "string",
        "tags": []
      }
    ],
    "incomes": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "amount": 0,
        "currency": "AFN",
        "valueDate": "2024-01-15T09:30:00Z",
        "notes": "string",
        "isBonus": true,
        "reference": "string",
        "employee": {},
        "clientId": "string",
        "tags": []
      }
    ],
    "timeLogs": [
      {
        "deletedAt": "2018-11-21T06:20:32.232Z",
        "createdAt": "2018-11-21T06:20:32.232Z",
        "updatedAt": "2018-11-21T06:20:32.232Z",
        "id": "string",
        "isActive": true,
        "isArchived": false,
        "archivedAt": "2018-11-21T06:20:32.232Z",
        "tenantId": "string",
        "organizationId": "string",
        "logType": "TRACKED",
        "source": "BROWSER",
        "description": "string",
        "reason": "string",
        "isBillable": false,
        "isRunning": true,
        "version": "1.0.1",
        "employeeId": "string",
        "timesheetId": "string",
        "projectId": "string",
        "taskId": "string",
        "organizationContactId": "string",
        "organizationTeamId": "string"
      }
    ]
  },
  "organizationContactId": "string",
  "tags": [
    []
  ]
}'''

response = requests.put(
    'http://localhost:3000/api/payments/string',
    data=body.encode('utf-8'),
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
