Spend

Spend a promocard for the value in the receipt. The spend operation indicate usage of the card at one of the provided merchant stores and terminal. Depending on the type of the specific promocard service this operation ensure that the promotion mechanic is applied to the card and the corresponding rewards and/or advantages delivered through the card are applied.

Request


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


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 Spend 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