Charge

Charge a promocard for the value in the receipt. This API is useful only for those services, in the promocard environment, which foresee a charge operation. For example, in the long term collecting service, the charge is not needed while it is really useful in the subscription service. For the subscription service the charge operation summarize the operation of subscription renewal. If the charge operation is not supported by the corresponding service a Bad Request response will be returned.

Request


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


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