> For the complete documentation index, see [llms.txt](https://restapi.wyzio.com/llms.txt)

# Batch update payments

> PATCH /api-v1/payment/batch
> 
> Updates multiple payments. Returns 200 on success, or 400 if the update is not valid.



## Servers
- Generated server url: https://wyzio.app (Generated server url)



## Parameters
### Headers

- **WEAL-TOKEN** ()
  API token (can be retrieved from account settings)

- **TARGET-ORGANIZATION-ID** ()
  ID of organization, for which the operation must be performed




### Body: application/json (object)

- **valueDate** (string)
  Value date of the payment batch (format dd/MM/yyyy)

- **chartOfAccountsId** (integer(int64))
  Chart of accounts ID used as the payment account

- **purchasePayments** (array[integer(int64)])
  IDs of purchase invoice payments to process

- **salesPayments** (array[integer(int64)])
  IDs of sales invoice payments to process

- **payrollPayments** (array[integer(int64)])
  IDs of payroll payments to process

- **bankCharges** (string)
  Bank charges amount as string

- **lossOnDebtors** (string)
  Loss on debtors amount as string



## Responses
### 200
OK

#### Body: application/json (object)
- **error** (object)

- **valid** (boolean)


### 400
400 Bad Request

### 401
401 Unauthorized

### 403
403 Access Denied

### 404
404 Not Found

### 500
500 Internal Server Error


[Powered by Bump.sh](https://bump.sh)
