Skip to main content
POST
/
v1
/
businesses
/
{businessId}
/
invoices
/
payments
/
bulk-delete
Bulk delete invoice payments
curl --request POST \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/invoices/payments/bulk-delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "deleted_count": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

businessId
string<uuid>
required

The UUID of the business

Body

application/json
ids
string<uuid>[]
required

List of UUIDs to delete (max 100)

Required array length: 1 - 100 elements

Response

Payments deleted successfully

deleted_count
integer

Number of items deleted