Create

This endpoint lets you create a new card for the client’s interesting campaign. To create a new card, you need to pass in the request body a data structure containing the following fields: subscriptionID. This field was received from Domec upon subscription to the servicecardValue. The value to be assigned to the card that will be created (e.g. 50.00)options. This is an array containing a variable number of promotions and/or discounts to associate with the card at the time of creation. These discounts and/or promotions are of “Pricecut” and/or “Cashback” types and are pre-defined through a backend configuration

When a paper is created through this endpoint, the paper is in a “Created” status with a sub-status of “Ready for Activation”. Before delivering the card to the final customer, the card should be activated through the dedicated endpoint.

Request


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


Request Body


{
  "CampaignID": 0,
  "CardValue": 0.0,
  "AssignCardPromotions": [
    0
  ]
}

Parameters

The Create receive the following parameters in the input.

NameTypeData TypeMandatory
modelbodySVCCreateOperationViewModel

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
409Conflict
Indicates that the request could not be carried out because of a conflict on the server
View body