Create Payment

Pre-Spend a card for the value in the receipt and obtains an authorization for the spend.

Request


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


Request Body


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

Parameters

The Create Payment receive the following parameters in the input.

NameTypeData TypeMandatory
cardpathstring
modelbodyPaymentInput

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