---
agentTools:
  projectIndex: https://thirdfi.readme.io/llms.txt
---

# Get Payment Details by Invoice ID

Get payment details by invoice ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "ThirdFi API",
    "description": "ThirdFi Backend API Documentation",
    "version": "1.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.thirdfi.org",
      "description": "Production server (uses live data)"
    },
    {
      "url": "https://sandbox.thirdfi.org",
      "description": "Sandbox server (uses test data)"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "x-sec-key"
      },
      "TimestampHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "x-sec-ts"
      },
      "SecretHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "x-sec-sign"
      }
    },
    "schemas": {
      "ErrorResponseVo": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "statusCode",
          "message"
        ]
      },
      "PaymentDetailsVo": {
        "type": "object",
        "properties": {
          "invoiceId": {
            "type": "string",
            "description": "Unique identifier of invoice"
          },
          "totalFees": {
            "type": "number",
            "description": "Total transaction fees"
          },
          "cryptoCurrency": {
            "type": "string",
            "description": "Cryptocurrency symbol for the transaction"
          },
          "fiatCurrency": {
            "type": "string",
            "description": "Fiat currency symbol for the transaction"
          },
          "paymentMethod": {
            "type": "string",
            "description": "Payment method used for the transaction"
          },
          "paymentStatus": {
            "type": "string",
            "description": "Payment status, value is `pending`, `success`, `failed`, `void`"
          },
          "orderStatus": {
            "type": "string",
            "description": "Order status from payment provider"
          },
          "isBuyOrSell": {
            "type": "string",
            "description": "Indicate the transaction either is `BUY` or `SELL`"
          },
          "tax": {
            "type": "number",
            "description": "Tax amount for the transaction"
          },
          "blockchainNetwork": {
            "type": "string",
            "description": "Blockchain network name"
          },
          "exchangeRate": {
            "type": "number",
            "description": "Conversion rate"
          },
          "fiatAmount": {
            "type": "number",
            "description": "Fiat amount for the transaction"
          },
          "cryptoAmount": {
            "type": "number",
            "description": "Cryptocurrency amount for the transaction"
          },
          "expiredDate": {
            "type": "string",
            "description": "Expire date of the payment request"
          },
          "createdAt": {
            "type": "string",
            "description": "Timestamp of payment request created in milliseconds"
          },
          "createdDate": {
            "type": "string",
            "description": "Date of payment request created"
          },
          "paymentProvider": {
            "type": "string",
            "description": "Payment provider name"
          },
          "walletAddress": {
            "type": "string",
            "description": "Wallet address is used for the transaction"
          },
          "user": {
            "type": "object",
            "properties": {
              "emailAddress": {
                "type": "string"
              },
              "firstName": {
                "type": "string"
              },
              "lastName": {
                "type": "string"
              },
              "mobileNumber": {
                "type": "string"
              },
              "dateOfBirth": {
                "type": "string"
              },
              "street": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "postalCode": {
                "type": "string"
              }
            }
          }
        }
      },
      "PaymentDetailsResponseVo": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number"
          },
          "message": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/PaymentDetailsVo"
          }
        }
      }
    }
  },
  "paths": {
    "/api/v1/payment/{invoiceId}": {
      "get": {
        "operationId": "PaymentController_getPaymentByInvoiceId",
        "summary": "Get Payment Details by Invoice ID",
        "description": "Get payment details by invoice ID.",
        "parameters": [
          {
            "name": "invoiceId",
            "required": true,
            "in": "path",
            "description": "Invoice ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Payment details is found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaymentDetailsResponseVo"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseVo"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseVo"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden Resources",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseVo"
                }
              }
            }
          }
        },
        "tags": [
          "Payment"
        ],
        "security": [
          {
            "ApiKeyHeader": [],
            "TimestampHeader": [],
            "SecretHeader": []
          }
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 6,
      "2": 47,
      "3": 127,
      "4": 211,
      "5": 139,
      "6": 229,
      "7": 0,
      "8": 31,
      "9": 79,
      "10": 42,
      "11": 214
    }
  }
}
```