---
updatedAt: 2025-03-07T22:31:21.000Z
agentTools:
  projectIndex: https://docs.wizit.money/llms.txt
---

# Immediate Transaction Capture

Transaction Capture: This endpoint performs a payment capture for the full value of the payment plan.
If the merchant is able to fulfil the order, the merchant calls the Capture Full Payment endpoint to capture the payment.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Wizit Money Payment API",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://stagingapi.wizit.money/v1"
    }
  ],
  "paths": {
    "/api/Payment/transactioncapture": {
      "post": {
        "tags": [
          "Payment"
        ],
        "summary": "Immediate Transaction Capture",
        "description": "Transaction Capture: This endpoint performs a payment capture for the full value of the payment plan.\r\nIf the merchant is able to fulfil the order, the merchant calls the Capture Full Payment endpoint to capture the payment.",
        "requestBody": {
          "description": "Transaction Capture Request",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionCaptureRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionCaptureRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionCaptureRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionCaptureRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Currency": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "Money": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Amount is a decimal number rounded to two digit",
            "format": "double"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          }
        },
        "additionalProperties": false
      },
      "Consumer": {
        "type": "object",
        "properties": {
          "phoneNumber": {
            "type": "string",
            "description": "Customer phone number limited to 15 charactes",
            "nullable": true
          },
          "givenNames": {
            "type": "string",
            "description": "Customer First Name/Given Name. Limited to 100 characters",
            "nullable": true
          },
          "surname": {
            "type": "string",
            "description": "Customer Last Name/surname. Limited to 100 characters",
            "nullable": true
          },
          "email": {
            "type": "string",
            "description": "Customer Email address . Limited to 300 characters",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Address": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Full name of contact. Limited to 300 characters",
            "nullable": true
          },
          "line1": {
            "type": "string",
            "description": "Address Line1",
            "nullable": true
          },
          "line2": {
            "type": "string",
            "description": "Address Line 2",
            "nullable": true
          },
          "area1": {
            "type": "string",
            "description": "Australian suburb, New Zealand town or city",
            "nullable": true
          },
          "area2": {
            "type": "string",
            "description": "New Zealand suburb",
            "nullable": true
          },
          "region": {
            "type": "string",
            "description": "Austaralian State or Newzealand region",
            "nullable": true
          },
          "postCode": {
            "type": "string",
            "description": "Zip or post code",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "description": "Two digit country Code  - AU, NZ",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "description": "Phone Number",
            "nullable": true
          },
          "fullAddress": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CourierPriority": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "format": "int32"
      },
      "Courier": {
        "type": "object",
        "properties": {
          "shippedAt": {
            "type": "string",
            "description": "Shipping date. Format YYYY/MM/DD",
            "format": "date-time"
          },
          "name": {
            "type": "string",
            "description": "Courier Name . Limited to 200 characters",
            "nullable": true
          },
          "tracking": {
            "type": "string",
            "description": "Tracking Number provided by Courier. Limited to 50 Characters",
            "nullable": true
          },
          "priority": {
            "$ref": "#/components/schemas/CourierPriority"
          }
        },
        "additionalProperties": false
      },
      "Item": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Item Name . Limited to 300 characters",
            "nullable": true
          },
          "sku": {
            "type": "string",
            "description": "Product SKU. Limited to 150 characters.",
            "nullable": true
          },
          "quantity": {
            "type": "integer",
            "description": "The quantity of the item, stored as a signed 32-bit integer.",
            "format": "int32",
            "nullable": true
          },
          "pageUrl": {
            "type": "string",
            "description": "URL for the item's Product Detail Page. Limited to 1500 characters",
            "nullable": true
          },
          "imageUrl": {
            "type": "string",
            "description": "A  URL for a web-optimised photo of the item, suitable for use directly as the src attribute of an img tag. Limited to 1500 characters",
            "nullable": true
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          },
          "categories": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "description": "An array of arrays to accommodate multiple categories that apply to the item.\r\nEach array represents a hierarchical path to a category, with the left-most category being the top-level parent category.",
            "nullable": true
          },
          "shippingRequired": {
            "type": "boolean",
            "description": "Weather shipping is required"
          }
        },
        "additionalProperties": false
      },
      "Discount": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "Discoutn display Name. Limited to 150 characters",
            "nullable": true
          },
          "amount": {
            "$ref": "#/components/schemas/Money"
          }
        },
        "additionalProperties": false
      },
      "TransactionDetailsResponse": {
        "type": "object",
        "properties": {
          "billing": {
            "$ref": "#/components/schemas/Address"
          },
          "shipping": {
            "$ref": "#/components/schemas/Address"
          },
          "courier": {
            "$ref": "#/components/schemas/Courier"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Item"
            },
            "nullable": true
          },
          "discounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Discount"
            },
            "nullable": true
          },
          "taxAmount": {
            "$ref": "#/components/schemas/Money"
          },
          "shippingAmount": {
            "$ref": "#/components/schemas/Money"
          },
          "otherCharges": {
            "$ref": "#/components/schemas/Money"
          },
          "consumer": {
            "$ref": "#/components/schemas/Consumer"
          }
        },
        "additionalProperties": false
      },
      "TransactionCaptureRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "merchantReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Refund": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "merchantReference": {
            "type": "string",
            "nullable": true
          },
          "refundId": {
            "type": "integer",
            "format": "int32"
          },
          "refundedAt": {
            "type": "string",
            "format": "date-time"
          },
          "refundMerchantReference": {
            "type": "string",
            "nullable": true
          },
          "transactionId": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "PaymentResponse": {
        "type": "object",
        "properties": {
          "responseCode": {
            "type": "integer",
            "description": "HTTP Resposne code \r\n200 - for success \r\n500 - Failed Request",
            "format": "int32"
          },
          "errorCode": {
            "type": "string",
            "description": "Internal Error Code",
            "nullable": true
          },
          "errorMessage": {
            "type": "string",
            "description": "Internal Error Description",
            "nullable": true
          },
          "transactionId": {
            "type": "string",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "transactionStatus": {
            "type": "string",
            "nullable": true
          },
          "paymentCompleted": {
            "type": "string",
            "nullable": true
          },
          "originalAmount": {
            "$ref": "#/components/schemas/Money"
          },
          "pendingCaptureAmount": {
            "$ref": "#/components/schemas/Money"
          },
          "paymentStatus": {
            "type": "string",
            "nullable": true
          },
          "merchantReference": {
            "type": "string",
            "nullable": true
          },
          "transactionDetails": {
            "$ref": "#/components/schemas/TransactionDetailsResponse"
          },
          "paymentDescription": {
            "type": "string",
            "nullable": true
          },
          "refunds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Refund"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "API-KEY": {
        "type": "apiKey",
        "description": "API KEY for the Merchant",
        "name": "API-KEY",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "API-KEY": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```