Update a payment mode
Updates a payment mode's name, display name, display order and status. name is required on every call; display name and order left out keep their current values, but a missing status resets it to ACTIVE. Returns the payment mode directly, without the status/message envelope.
How to use it
- Get the payment mode ID from List payment modes.
- Always send name (required, unique). displayName and sequence left out keep their current values; status left out is set back to ACTIVE, so send the current status to keep it.
- The updated payment mode is returned directly, without the status/message envelope.
BearerAuthAuthorizationBearer <JWT>id*integerID of the record.
int64application/json- body
id?|Numeric payment mode ID. Set by the server.
int64name*stringPayment mode code, e.g. CASH or CARD. Required, unique and not blank.
displayName?|Name shown to staff and on receipts.
sequence?|Display order; lower numbers are shown first.
int32status*stringACTIVE, INACTIVE, ARCHIVED or DELETED. Defaults to ACTIVE.
"ACTIVE""INACTIVE""ARCHIVED""DELETED"modifiedTime*stringTimestamp stored when the payment mode was created (ISO 8601). Updates do not change it.
date-timeOK
*/*- response
id?|Numeric payment mode ID. Set by the server.
int64name*stringPayment mode code, e.g. CASH or CARD. Required, unique and not blank.
displayName?|Name shown to staff and on receipts.
sequence?|Display order; lower numbers are shown first.
int32status*stringACTIVE, INACTIVE, ARCHIVED or DELETED. Defaults to ACTIVE.
"ACTIVE""INACTIVE""ARCHIVED""DELETED"modifiedTime*stringTimestamp stored when the payment mode was created (ISO 8601). Updates do not change it.
date-timecurl -X PUT 'https://beta.iotoms.com/api/v1/transaction/paymodes/0' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "status": "ACTIVE", "modifiedTime": "2019-08-24T14:15:22Z"}'{ "id": 0, "name": "string", "displayName": "string", "sequence": 0, "status": "ACTIVE", "modifiedTime": "2019-08-24T14:15:22Z"}