API reference › Finance › Payables

Update payable inline fields

PUT /v1/finance/payables/{id}

Scope
finance:edit
Roles
admin, scheduler

Update specific payable fields (financial status) for inline editing.

Parameters

Path parameters

NameTypeDescription
id requiredstring

Payable ID

Example PAYB-EWDM3W.

Every call also sends Authorization and X-Tenant-ID; see Getting started.

Request body required

14 top-level fields; 3 hold nested fields, listed below.

FieldTypeDescription
override_locksboolean or null

Edit a paid document past its locks. Send on the retry after a save asks.

override_reasonobject (2 nested)
override_reason_textstring or null

max length 1000.

override_deliverystring or null

One of: internal_only, send_updated.

confirmationboolean or null

Confirms the resend prompt a save on a sent document raises.

resend_deliverystring or null

One of: send_updated, internal_only, send_now, save_only.

overpayment_confirmationboolean or null

Accept a payment that exceeds the balance due.

payment_termsobject or null (3 nested)
payment_amountnumber or null

Records a payment against the payable.

min 0. Example 120.

payment_methodstring or null

max length 50. Example ach.

transaction_idstring or null

max length 255.

reasonstring or null

Why the status changed.

max length 500.

statusobject or null (3 nested)

Financial status to update

is_publishedboolean

Whether the payable is published (inline toggle)

Example false.

Nested fields

override_reason 2 fields
FieldTypeDescription
override_reason.idinteger or string

Example 1.

override_reason.labelstring or null

Example Example.

payment_terms 3 fields
FieldTypeDescription
payment_terms.idinteger

Example 1.

payment_terms.labelstring

Example Net 15.

payment_terms.isCustomboolean or null

Example false.

status 3 fields
FieldTypeDescription
status.idinteger

Financial status ID

Example 4.

status.labelstring

Financial status label

Example Paid.

status.isCustomboolean

Whether status is custom

Example false.

Example

JSON
{
  "override_locks": true,
  "override_reason": {
    "id": 1,
    "label": "Example"
  },
  "override_reason_text": "string",
  "override_delivery": "internal_only",
  "confirmation": true,
  "resend_delivery": "send_updated",
  "overpayment_confirmation": true,
  "payment_terms": {
    "id": 1,
    "label": "Net 15",
    "isCustom": false
  },
  "payment_amount": 120,
  "payment_method": "ach",
  "transaction_id": "string",
  "reason": "string",
  "status": {
    "id": 4,
    "label": "Paid",
    "isCustom": false
  },
  "is_published": false
}

Example request

Shell
curl -X PUT "https://api.fetchfido.ai/v1/finance/payables/{id}" \
  -H "Authorization: Bearer $FIDO_API_KEY" \
  -H "X-Tenant-ID: $FIDO_TENANT_ID" \
  -H "Content-Type: application/json" \
  -d '{"override_locks":true,"override_reason":{"id":1,"label":"Example"},"override_reason_text":"string","override_delivery":"internal_only","confirmation":true,"resend_delivery":"send_updated","overpayment_confirmation":true,"payment_terms":{"id":1,"label":"Net 15","isCustom":false},"payment_amount":120,"payment_method":"ach","transaction_id":"string","reason":"string","status":{"id":4,"label":"Paid","isCustom":false},"is_published":false}'

Try it

Responses

200 Payable updated successfully

Payable updated successfully

JSON
{
  "success": true,
  "message": "Payable updated successfully.",
  "data": {
    "id": "PAYB-EWDM3W",
    "status": {
      "id": 2,
      "label": "Approved"
    },
    "is_published": false
  }
}
Response fields (8)
FieldTypeDescription
successboolean

Example true.

messagestring

Example Payable updated successfully..

dataobject
data.idstring

Example PAYB-EWDM3W.

data.statusobject
data.status.idinteger

Example 2.

data.status.labelstring

Example Approved.

data.is_publishedboolean

Whether the payable is published

Example false.

401 Not signed in

Missing, invalid or expired API key.

JSON
{
  "success": false,
  "message": "Invalid API key. Org and user tier keys must send an X-Tenant-ID header naming the organization the key was issued for.",
  "errors": null,
  "code": "API_KEY_MISSING"
}
Response fields (4)
FieldTypeDescription
successboolean

Example false.

messagestring

Example Invalid API key. Org and user tier keys must send an X-Tenant-ID header naming the organization the key was issued for..

errorsany or null

Null on this status.

codestring

Machine-readable reason, for branching on in client code.

One of: API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED. Example API_KEY_MISSING.

403 Not allowed

Scope, tenant, IP allow-list or RBAC check failed.

JSON
{
  "success": false,
  "message": "You don't have permission to access this endpoint. This API key is missing the 'finance:edit' scope.",
  "errors": null,
  "code": ""
}
Response fields (4)
FieldTypeDescription
successboolean

Example false.

messagestring

Example You don't have permission to access this endpoint. This API key is missing the 'finance:edit' scope..

errorsany or null

Null on this status.

codestring

Always empty on this status.

Example .

404 Not found

Payable not found

JSON
{
  "success": false,
  "message": "Payable not found."
}
Response fields (2)
FieldTypeDescription
successboolean

Example false.

messagestring

Example Payable not found..

422 Validation failed

Validation error

JSON
{
  "success": false,
  "message": "Validation failed",
  "errors": {
    "status": [
      "Status is invalid."
    ]
  }
}
Response fields (3)
FieldTypeDescription
successboolean

Example false.

messagestring

Example Validation failed.

errorsobject
429 Too many requests

Rate limit exceeded. See Retry-After.

JSON
{
  "success": false,
  "message": "You've exceeded this API key's rate limit of 120 requests per minute. Try again in 37 seconds.",
  "errors": null,
  "code": "RATE_LIMITED"
}
Response fields (4)
FieldTypeDescription
successboolean

Example false.

messagestring

Example You've exceeded this API key's rate limit of 120 requests per minute. Try again in 37 seconds..

errorsany or null

Null on this status.

codestring

Machine-readable reason, for branching on in client code.

One of: RATE_LIMITED. Example RATE_LIMITED.

500 Server error

Unexpected error

JSON
{
  "success": false,
  "errors": "Payable update failed",
  "message": "An unexpected error occurred — please try again."
}
Response fields (3)
FieldTypeDescription
successboolean

Example false.

errorsstring or null

Null in production. The exception message only when the application runs with debug on.

Example Payable update failed.

messagestring

Example An unexpected error occurred — please try again..