v1

latestOpenAPI 3.0.02026-07-263118119.8 KB
Create & Manage Transactions

preauthTransaction

Update the specified preauthorized transaction. Preauthorized transaction amounts can be increased or decreased. Attributes can also be added for tipping purposes.

Note: The updated transaction amount may not exceed the original amount that was preauthorized.

<details> <summary><strong>Error Glossary</strong> (click to expand)</summary>
CodeHTTP StatusMessage
AP009401Unauthorized
AP101401No authenticated user
AP300200Unable to connect to bank
AP302200Insufficient funds
AP310200Credit transaction declined
AP312200Preauth already captured
AP313200Preauth ineligible for capture
AP315200Payment rejected - threshold or suspended bank
AP700400Missing or invalid required parameter
AP701400Improperly formatted parameter
AP1000200Invalid API
</details>
patch/v2/preauthTransaction/{preauthTransactionId}

Headers

Content-Typestring required
authorizationstring required

A merchant scoped token.

Request body

Example request

{
  "attributes": {
    "invoice": {
      "value": "Value",
      "description": "Description"
    },
    "tip": {
      "tipAmount": "1.00",
      "label": "$1.00",
      "totalAmount": "2.00"
    }
  }
}

Response

Success or Business Logic Error

OR

Example response

{
  "error": {
    "help": "Contact support@aeropay.com for help.",
    "code": "AP700",
    "message": "Missing required Parameter: 'email'"
  }
}