---
agentTools:
  projectIndex: https://crezco-collect.readme.io/llms.txt
---

# Get Payment

Get details of the specified payment, which may be a partial payment.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Crezco Partner Api",
    "description": "﻿\n---\n\n## Authorization\n\nApi key should be sent as a header (Example: 'X-Crezco-Key: *yourkey*').\n\nClick __Authorize__ button to add your key as a header to all calls.\n\nTo get a key, please contact support.\n\n## Support\n\nFor support go to [Crezco support portal](https://crezco.atlassian.net/servicedesk/customer/portal/2/group/7) or e-mail [support@crezco.com](mailto:support@crezco.com).\n\n## Quick start\n\n### Create a user\n\nUse POST on users endpoint in order to create a new user. All pay demands when created will be associated with a particular user, who can be thought of as a beneficiary of the payments.\n\n### Create pay demand\n\nPay demand is a representation of an invoice. It contains instructions of the amount that needs to be paid, any reference (description or purpose) of the payment, as well as details of the beneficiary's bank account.\n\nEvery pay demand, when created, is associated with a specific user. \n\n### Obtain pay demand URL\n\nEach pay demand has a unique URL associated with it. \n\nThis URL may be sent to an individual who must make a payment. It may be sent as a standard URL, or could be embeded in a QR code.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.sandbox.crezco.com",
      "description": "Sandbox"
    },
    {
      "url": "https://api.crezco.com",
      "description": "Production"
    }
  ],
  "paths": {
    "/v1/payments/{paymentId}": {
      "get": {
        "tags": [
          "Payments"
        ],
        "summary": "Get Payment",
        "description": "Get details of the specified payment, which may be a partial payment.",
        "operationId": "GetPaymentAsync",
        "parameters": [
          {
            "name": "paymentId",
            "in": "path",
            "description": "Unique identifier of the Payment",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PartialPayment"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidationProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "default": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "PartialPayment": {
        "required": [
          "amount",
          "currency"
        ],
        "type": "object",
        "properties": {
          "paymentId": {
            "type": "string",
            "format": "uuid"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "amount": {
            "type": "number",
            "description": "Amount in currency that was paid/instructed",
            "format": "double",
            "example": 36.53
          },
          "currency": {
            "maxLength": 3,
            "minLength": 0,
            "pattern": "[A-Z]{3}",
            "type": "string",
            "description": "3-letter ISO currency code",
            "default": "GBP",
            "example": "GBP"
          },
          "status": {
            "$ref": "#/components/schemas/PaymentStatus"
          }
        },
        "additionalProperties": false
      },
      "PaymentStatus": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/PaymentStatusCode"
          }
        },
        "additionalProperties": false,
        "description": "Payment status record\r\n\r\n<remarks>PaymentStatusCode enumerations:\r\n\r\nTerminal states are highlighted in bold\r\n\r\n### Pre-authorisation\r\n- New: Payment has been created internally, authorisation has not been attempted\r\n### Bank selection + authorisation\r\n- **Cancelled**: Payment / bank account selection process was cancelled by the user\r\n- **Failed**: Bank account selection process failed for some reason (failed to get redirect URL, bank failed to authorise user, etc)\r\n- **Denied**: Bank denied the payment - it failed a technical validation check\r\n### Post-bank selection + authorisation\r\n- Authorised: User completed bank account selection and authorised the transaction. Bank has not yet processed the request\r\n- **Declined**: Bank declined the payment\r\n- Accepted: Payment accepted but funds have not yet transferred\r\n- Blocked: Payment accepted by Bank, but awaiting further authorisations (multi-auth, or other approval flows)\r\n- **Completed**: Payment completed, funds transferred\r\n### Other\r\n- **Error**: Something went wrong outside of the normal flow\r\n</remarks>"
      },
      "PaymentStatusCode": {
        "enum": [
          "New",
          "Cancelled",
          "Failed",
          "Authorised",
          "Error",
          "Denied",
          "Declined",
          "Accepted",
          "Blocked",
          "Completed"
        ],
        "type": "string",
        "description": "Crezco PaymentStatus\r\nhttps://crezco.atlassian.net/wiki/spaces/TECH/pages/259653673/Payments+Service#Status"
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      },
      "ValidationProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "additionalProperties": {}
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "description": "Api key should be sent as header (Example: 'X-Crezco-Key:{yourkey}')\nTo get a key, please e-mail support@crezco.com\n\nFor support go to https://crezco.atlassian.net/servicedesk/customer/portal/2/group/7",
        "name": "X-Crezco-Key",
        "in": "header"
      },
      "Bearer": {
        "type": "http",
        "description": "JWT Authorization header using the Bearer scheme.\nEnter 'Bearer' [space] and then your token in the text input below.\nExample: 'Bearer 12345abcdef'",
        "scheme": "Bearer"
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    },
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 101,
      "1": 122,
      "2": 11,
      "3": 8,
      "4": 192,
      "5": 234,
      "6": 80,
      "7": 0,
      "8": 28,
      "9": 194,
      "10": 144,
      "11": 137
    }
  }
}
```