Skip to main content
PUT
/
v1
/
payments
/
{paymentId}
Update payment
curl --request PUT \
  --url https://app.blinksale.test/api/v1/payments/{paymentId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": 1000,
  "payment_date": "2023-06-25",
  "is_settled": true,
  "notes": "Payment via bank transfer"
}
'
{
  "success": true,
  "message": "Payment updated successfully",
  "data": {
    "id": "01jtbf0c9zaraqx3swthf88n5y",
    "organization_id": "01jtbf0c9zaraqx3swthf88n5y",
    "invoice_id": "01jtbf0c9zaraqx3swthf88n5y",
    "amount": 500,
    "is_settled": true,
    "payment_date": "2023-06-25",
    "notes": "Payment via check #12345",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Access token obtained from the /v1/auth/login endpoint

Path Parameters

paymentId
string<uuid>
required

The ID of the payment to update

Body

application/json
amount
number<float>
required
Example:

1000

payment_date
string<date> | null
Example:

"2023-06-25"

is_settled
boolean
Example:

true

notes
string | null
Example:

"Payment via bank transfer"

Response

Payment updated successfully

success
boolean
Example:

true

message
string
Example:

"Payment updated successfully"

data
object