Create a payment mode
Adds a payment mode with a unique name, a display name, display order and status.
How to use it
- Send a unique name (e.g. CASH), a displayName, a sequence for display order and a status (defaults to ACTIVE).
- The payment mode is created (HTTP 201) and returned directly, without the status/message envelope.
BearerAuthAuthorizationBearer <JWT>application/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 POST 'https://beta.iotoms.com/api/v1/transaction/paymodes' \ -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"}