POST api/Customer/PostGiftCard
Request Information
URI Parameters
None.
Body Parameters
GiftCard| Name | Description | Type | Additional information |
|---|---|---|---|
| CardId | globally unique identifier |
None. |
|
| CardNumber | string |
Required Max length: 100 |
|
| AddedAmount | decimal number |
None. |
|
| Balance | decimal number |
None. |
|
| CustomerId | globally unique identifier |
None. |
|
| Title | string |
None. |
|
| ValidFrom | date |
None. |
|
| ValidTo | date |
None. |
|
| Active | boolean |
None. |
|
| Updated | date |
None. |
|
| CardType | CardType |
None. |
|
| UniqueCode | string |
Max length: 100 |
|
| Synced | boolean |
None. |
|
| Status | string |
None. |
|
| UsedAmount | decimal number |
None. |
|
| CustomerDiscount | decimal number |
None. |
|
| CustomerName | string |
None. |
|
| SeasonTicket | SeasonTicket |
None. |
|
| OrderId | globally unique identifier |
None. |
|
| NewAmount | decimal number |
None. |
|
| VehicleId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CardId": "92fd00a4-836b-4b26-83b0-f7d6fcef591b",
"CardNumber": "sample string 2",
"AddedAmount": 3.0,
"Balance": 4.0,
"CustomerId": "8cfc1741-5abb-456f-badc-f36871762831",
"Title": "sample string 6",
"ValidFrom": "2026-03-21T23:43:38.1620532+01:00",
"ValidTo": "2026-03-21T23:43:38.1620532+01:00",
"Active": true,
"Updated": "2026-03-21T23:43:38.1620532+01:00",
"CardType": 0,
"UniqueCode": "sample string 11",
"Synced": true,
"Status": "Aktiva",
"UsedAmount": -1.0,
"CustomerDiscount": 13.0,
"CustomerName": "sample string 14",
"SeasonTicket": {
"$id": "2",
"Id": "7c3be2f4-996a-4f47-a2cf-ba6f054cca26",
"CustomerId": "899a75c6-650c-4c7c-b159-cf1415c4a763",
"ExpiryDate": "2026-03-21T23:43:38.1620532+01:00",
"Active": true,
"Synced": true,
"CustomerName": "sample string 6"
},
"OrderId": "117f6e57-db10-4a5a-8db9-384aa73b3881",
"NewAmount": 16.0,
"VehicleId": 17
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.