Create

Create a card on the fly and return a ICardResult 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/v2.0/cards/{subscriptionId:string}


Request Body


{
  "CardValue": 0.0,
  "PartnerCodes": [
    ""
  ],
  "Options": {
    "Expires": {
      "Mode": 0,
      "Days": 0,
      "Operation": 0
    },
    "CodeGeneration": {
      "Prefix": "",
      "Suffix": ""
    }
  },
  "MasterCardCode": ""
}

Parameters

The Create receive the following parameters in the input.

NameTypeData TypeMandatory
subscriptionIdpathstring
modelbodyCreateCardInput

Responses

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

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