Create

Create a promocard on the fly and return a BaseServiceResult object in the body response. Usage of this API is reserved to online web shops which needs to issue a loyalty card for a user. The management of physical cards does not need to implement this API as the cards usually are pre-created and printed on plastic.

Request


POST https://api.domec.tools/v1.0/pc/create


Request Body


{
  "SubscriptionID": "",
  "CardValue": 0.0,
  "Discounts": [
    0
  ],
  "Options": {
    "Expires": {
      "Mode": 0,
      "Days": 0,
      "Operation": 0
    },
    "CodeGeneration": {
      "Prefix": "",
      "Suffix": ""
    }
  },
  "Shop": "",
  "Terminal": "",
  "Notes": ""
}

Parameters

The Create receive the following parameters in the input.

NameTypeData TypeMandatory
modelbodyCreateCardInputViewModel

Responses

The following HTTP status codes may be returned, optionally with a response resource

Status codeDescriptionResponse body
200OK
Success
View body
400BadRequest
The input request contains errors which prevents executing the request
View body
404NotFound
Endpoint not found
View body