Get a payment mode
GET
Returns one payment mode (such as cash or card) by numeric id, directly without the status/message envelope, or not found if it does not exist.
BearerAuthheader
AuthorizationBearer <JWT>id*integerID of the record.
Format
int64OK
*/*- response
id?|Numeric payment mode ID. Set by the server.
Format
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.
Format
int32status*stringACTIVE, INACTIVE, ARCHIVED or DELETED. Defaults to ACTIVE.
Value in
"ACTIVE""INACTIVE""ARCHIVED""DELETED"modifiedTime*stringTimestamp stored when the payment mode was created (ISO 8601). Updates do not change it.
Format
date-timeExample Request
curl -X GET 'https://beta.iotoms.com/api/v1/transaction/paymodes/0'Example Response
{ "id": 0, "name": "string", "displayName": "string", "sequence": 0, "status": "ACTIVE", "modifiedTime": "2019-08-24T14:15:22Z"}