Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Valuecards

...

Tag

Format

Example

Description

valuecards

 

< valuecards >

The valuecard tag encloses the valuecard.

valuecard

 

<valuecard>

Represents a specific valuecard.

id

ID

<id>23</id>

Unique ID

numberString<number>58</number>Value card number

businessunit

 

<businessunit><id>11</id><name>Center</name></businessunit>

Business unit/facility

customer

String

<customer>Moa Martinsson</customer>

Registered owner/customer

type

String

<type>10 x schampo0</type>

Type

isamounttypeBoolean<isamounttype>true</isamounttype>True if the value card is multi-purpose (gift card). A value card can be either multi-purpose such as a gift card valid for 2 000 SEK, or single purpose valid for 10 personal trainer sessions.

totalamount

Integer

<totalamount>60000</totalamount>

Total amount in cents/ören. 60000 = 600,00 SEK

totalamountleft

Integer

<totalamountleft>54000</totalamountleft>

Remaining amount in cents/ören.

discountleft

Integer

<discountleft>0</discountleft>

Rebate remaining in cents/ören

totalunits

Integer

<totalunits>10</totalunits>

Totalt number of units

totalunitsleft

Integer

<totalunitsleft>9</totalunitsleft>

Total number of units remaining

created

Time

<created>2012-05-15 00:00</created>

Created

validfrom

Date

<validfrom>2012-05-15</validfrom>

Valid from

validuntil

Date

<validuntil>2013-05-15</validuntil>

Valid until

validuntilbarcode

Integer

<barcode>9297745739160472</barcode>

Barcode

datacarriers

Strings

<datacarriers><datacarrier><uid>123789</uid></datacarrier></datacarriers>

All data-carriers associated with the valuecard

...