Reload card

Charge a card for the value in the receipt and return a CardResult object in the body response.. This API is useful only for those services which foresee a charge operation. If the charge operation is not supported by the corresponding service a Bad Request response will be returned.

Request


POST https://api.domec.tools/v2.0/card:strings/{card:string}/topups


Request Body


{
  "Amount": 0.0,
  "Receipt": {
    "IssuerData": {},
    "IssueDate": "",
    "Products": [
      {}
    ],
    "Payments": [
      {}
    ],
    "Total": 0.0,
    "SenderData": {},
    "UserData": ""
  },
  "Notes": ""
}

Parameters

The Reload card receive the following parameters in the input.

NameTypeData TypeMandatory
cardpathstring
modelbodyAmountInput

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