---
title: Capture Payment
slug: api/capture-payment
createdAt: 2026-11-09T23:53:42.479Z
---

{
  "id": "q3k8jT_rb31iA0mBXls5M",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/capture",
    "servers": [
      {
        "url": "https://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/capture",
        "description": "Sandbox URL"
      },
      {
        "url": "https://api.monoova.com/au/card/ccm/CreditCardTransaction/capture",
        "description": "Production URL"
      }
    ],
    "name": "Capture Payment",
    "description": "Capture an authorised payment.",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [
        {
          "name": "accept",
          "type": "string",
          "kind": "optional",
          "description": "Generated from available response content types",
          "enum": [
            "application/json"
          ],
          "default": "application/json"
        }
      ],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "body",
          "type": "object",
          "description": "Request payload used to capture a payment.",
          "customType": "CaptureCreditCardPaymentDto",
          "schema": [
            {
              "name": "clientTransactionUniqueReference",
              "kind": "required",
              "type": "string",
              "description": "<p>Unique reference of the payment to capture, as provided when the payment was created. Case insensitive.</p>",
              "example": "PAY-20261013-0001",
              "default": "PAY-20261013-0001",
              "pattern": "^[a-zA-Z0-9_-]{1,40}$"
            },
            {
              "name": "amount",
              "kind": "optional",
              "type": "object",
              "description": "<p><strong>Optional</strong>. Amount to capture.</p>",
              "modelRef": "#/components/schemas/CaptureAmountDto",
              "customType": "CaptureAmountDto",
              "schema": [
                {
                  "name": "currencyAmount",
                  "kind": "required",
                  "type": "number<decimal>",
                  "description": "<p>Amount to capture, up to 2 decimal places. Cannot exceed the authorised amount.</p>",
                  "example": 150.75,
                  "default": 150.75,
                  "format": "decimal",
                  "minimum": 0,
                  "maximum": 20000000,
                  "pattern": "^[0-9]{1,8}(\\.[0-9]{1,2})?$",
                  "multipleOf": 0.01
                }
              ]
            }
          ],
          "modelRef": "#/components/schemas/CaptureCreditCardPaymentDto",
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "bearerAuth",
          "name": "bearerAuth",
          "kind": "optional",
          "type": "http",
          "description": "<p>To authenticate, pass a bearer token in the Authorization header. Generate the token with the Generate a Bearer Token endpoint, which uses basic authentication with your mAccount number as the username and your API key as the password. Bearer tokens are short-lived, so generate a new token when the current one expires.</p>",
          "scheme": "bearer"
        }
      ],
      "cookieParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "<p>Success. The capture request was processed; check paymentDetails.status for the outcome. The API can also return this response with HTTP status 201 Created.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"traceId\":\"978b29d3-3191-54c6-a6d2-1409b092a35e\",\"clientTransactionUniqueReference\":\"PAY-20261013-0001\",\"paymentDetails\":{\"transactionInitiationDateTime\":\"2026-10-13T04:32:48Z\",\"status\":\"Pending Settlement\",\"amount\":{\"currencyAmount\":150.75},\"surchargeAmount\":{\"currencyAmount\":1.81}}}",
            "description": "",
            "customType": "CaptureCreditCardPaymentResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Unique ID for the request, used for logging and troubleshooting.</p>",
                "example": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "default": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "clientTransactionUniqueReference",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Your unique reference for the payment, as provided in the request.</p>",
                "example": "PAY-20261013-0001",
                "default": "PAY-20261013-0001",
                "pattern": "^[a-zA-Z0-9_-]{1,40}$"
              },
              {
                "name": "paymentDetails",
                "kind": "optional",
                "type": "object",
                "description": "Details of the payment after the request was processed.",
                "modelRef": "#/components/schemas/PaymentDetailsResponse",
                "customType": "PaymentDetailsResponse",
                "schema": [
                  {
                    "name": "transactionInitiationDateTime",
                    "kind": "optional",
                    "type": "string<date-time>",
                    "nullable": true,
                    "description": "<p>Time the payment processor initiated the transaction, as an ISO 8601 date-time in UTC.</p>",
                    "example": "2026-10-13T04:32:48Z",
                    "default": "2026-10-13T04:32:48Z",
                    "format": "date-time",
                    "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,7})?(Z|[+-][0-9]{2}:[0-9]{2})?$"
                  },
                  {
                    "name": "status",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "Current status of the transaction.",
                    "example": "Pending Settlement",
                    "default": "Pending Settlement",
                    "pattern": "^[A-Za-z ]+$"
                  },
                  {
                    "name": "amount",
                    "kind": "optional",
                    "type": "object",
                    "description": "Amount of the transaction.",
                    "modelRef": "#/components/schemas/TransactionAmountDto",
                    "customType": "TransactionAmountDto",
                    "schema": [
                      {
                        "name": "currencyAmount",
                        "kind": "optional",
                        "type": "number<decimal>",
                        "description": "<p>Transaction amount, up to 2 decimal places.</p>",
                        "example": 150.75,
                        "default": 150.75,
                        "format": "decimal",
                        "minimum": 0,
                        "pattern": "^[0-9]{1,8}(\\.[0-9]{1,2})?$"
                      }
                    ]
                  },
                  {
                    "name": "surchargeAmount",
                    "kind": "optional",
                    "type": "object",
                    "description": "Surcharge applied to the transaction.",
                    "modelRef": "#/components/schemas/SurchargeAmountDto",
                    "customType": "SurchargeAmountDto",
                    "schema": [
                      {
                        "name": "currencyAmount",
                        "kind": "optional",
                        "type": "number<decimal>",
                        "description": "<p>Surcharge amount, up to 2 decimal places.</p>",
                        "example": 1.81,
                        "default": 1.81,
                        "format": "decimal",
                        "minimum": 0,
                        "pattern": "^[0-9]{1,8}(\\.[0-9]{1,2})?$"
                      }
                    ]
                  },
                  {
                    "name": "statusReasonCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Reason code for the status, if any.</p>",
                    "example": "05",
                    "default": "05",
                    "pattern": "^\\S+$"
                  },
                  {
                    "name": "statusReasonDescription",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Description of the status reason, if any.</p>",
                    "example": "Do not honour",
                    "default": "Do not honour",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/CaptureCreditCardPaymentResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "<p>Bad request. The request failed validation - for example clientTransactionUniqueReference is missing, the payment cannot be captured in its current status, or the capture amount exceeds the authorised amount.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"traceId\":\"c9f14f3d-b29e-5719-b46c-0d871731d139\",\"errors\":[{\"errorCode\":\"CCM_UID_REQUIRED\",\"errorMessage\":\"clientTransactionUniqueReference required\"}]}",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Unique ID for the request, used for logging and troubleshooting.</p>",
                "example": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "default": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "Errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. All codes start with CCM_. See Error codes in the Cards overview for the full list.</p>",
                    "example": "CCM_VALIDATION_ERROR",
                    "default": "CCM_VALIDATION_ERROR",
                    "pattern": "^CCM_[A-Za-z0-9_]+$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>More detailed description of the error, which may include values from the request.</p>",
                    "example": "Error validating request message - amount.currencyAmount required",
                    "default": "Error validating request message - amount.currencyAmount required",
                    "pattern": "^.+$"
                  },
                  {
                    "name": "sourceErrorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error code from an upstream system, if any.</p>",
                    "example": "DECLINED",
                    "default": "DECLINED",
                    "pattern": "^\\S+$"
                  },
                  {
                    "name": "sourceErrorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error message from an upstream system, if any.</p>",
                    "example": "Transaction declined by issuer",
                    "default": "Transaction declined by issuer",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "401",
        "description": "<p>Unauthorized. The bearer token is missing, malformed or expired. Generate a new bearer token and retry the request.</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "403",
        "description": "<p>Forbidden. Your mAccount is not permitted to perform this operation - for example card payments are not enabled for your account.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"traceId\":\"bca29c01-4efe-523f-ab91-d922c173034a\",\"errors\":[{\"errorCode\":\"CCM_ACC_DISABLED_ERROR\",\"errorMessage\":\"Card transactions disabled for accountId 6279059700012345\"}]}",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Unique ID for the request, used for logging and troubleshooting.</p>",
                "example": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "default": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "Errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. All codes start with CCM_. See Error codes in the Cards overview for the full list.</p>",
                    "example": "CCM_VALIDATION_ERROR",
                    "default": "CCM_VALIDATION_ERROR",
                    "pattern": "^CCM_[A-Za-z0-9_]+$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>More detailed description of the error, which may include values from the request.</p>",
                    "example": "Error validating request message - amount.currencyAmount required",
                    "default": "Error validating request message - amount.currencyAmount required",
                    "pattern": "^.+$"
                  },
                  {
                    "name": "sourceErrorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error code from an upstream system, if any.</p>",
                    "example": "DECLINED",
                    "default": "DECLINED",
                    "pattern": "^\\S+$"
                  },
                  {
                    "name": "sourceErrorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error message from an upstream system, if any.</p>",
                    "example": "Transaction declined by issuer",
                    "default": "Transaction declined by issuer",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "Not found. No payment matches clientTransactionUniqueReference for your mAccount.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"traceId\":\"e9d3dd59-b928-50b3-94d8-7ba72d7ef222\",\"errors\":[{\"errorCode\":\"CCM_TRN_NOT_FOUND_ERROR\",\"errorMessage\":\"CreditCardTransaction not found for Account 6279059700012345 / clientTransactionUniqueReference PAY-20261013-0001\"}]}",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Unique ID for the request, used for logging and troubleshooting.</p>",
                "example": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "default": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "Errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. All codes start with CCM_. See Error codes in the Cards overview for the full list.</p>",
                    "example": "CCM_VALIDATION_ERROR",
                    "default": "CCM_VALIDATION_ERROR",
                    "pattern": "^CCM_[A-Za-z0-9_]+$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>More detailed description of the error, which may include values from the request.</p>",
                    "example": "Error validating request message - amount.currencyAmount required",
                    "default": "Error validating request message - amount.currencyAmount required",
                    "pattern": "^.+$"
                  },
                  {
                    "name": "sourceErrorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error code from an upstream system, if any.</p>",
                    "example": "DECLINED",
                    "default": "DECLINED",
                    "pattern": "^\\S+$"
                  },
                  {
                    "name": "sourceErrorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error message from an upstream system, if any.</p>",
                    "example": "Transaction declined by issuer",
                    "default": "Transaction declined by issuer",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "Internal server error. An unexpected condition prevented Monoova from completing the request. Retry the request and contact Monoova support if the error persists.",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"traceId\":\"4020541e-cf7a-5e66-b858-78686a95a456\",\"errors\":[{\"errorCode\":\"CCM_UNEXPECTED_ERROR\",\"errorMessage\":\"Internal server error. Please contact Monoova support.\"}]}",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Unique ID for the request, used for logging and troubleshooting.</p>",
                "example": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "default": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "Errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. All codes start with CCM_. See Error codes in the Cards overview for the full list.</p>",
                    "example": "CCM_VALIDATION_ERROR",
                    "default": "CCM_VALIDATION_ERROR",
                    "pattern": "^CCM_[A-Za-z0-9_]+$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>More detailed description of the error, which may include values from the request.</p>",
                    "example": "Error validating request message - amount.currencyAmount required",
                    "default": "Error validating request message - amount.currencyAmount required",
                    "pattern": "^.+$"
                  },
                  {
                    "name": "sourceErrorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error code from an upstream system, if any.</p>",
                    "example": "DECLINED",
                    "default": "DECLINED",
                    "pattern": "^\\S+$"
                  },
                  {
                    "name": "sourceErrorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error message from an upstream system, if any.</p>",
                    "example": "Transaction declined by issuer",
                    "default": "Transaction declined by issuer",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "502",
        "description": "<p>Bad gateway. A downstream service returned an invalid response, so the outcome of the request is unknown. Check the result with Get Transaction By Id before you retry.</p>",
        "jsonExample": "",
        "isExpanded": true
      },
      {
        "statusCode": "504",
        "description": "<p>Gateway timeout. A downstream service did not respond in time, so the outcome of the request is unknown. Check the result with Get Transaction By Id before you retry.</p>",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "example": "{\"traceId\":\"b35903a7-68da-5559-ae47-594211282d45\",\"errors\":[{\"errorCode\":\"CCM_CC_GWM_TIMEOUT\",\"errorMessage\":\"Timeout from CC Gateway Manager\"}]}",
            "description": "",
            "customType": "ErrorResponse",
            "schema": [
              {
                "name": "traceId",
                "kind": "optional",
                "type": "string",
                "nullable": true,
                "description": "<p>Unique ID for the request, used for logging and troubleshooting.</p>",
                "example": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "default": "71170aca-7ed5-5045-b317-39f21a1d985e",
                "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
              },
              {
                "name": "errors",
                "kind": "optional",
                "type": "array",
                "nullable": true,
                "description": "Errors that occurred while processing the request.",
                "modelRef": "#/components/schemas/ErrorDto",
                "customType": "ErrorDto[]",
                "schema": [
                  {
                    "name": "errorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>Monoova error code. All codes start with CCM_. See Error codes in the Cards overview for the full list.</p>",
                    "example": "CCM_VALIDATION_ERROR",
                    "default": "CCM_VALIDATION_ERROR",
                    "pattern": "^CCM_[A-Za-z0-9_]+$"
                  },
                  {
                    "name": "errorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p>More detailed description of the error, which may include values from the request.</p>",
                    "example": "Error validating request message - amount.currencyAmount required",
                    "default": "Error validating request message - amount.currencyAmount required",
                    "pattern": "^.+$"
                  },
                  {
                    "name": "sourceErrorCode",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error code from an upstream system, if any.</p>",
                    "example": "DECLINED",
                    "default": "DECLINED",
                    "pattern": "^\\S+$"
                  },
                  {
                    "name": "sourceErrorMessage",
                    "kind": "optional",
                    "type": "string",
                    "nullable": true,
                    "description": "<p><strong>Conditional</strong>. Error message from an upstream system, if any.</p>",
                    "example": "Transaction declined by issuer",
                    "default": "Transaction declined by issuer",
                    "pattern": "^.+$"
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/ErrorResponse",
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/capture \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"clientTransactionUniqueReference\": \"PAY-20261013-0001\",\n     \"amount\": {\n     \"currencyAmount\": 150.75\n     }\n     }'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"clientTransactionUniqueReference\": \"PAY-20261013-0001\",\n   \"amount\": {\n      \"currencyAmount\": 150.75\n   }\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/capture\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/capture\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"clientTransactionUniqueReference\": \"PAY-20261013-0001\",\n   \"amount\": {\n      \"currencyAmount\": 150.75\n   }\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://sand-api.monoova.com/au/card/ccm/CreditCardTransaction/capture\"\n\npayload = json.dumps({\n   \"clientTransactionUniqueReference\": \"PAY-20261013-0001\",\n   \"amount\": {\n      \"currencyAmount\": 150.75\n   }\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": "// Success. The capture request was processed; check paymentDetails.status for the outcome. The API can also return this response with HTTP status 201 Created.\n{\n  \"traceId\": \"71170aca-7ed5-5045-b317-39f21a1d985e\",\n  \"clientTransactionUniqueReference\": \"PAY-20261013-0001\",\n  \"paymentDetails\": {\n    \"transactionInitiationDateTime\": \"2026-10-13T04:32:48Z\",\n    \"status\": \"Pending Settlement\",\n    \"amount\": {\n      \"currencyAmount\": 150.75\n    },\n    \"surchargeAmount\": {\n      \"currencyAmount\": 1.81\n    },\n    \"statusReasonCode\": \"05\",\n    \"statusReasonDescription\": \"Do not honour\"\n  }\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Bad request. The request failed validation - for example clientTransactionUniqueReference is missing, the payment cannot be captured in its current status, or the capture amount exceeds the authorised amount.\n{\n  \"traceId\": \"71170aca-7ed5-5045-b317-39f21a1d985e\",\n  \"errors\": [\n    {\n      \"errorCode\": \"CCM_VALIDATION_ERROR\",\n      \"errorMessage\": \"Error validating request message - amount.currencyAmount required\",\n      \"sourceErrorCode\": \"DECLINED\",\n      \"sourceErrorMessage\": \"Transaction declined by issuer\"\n    }\n  ]\n}"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Unauthorized. The bearer token is missing, malformed or expired. Generate a new bearer token and retry the request.\n"
        },
        {
          "id": "response-3-403",
          "language": "403",
          "code": "// Forbidden. Your mAccount is not permitted to perform this operation - for example card payments are not enabled for your account.\n{\n  \"traceId\": \"71170aca-7ed5-5045-b317-39f21a1d985e\",\n  \"errors\": [\n    {\n      \"errorCode\": \"CCM_VALIDATION_ERROR\",\n      \"errorMessage\": \"Error validating request message - amount.currencyAmount required\",\n      \"sourceErrorCode\": \"DECLINED\",\n      \"sourceErrorMessage\": \"Transaction declined by issuer\"\n    }\n  ]\n}"
        },
        {
          "id": "response-4-404",
          "language": "404",
          "code": "// Not found. No payment matches clientTransactionUniqueReference for your mAccount.\n{\n  \"traceId\": \"71170aca-7ed5-5045-b317-39f21a1d985e\",\n  \"errors\": [\n    {\n      \"errorCode\": \"CCM_VALIDATION_ERROR\",\n      \"errorMessage\": \"Error validating request message - amount.currencyAmount required\",\n      \"sourceErrorCode\": \"DECLINED\",\n      \"sourceErrorMessage\": \"Transaction declined by issuer\"\n    }\n  ]\n}"
        },
        {
          "id": "response-5-500",
          "language": "500",
          "code": "// Internal server error. An unexpected condition prevented Monoova from completing the request. Retry the request and contact Monoova support if the error persists.\n{\n  \"traceId\": \"71170aca-7ed5-5045-b317-39f21a1d985e\",\n  \"errors\": [\n    {\n      \"errorCode\": \"CCM_VALIDATION_ERROR\",\n      \"errorMessage\": \"Error validating request message - amount.currencyAmount required\",\n      \"sourceErrorCode\": \"DECLINED\",\n      \"sourceErrorMessage\": \"Transaction declined by issuer\"\n    }\n  ]\n}"
        },
        {
          "id": "response-6-502",
          "language": "502",
          "code": "// Bad gateway. A downstream service returned an invalid response, so the outcome of the request is unknown. Check the result with Get Transaction By Id before you retry.\n"
        },
        {
          "id": "response-7-504",
          "language": "504",
          "code": "// Gateway timeout. A downstream service did not respond in time, so the outcome of the request is unknown. Check the result with Get Transaction By Id before you retry.\n{\n  \"traceId\": \"71170aca-7ed5-5045-b317-39f21a1d985e\",\n  \"errors\": [\n    {\n      \"errorCode\": \"CCM_VALIDATION_ERROR\",\n      \"errorMessage\": \"Error validating request message - amount.currencyAmount required\",\n      \"sourceErrorCode\": \"DECLINED\",\n      \"sourceErrorMessage\": \"Transaction declined by issuer\"\n    }\n  ]\n}"
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}