Skip to main content
POST
/
api
/
financial
/
invoices
Update invoice payment fields
curl --request POST \
  --url https://api.propops.app/api/financial/invoices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "update_payment",
  "job_id": 1001,
  "field": "payment_received_client",
  "value": 250,
  "csrf_token": "abc123def456"
}
'
{
  "success": true,
  "message": "Operation completed successfully"
}

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Authorization: Bearer a1b2c3d4e5f6...

Body

application/json
action
enum<string>
required
Available options:
update_payment
job_id
integer
required
Example:

1001

field
enum<string>
required
Available options:
payment_received_client,
payment_sent_contractor,
agent_commission_paid,
inhouse_commission_paid
Example:

"payment_received_client"

value
number<float>
required
Example:

250

csrf_token
string
required
Example:

"abc123def456"

Response

Payment field updated

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"