Reward

Manual collect a reward from a promocard. This operation permit to collect a reward from the card at one of the provided merchant stores and terminal. Please note that services which provides automatic rewards logic (e.g. Mini collecting) handle the reward automatically during the spend operation.

Request


PUT https://api.domec.tools/v1.0/pc/reward


Request Body


{
  "Card": "",
  "Receipt": {
    "IssuerData": {
      "Name": "",
      "Address": "",
      "Telephone": "",
      "EMail": "",
      "VATNumber": ""
    },
    "IssueDate": "",
    "Products": [
      {
        "Code": "",
        "Name": "",
        "Price": 0.0,
        "Quantity": 0.0,
        "Mode": "",
        "Family": ""
      }
    ],
    "Payments": [
      {
        "Method": {},
        "CardCode": "",
        "Amount": 0.0
      }
    ],
    "Total": 0.0,
    "SenderData": {
      "Shop": "",
      "Terminal": "",
      "Type": 0,
      "Number": 0,
      "CashDrawer": 0,
      "Operator": ""
    },
    "UserData": ""
  },
  "Notes": ""
}

Parameters

The Reward receive the following parameters in the input.

NameTypeData TypeMandatory
modelbodyServiceOperationViewModel

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