---
agentTools:
  projectIndex: https://docs.developer.plastiq.com/llms.txt
---

# Retrieve a Payer

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Plastiq Public API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://connect.sandbox.plastiq.com/api",
      "description": "Sandbox server"
    },
    {
      "url": "https://connect.plastiq.com/api",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/payers/{id}": {
      "get": {
        "summary": "Retrieve a Payer",
        "tags": [
          "Payers"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The ID of the Payer",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "$ref": "#/components/parameters/TraceId"
          },
          {
            "$ref": "#/components/parameters/EndUserAgent"
          },
          {
            "$ref": "#/components/parameters/EndUserIp"
          },
          {
            "$ref": "#/components/parameters/EndUserOS"
          },
          {
            "$ref": "#/components/parameters/EndUserDeviceId"
          },
          {
            "$ref": "#/components/parameters/EndUserDeviceManufacturer"
          },
          {
            "$ref": "#/components/parameters/EndUserDeviceModel"
          }
        ],
        "responses": {
          "200": {
            "description": "Payer retrieved successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Payer"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "token"
      }
    },
    "headers": {
      "Trace-Id": {
        "schema": {
          "type": "string",
          "format": "uuid"
        },
        "description": "The trace ID for the request"
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Bad Request",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "NotFound": {
        "description": "Not found",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error",
        "headers": {
          "Trace-Id": {
            "$ref": "#/components/headers/Trace-Id"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "GENERIC_ERROR"
          },
          "message": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "details": {
                  "type": "string"
                },
                "field": {
                  "type": "string",
                  "description": "Request field the error applies to. Only present on validation errors that name a field, e.g. `businessAddress`.",
                  "example": "businessAddress"
                }
              }
            }
          },
          "traceId": {
            "type": "string",
            "format": "uuid"
          }
        }
      },
      "Payer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "8f51c396-6e29-49a6-ba5a-1a31d5420158"
          },
          "externalId": {
            "type": "string",
            "description": "Consumer defined ID that will be attached to this resource",
            "pattern": "^[-a-zA-Z0-9_~.]*$"
          },
          "businessName": {
            "type": "string",
            "example": "Philz Coffee"
          },
          "contact": {
            "type": "object",
            "oneOf": [
              {
                "$ref": "#/components/schemas/ContactWithEmail"
              },
              {
                "$ref": "#/components/schemas/ContactWithPhone"
              }
            ]
          },
          "businessAddress": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/Address"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "type": "string",
            "allOf": [
              {
                "$ref": "#/components/schemas/Status"
              }
            ]
          },
          "hasIdentityDocuments": {
            "type": "boolean",
            "description": "Indicates whether the payer has saved identity documents",
            "example": true
          },
          "identityDocuments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdentityDocumentResponse"
            }
          },
          "metadata": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/PayerMetadata"
              }
            ]
          }
        }
      },
      "Address": {
        "type": "object",
        "required": [
          "line1",
          "country",
          "city",
          "state",
          "postalCode"
        ],
        "properties": {
          "line1": {
            "type": "string",
            "description": "Address line 1 (e.g., street, PO Box, or company name).",
            "example": "360 9th St."
          },
          "line2": {
            "type": "string",
            "description": "Address line 2 (e.g., apartment, suite, unit, or building).",
            "example": null
          },
          "city": {
            "type": "string",
            "description": "City, district, suburb, town, or village.",
            "example": "San Francisco"
          },
          "state": {
            "type": "string",
            "description": "State, county, province, or region.",
            "example": "CA"
          },
          "postalCode": {
            "type": "string",
            "description": "ZIP or postal code.",
            "example": "94103"
          },
          "country": {
            "type": "string",
            "description": "Two-letter country code (ISO 3166-1 alpha-2).",
            "example": "US"
          }
        }
      },
      "ContactWithPhone": {
        "type": "object",
        "required": [
          "phone"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "example": "Bob"
          },
          "lastName": {
            "type": "string",
            "example": "Smith"
          },
          "email": {
            "type": "string",
            "example": "bobsmith@coffeebean.supply"
          },
          "phone": {
            "type": "string",
            "example": "4155550100"
          }
        }
      },
      "ContactWithEmail": {
        "type": "object",
        "required": [
          "email"
        ],
        "properties": {
          "firstName": {
            "type": "string",
            "example": "Bob"
          },
          "lastName": {
            "type": "string",
            "example": "Smith"
          },
          "email": {
            "type": "string",
            "example": "bobsmith@coffeebean.supply"
          },
          "phone": {
            "type": "string",
            "example": "4155550100"
          }
        }
      },
      "PayerMetadata": {
        "description": "Additional Payer information to support operational requirements",
        "properties": {
          "accountSettings": {
            "$ref": "#/components/schemas/AccountSettingsMetadata"
          }
        }
      },
      "AccountSettingsMetadata": {
        "type": "object",
        "properties": {
          "emailConfirmation": {
            "type": "boolean",
            "description": "Whether or not the associated entity has confirmed its email.",
            "example": true
          },
          "phoneConfirmation": {
            "type": "boolean",
            "description": "Whether or not the associated entity has confirmed its phone number.",
            "example": true
          },
          "singleSignOn": {
            "type": "boolean",
            "description": "Whether or not the associated entity uses single-sign-on.",
            "example": true
          },
          "singleSignOnType": {
            "type": "string",
            "description": "The single-sign-on service the associated entity uses.",
            "example": "OKTA"
          },
          "twoFactor": {
            "type": "boolean",
            "description": "Whether or not the associated entity uses two-factor authentication.",
            "example": true
          },
          "multiFactor": {
            "type": "boolean",
            "description": "Whether or not the associated entity uses multi-factor authentication.",
            "example": true
          }
        }
      },
      "Status": {
        "example": "ACTIVE",
        "type": "string",
        "description": "The status of an object",
        "enum": [
          "ACTIVE",
          "INACTIVE",
          "UNKNOWN"
        ]
      },
      "IdentityDocumentResponse": {
        "type": "object",
        "properties": {
          "type": {
            "example": "US_SSN",
            "type": "string",
            "enum": [
              "US_TIN",
              "US_EIN",
              "US_SSN",
              "PASSPORT_NUMBER",
              "ALIEN_REGISTRATION_NUMBER"
            ]
          },
          "id": {
            "type": "string",
            "format": "uuid"
          }
        }
      }
    },
    "parameters": {
      "TraceId": {
        "in": "header",
        "name": "Trace-Id",
        "schema": {
          "type": "string"
        },
        "description": "A valid UUID (V4) for tracing requests. Will be returned as a header. If not present or invalid, a generated UUID will be returned."
      },
      "EndUserAgent": {
        "name": "End-User-Agent",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "A string representing the User Agent of the end user. Recommended for compliance. Required only when the request is not coming from the end user's browser."
      },
      "EndUserDeviceId": {
        "name": "End-User-Device-Id",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "A unique identifier for the end user's device. Recommended for compliance."
      },
      "EndUserDeviceModel": {
        "name": "End-User-Device-Model",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "The device model used by the end user. Recommended for compliance."
      },
      "EndUserDeviceManufacturer": {
        "name": "End-User-Device-Manufacturer",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "The manufacturer of the device used by the end user. Recommended for compliance."
      },
      "EndUserIp": {
        "name": "End-User-Ip",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "The IP address of the end user. Recommended for compliance."
      },
      "EndUserOS": {
        "name": "End-User-OS",
        "in": "header",
        "schema": {
          "type": "string"
        },
        "description": "The Operating System of the end user. Recommended for compliance."
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 106,
      "1": 186,
      "2": 221,
      "3": 177,
      "4": 47,
      "5": 247,
      "6": 88,
      "7": 60,
      "8": 163,
      "9": 25,
      "10": 117,
      "11": 185
    }
  }
}
```