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 |
number | String | <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 |
isamounttype | Boolean | <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 |
barcode | Integer | <barcode>9297745739160472</barcode> | Barcode |
datacarriers | Strings | <datacarriers><datacarrier><uid>123789</uid></datacarrier></datacarriers> | All data-carriers associated with the valuecard |
valuecardproduct | <valuecardproduct><id>11</id><name>10 x schampoo</name></valuecardproduct> | The valuecard product |
Code Block |
---|
<valuecards>
<valuecard>
<id>50</id>
<number>58</number>
<businessunit>
<id>2</id>
<name>BRP Systems</name>
</businessunit>
<customer>Moa Martinsson</customer>
<type>10 x schampoo</type>
<totalamount>60000</totalamount>
<totalamountleft>54000</totalamountleft>
<discountleft>0</discountleft>
<totalunits>10</totalunits>
<totalunitsleft>9</totalunitsleft>
<created>2012-05-15 00:00</created>
<validfrom>2012-05-15</validfrom>
<validuntil>2013-05-15</validuntil>
<datacarriers>
<datacarrier>
<uid>9297745739160472</uid>
</datacarrier>
<datacarrier>
<uid>123123123</uid>
</datacarrier>
</datacarriers>
<valuecardproduct>
<id>2</id>
<name>10 x schampoo</name>
</valuecardproduct>
</valuecard>
</valuecards> |
...