Skip to main content
POST
Create a new payment link

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a new payment link

name
string
required
Example:

"INV-123"

customerId
string
required
requestedAmountCents
integer<int64>
Example:

12055

dueDate
string<date>
feePassthroughPercent
integer

Percent (0-100) of the card processing fee passed through to the payer for this payment link; the remainder is absorbed by your organization. Omit to inherit the customer/organization setting.

Required range: 0 <= x <= 100
Example:

100

creditCardEnabled
boolean

Whether the payer can pay this link by credit card. Set to false to disable card payments for this link. Omit to inherit the customer setting, then the organization setting. A link that would accept neither card nor ACH is refused.

Example:

true

achEnabled
boolean

Whether the payer can pay this link by ACH/bank transfer. Set to false to disable ACH payments for this link. Omit to inherit the organization setting. A link that would accept neither card nor ACH is refused.

Example:

true

amountEditable
boolean

Whether the payer can edit the payment amount at checkout. Omit to inherit the organization default.

Example:

false

memo
string

A note shown to your customer on the payment page and in the invoice email. If your organization has an invoice memo template, it is placed before this text.

Maximum string length: 1000
Example:

"PO 4471, net 30"

Response

Successful operation

id
string
required
Example:

"clkqzo2y1000cx9tfohoiodq1"

requestedAmountCents
integer<int64>
required

The total the link asks for, including its live debit memos.

Example:

12055

name
string
required
Example:

"INV-123"

status
string
required
Example:

"ACTIVE"

payments
object[]
required
externalPayments
object[]
required

Live payments recorded against this link outside Nickel (a mailed check, cash). Voided records are omitted. They count toward completedAmountCents alongside payments.

debitMemos
object[]
required

Live amounts added to this link after it was issued (an NSF fee, a finance charge), oldest first. Voided memos are omitted. They are included in requestedAmountCents.

debitMemoAmountCents
integer<int64>
required

Sum of debitMemos. requestedAmountCents minus this is the link's own amount.

Example:

0

customerId
string
required

ID of the customer the payment link was created for.

Example:

"cmr9zja1s0000sf028pvdtpsh"

url
string<uri>
required
Example:

"https://nickel.nickelpayments.com/pay/Ahndhz"

completedAmountCents
integer<int64>
required
dueDate
string<date> | null
feePassthroughPercent
integer | null

Percent (0-100) of the card processing fee passed through to the payer for this payment link. null means no per-link override (the customer/organization setting applies).

Example:

100

creditCardEnabled
boolean | null

Whether the payer can pay this link by credit card. null means no per-link override (the customer setting applies, then the organization setting).

Example:

true

achEnabled
boolean | null

Whether the payer can pay this link by ACH/bank transfer. null means no per-link override (the organization setting applies).

Example:

true

amountEditable
boolean

Whether the payer can edit the payment amount at checkout.

Example:

false

memo
string | null

The note shown to your customer. null when there is none.

Example:

"PO 4471, net 30"