---
updatedAt: 2025-05-28T00:19:35.000Z
agentTools:
  projectIndex: https://coinify.readme.io/llms.txt
---

# Detect Payment

This endpoint enables you to simulate detecting a payment to an existing PaymentIntent.

A valid PaymentIntent ID needs to be provided in the **\{id}** parameter in order to make a successful request. You can then confirm the change in state of the PaymentIntent by calling the [Read PaymentIntent](https://coinify.readme.io/reference/read-payment-intent) endpoint.

> 🚧 SANDBOX ONLY

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "payment-intent",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.payment.sandbox.coinify.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1/payment-intents/{id}/test/detect-payment": {
      "post": {
        "summary": "Detect Payment",
        "description": "",
        "operationId": "detect-payment-paymentintent-test-only",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The PaymentIntent ID",
            "schema": {
              "type": "string"
            },
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errorCode\": \"invalid_request\",\n  \"errorMessage\": \"Cannot set payment as detected. Payment already exists\",\n  \"requestId\": \"{requestId}\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errorCode": {
                      "type": "string",
                      "example": "invalid_request"
                    },
                    "errorMessage": {
                      "type": "string",
                      "example": "Cannot set payment as detected. Payment already exists"
                    },
                    "requestId": {
                      "type": "string",
                      "example": "{requestId}"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```