---
updatedAt: 2026-04-21T16:06:54.000Z
agentTools:
  projectIndex: https://canopy-api.readme.io/llms.txt
---

# Create a payment for a line of credit

Creates a new payment for a line of credit.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Canopy Servicing Core API",
    "description": "\nCanopy allows you to easily manage credit, installment, or other more complex lending programs from a servicing and compliance perspective -\nwhether newly launched or migrated from existing systems. using canopy, you can track balances and transactions for each customer of your product, both in real-time and historically.\nYou can see how various policy and product changes would impact your customers, and readily generate compliance reports and minimize your risk with all real-time information always on hand.\nCanopy additionally surfaces information around all of your lending activity through its intuitive ui which provides a customer support interface as well as at-a-glance data needed for compliance and insights.\nSimply configure your product`s policies through our create product api endpoint, and then you can immediately begin adding customer accounts and relying on canopy for accurate servicing information.\n",
    "contact": {
      "name": "Canopy Support",
      "url": "https://www.canopyservicing.com/contact",
      "email": "support@canopyservicing.com"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "Contact sales to enable your sandbox",
      "description": "Your private sandbox environment"
    },
    {
      "url": "https://demo-api.us.canopyservicing.com",
      "description": "Demo environment"
    }
  ],
  "paths": {
    "/revolving/v1/accounts/{account_id}/line_of_credit/{line_of_credit_id}/payment": {
      "post": {
        "tags": [
          "Payments"
        ],
        "summary": "Create a payment for a line of credit",
        "description": "Creates a new payment for a line of credit.",
        "operationId": "PaymentCBV_create_payment_revolving_v1_accounts__account_id__line_of_credit__line_of_credit_id__payment_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "account_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Account Id"
            }
          },
          {
            "name": "line_of_credit_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "description": "ID of the Line of Credit",
              "title": "Line Of Credit Id"
            },
            "description": "ID of the Line of Credit"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePaymentSchema",
                "description": "Payment creation parameters"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns the created payment",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatePaymentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Your request is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrBadRequestSchema"
                }
              }
            }
          },
          "404": {
            "description": "Entity not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrNotFoundSchema"
                }
              }
            }
          },
          "409": {
            "description": "Entity already exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrConflictSchema"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "500": {
            "description": "A server error has occurred.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrServerErrorSchema"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CreatePaymentResponse": {
        "properties": {
          "account_id": {
            "type": "string",
            "title": "Account Id",
            "description": "The account id.",
            "hidden": false
          },
          "line_of_credit_id": {
            "type": "string",
            "title": "Line Of Credit Id",
            "description": "The line of credit id.",
            "hidden": false
          },
          "effective_at": {
            "type": "string",
            "title": "Effective At",
            "description": "The effective at date.",
            "hidden": false
          },
          "issued_at": {
            "type": "string",
            "title": "Issued At",
            "description": "The issued at date.",
            "hidden": false
          },
          "status": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "items": {},
                "type": "array"
              }
            ],
            "title": "Status",
            "description": "The status of the entity.",
            "hidden": false
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "items": {},
                "type": "array"
              }
            ],
            "title": "Metadata",
            "description": "The metadata of the entity.",
            "hidden": false
          },
          "payment_id": {
            "type": "string",
            "title": "Payment Id",
            "description": "The ID of the payment.",
            "hidden": false
          },
          "original_amount_cents": {
            "type": "integer",
            "title": "Original Amount Cents",
            "description": "The original amount in cents of the payment.",
            "hidden": false
          }
        },
        "type": "object",
        "required": [
          "account_id",
          "line_of_credit_id",
          "effective_at",
          "issued_at",
          "payment_id",
          "original_amount_cents"
        ],
        "title": "CreatePaymentResponse",
        "description": "Response schema for the create payment endpoint."
      },
      "CreatePaymentSchema": {
        "properties": {
          "payment_id": {
            "type": "string",
            "title": "Payment Id",
            "description": "The ID associated to be with the payment for future requests. If not provided on payment creation, Canopy will generate this field.",
            "examples": [
              "payment_1"
            ]
          },
          "amount_cents": {
            "type": "integer",
            "title": "Amount Cents",
            "description": "The amount in cents of the payment",
            "examples": [
              100000
            ],
            "hidden": false
          },
          "allocation": {
            "$ref": "#/components/schemas/OffsetAllocation",
            "description": "The type of allocation to apply to the payment",
            "examples": [
              "PRINCIPAL",
              "INTEREST",
              "FEES"
            ]
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "items": {},
                "type": "array"
              }
            ],
            "maxLength": 100,
            "title": "Metadata",
            "description": "Metadata that can be associated with the payment"
          },
          "settlement_status": {
            "type": "string",
            "enum": [
              "PENDING",
              "SETTLED"
            ],
            "title": "Settlement Status",
            "description": "The settlement status of the payment",
            "default": "SETTLED",
            "examples": [
              "PENDING",
              "SETTLED"
            ]
          }
        },
        "type": "object",
        "required": [
          "amount_cents"
        ],
        "title": "CreatePaymentSchema"
      },
      "ErrBadRequestSchema": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "description": "The error message",
            "examples": [
              "Your request is invalid."
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ErrBadRequestSchema"
      },
      "ErrConflictSchema": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "description": "The error message",
            "examples": [
              "Entity already exists."
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ErrConflictSchema"
      },
      "ErrNotFoundSchema": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "description": "The error message",
            "examples": [
              "Entity not found."
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ErrNotFoundSchema"
      },
      "ErrServerErrorSchema": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message",
            "description": "The error message",
            "examples": [
              "A server error has occurred."
            ]
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ErrServerErrorSchema"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "OffsetAllocation": {
        "type": "string",
        "enum": [
          "PRINCIPAL",
          "INTEREST",
          "FEES"
        ],
        "title": "OffsetAllocation"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Payments",
      "description": "Manage payments on a line of credit for your customers in Canopy."
    }
  ]
}
```