Loyalty card registration endpoint

Implementation is OPTIONAL

resource: /card/loyalty

method: POST

Request : LoyaltyCardRegistrationRequest

Response: LoyaltyCardRegistrationResponse

{
	"loyaltyCard": {
		"id": "1234",
		"imageId": null,
		"type": "BONUS",
		"canUseBonusPointsForPayment": true,
		"name": {
			"originalText": "Bonus card",
			"translations": [
				{
					"ET": "Boonus kaart"
				}
			]
		},
		"description": {
			"originalText": "For special clients",
			"translations": [
				{
					"ET": "Preemiumkliendi kaart"
				}
			]
		},
		"validationTypes": [
			"CARD_NUMER",
			"IDCODE"
		],
		"colorTheme": "DARK",
		"primary": true,
		"colors": [
			"#fff",
			"#000"
		]
	},
	"value": "22103944833292",
	"personId": "123545454",
	"personEmail": "test@test.ee",
	"personName": "TestUser"
}

Last updated