Account Statuses

The account_status object

A lookup value describing the standing of a customer account, such as whether shipments or all activity should be held.

The set of statuses is fixed by OpenMRP and cannot be added to or edited; you apply one to a customer by setting the customer's status.

idstring

Account status ID.

objectstringenumValues:account_status

Resource type identifier.

codestringenumValues:normalpreferredhold_shipment

Machine-readable status code.

  • normal: standard account with no restrictions.
  • preferred: account flagged for prioritized handling.
  • hold_shipment: the account's shipments should be held, typically over a credit problem, while orders can still be placed.
  • hold_all: all activity for the account should be held.

The hold statuses are advisory: they are surfaced as credit-hold warnings on the customer's orders, but they do not by themselves cause order or shipment requests to be rejected.

namestring

Human-readable label for the status.

ownerownernullable

Owner of this resource.

Account statuses are platform-provided and shared across all accounts, so the owner is always the OpenMRP system owner.

objectstringenumValues:owner

Resource type identifier.

typestringenumValues:systemaccount

Where this resource came from.

  • system: a platform-provided default shared across all accounts; not editable.
  • account: created and owned by a specific account; the account field identifies which.
accountaccountnullable

The account that owns this resource.

Present only when type is account; system-owned resources have no owning account.

Always returned as null in this endpoint.
created_atstring (date-time)

Creation timestamp.

updated_atstring (date-time)

Last updated timestamp.

Used by