Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Pre-Release32 edits



Info

If there are any questions that this document does not answer or are left unclear, send an email with your questions to support@laundrycard.com

...

Field NameTypeDescriptionNotes
IDintMachine Rec ID
LocationIDintLocation Rec ID
MachNostringMachine number


LabelstringMachine label
EquipIDintEquipment Rec ID
StatusintMachine status code

0 = Machine offline
1 = Machine disabled
2 = Machine online but idle
3 = Machine running
4 = Machine in diagnostic mode
5 = Duplicate machine number detected
6 = Machine error
100 = Requested firmware doesn't exist
101 = Firmware downloading to satellite
102 = Firmware downloading to reader

Enabledbool

Machine enabledVendAllowedboolMachine vend allowed
UserActiveboolUser is active on machine
FinishTimeDateTimeEstimated finish time (UTC)
PriceDecimalCurrent start price
ModelstringModel number
SerialNumberstringSerial number
InServiceDateDateTimeIn-Service date (UTC)
LastServiceDateDateTimeLast service date (UTC)
NotesstringMachine notes
PairedMachineIDintPaired Machine Rec IDnull = no pair
PocketintPocket Configurationnull = no pocket configuration
1 = Top pocket
2 = Bottom pocket
WifiAffinityintReader wifi affinity indexnull = None assigned
1-4 = Assigned affinity

...

NameTypeDescriptionNotes
LabelstringMachine labelLimited to 32 characters
ModelstringModel numberLimited to 50 characters
SerialNumberstringSerial numberLimited to 50 characters
InServiceDateDateTimeIn-Service date (UTC)Needs to be in ISO 8601 format
YYYY-MM-DDThh:mm:ss
LastServiceDateDateTimeLast service date (UTC)
EnabledboolMachine enabledNotesstringMachine notes


See example requests below:

...

Field NameTypeDescriptionNotes
IDlongTransaction Rec ID
RdrTransIDintReader transaction IDAccountIDintSysConfig Account ID
DateTimeDateTimeTransaction time (UTC)
TransTypeintTransaction type

Transaction Types & SubTypes

TransSubTypeintTransaction sub-typeTransaction Types & SubTypes
LocationIDintLocation Rec ID
MachNointMachine number
CashAmountDecimalAmount of cash


CreditCardNumberstringCredit card number (last 4 digits)May be NULL if card type NOT credit
CreditCardAmountDecimalAmount spent on credit card
LoyaltyCardNumberstringLoyalty card numberMay be NULL if card type NOT loyalty
BalanceAmountDecimalChange in balance
BonusAmountDecimalChange in bonus
LoyaltyPointsintChange in loyalty points
FreeStartsintChange in free starts
NewBalanceDecimalNew loyalty balance after transaction
NewBonusDecimalNew loyalty bonus after transaction
AdditionalInfostringAdditional info
UserAccountIDintUserAccount Rec ID
CreditCardNamestringName on credit cardMay be NULL if card type NOT credit
EmployeeUserIDintEmployee User Rec ID
NewFreeStartsintNew Free Starts after transaction
NewLoyaltyPointsintNew Loyalty Points after transaction
RootTransactIDlongRoot Transaction Rec ID
UnfundedAmountDecimalUnfunded amount

...

GET  https://m.fascard.com/api/User

User Info for current user

GET https://m.fascard.com/api/User/{userID}?AccountID={accountID}

...

user

...


Field NameTypeDescriptionNotes
EmailAddressstringEmail address
VerifyCodestringVerification code
PasswordstringUser password
NamestringUser name
Addr1stringAddress #1
Addr2stringAddress #2
CitystringCity
StatestringState
ZipCodestringZip code
MobilePhonestringMobile phone
BirthdayDateTimeBirthdayMay be NULL if n/a
NewUserboolTrue if new user
NotifyCycleCompleteboolTrue to send email when cycle is nearly complete
LanguagestringUser's preferred language

"en" = English

"es" = Spanish

UserIDintUser Rec ID
AllowEmailEditboolTrue if user is not yet validated and thus capable of modifying email
EmailVerifyRequestboolSet True to request verification emailOnly used for unverified email (AllowEmailEdit=True)

POST https://m.fascard.com/api/User/{userID}?AccountID={accountID}

Edit details of specified user.  The UserID is obtained from UserAccount or Account.

...

DELETE  https://m.fascard.com/api/User

Remove all personal details and login credentials for current user

...