---
title: "POST /source-of-payment/create"
method: POST
path: "/source-of-payment/create"
tags: ["SourcesOfPayment"]
---

# POST /source-of-payment/create

`POST /source-of-payment/create`

## Create source of payment

 Create a new payment source belonging to a companyProductId

## Query parameters

- `authorization` string, required

## Request body

- object
  - `name` string
  - `companyProductId` number
  - `slug` string
  - `clientCommentsAvailable` boolean
  - `active` boolean
  - `descriptionOnClientForm` boolean
  - `isPredefinedPayerDetails` boolean
  - `paidMethods` number[]
  - `clientDefinesReference` boolean
  - `customFields` object[]
    - `id` number, required
    - `name` string, required
    - `type` 'text' | 'number' | 'date' | 'email', required
    - `required` boolean, required
  - `description` string
  - `expiresAt` string
  - `fixedValue` number
  - `maxPayments` number
  - `payerDetails` object
    - `ref` string
    - `email` string
    - `phone` string
    - `fullName` string
    - `documentType` string
    - `documentNumber` string
  - `urlCallback` string
  - `hasFastCheckOut` boolean

## Response `200`

source of payment model instance

- object
  - `id` number — Source of payment id
  - `name` string — Source of payment name
  - `active` boolean — Source of payment active, is available
  - `slug` string — Source of payment slug
  - `companyProductId` number — Source of payment company product id
  - `createdAt` string — Source of payment created date
  - `fixedValue` number, nullable — Source of payment fixed value
  - `maxPayments` number, nullable — Source of maximum payments. If the value is 0, no limit is set, unlimited payments.
  - `expiresAt` string, nullable — Source of maximum payments. If the value is 0, no limit is set.
  - `url` string — Base URL of the payment to be use in web: https://app.loopay.com/@troop/d30/test-url-2 | in demo: https://demo.loopay.com/@troop/d30/test-url-2
  - `hasFastCheckOut` boolean — Source of payment has fast check out

---

[API](https://skmtc.dev/loopay/apis/loopay-api.md) · [All operations](https://skmtc.dev/loopay/apis/loopay-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/loopay/loopay-api/revisions/2f7c6537d598/schema)
