Create payment link
Create a payment link that allows an end user to make a payment on Moov's hosted payment link page.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/transfers.write scope.
curl -X POST "https://api.moov.io/accounts/{accountID}/payment-links" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2026.04.00" \
-d '{
"partnerAccountID": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"merchantPaymentMethodID": "4c4e7f8e-81f4-4f3d-8f6f-6f6e7f8e4c4e",
"amount": {
"currency": "USD",
"value": 2500
},
"display": {
"title": "Claim your payout",
"description": "Q3 rebate payout.",
"callToAction": "confirm"
},
"payout": {
"allowedMethods": [
"push-to-card",
"push-to-apple-pay",
"rtp-credit",
"ach-credit-standard"
],
"pushOptions": {
"allowedSpeeds": [
"instant",
"deferred"
],
"deferredBy": "24h"
},
"recipient": {
"email": "jordan@example.com"
}
}
}'import { Moov } from "@moovio/sdk";
const moov = new Moov({
security: {
username: "",
password: "",
},
});
async function run() {
const result = await moov.paymentLinks.create({
accountID: "cc1d04a8-03b1-4600-b675-e6180d574074",
createPaymentLink: {
partnerAccountID: "d290f1ee-6c54-4b01-90e6-d701748f0851",
merchantPaymentMethodID: "4c4e7f8e-81f4-4f3d-8f6f-6f6e7f8e4c4e",
amount: {
currency: "USD",
value: 2500,
},
display: {
title: "Claim your payout",
description: "Q3 rebate payout.",
callToAction: "confirm",
},
payout: {
allowedMethods: [
"push-to-card",
"push-to-apple-pay",
"rtp-credit",
"ach-credit-standard",
],
recipient: {
email: "jordan@example.com",
},
pushOptions: {
allowedSpeeds: [
"instant",
"deferred",
],
deferredBy: "24h",
},
},
},
});
console.log(result);
}
run();declare(strict_types=1);
require 'vendor/autoload.php';
use Moov\MoovPhp;
use Moov\MoovPhp\Models\Components;
$sdk = MoovPhp\Moov::builder()
->setSecurity(
new Components\Security(
username: '',
password: '',
)
)
->build();
$createPaymentLink = new Components\CreatePaymentLink(
partnerAccountID: 'd290f1ee-6c54-4b01-90e6-d701748f0851',
merchantPaymentMethodID: '4c4e7f8e-81f4-4f3d-8f6f-6f6e7f8e4c4e',
amount: new Components\Amount(
currency: 'USD',
value: 2500,
),
display: new Components\PaymentLinkDisplayOptions(
title: 'Claim your payout',
description: 'Q3 rebate payout.',
callToAction: Components\CallToAction::Confirm,
),
payout: new Components\PaymentLinkPayoutDetails(
allowedMethods: [
Components\DisbursementPaymentMethodType::PushToCard,
Components\DisbursementPaymentMethodType::PushToApplePay,
Components\DisbursementPaymentMethodType::RtpCredit,
Components\DisbursementPaymentMethodType::AchCreditStandard,
],
recipient: new Components\PayoutRecipient(
email: 'jordan@example.com',
),
pushOptions: new Components\PushOptions(
allowedSpeeds: [
Components\PushDeliverySpeed::Instant,
Components\PushDeliverySpeed::Deferred,
],
deferredBy: '24h',
),
),
);
$response = $sdk->paymentLinks->create(
accountID: 'cc1d04a8-03b1-4600-b675-e6180d574074',
createPaymentLink: $createPaymentLink
);
if ($response->paymentLink !== null) {
// handle response
}package hello.world;
import io.moov.sdk.Moov;
import io.moov.sdk.models.components.*;
import io.moov.sdk.models.errors.CreatePaymentLinkError;
import io.moov.sdk.models.errors.GenericError;
import io.moov.sdk.models.operations.CreatePaymentLinkResponse;
import java.lang.Exception;
import java.util.List;
public class Application {
public static void main(String[] args) throws GenericError, CreatePaymentLinkError, Exception {
Moov sdk = Moov.builder()
.security(Security.builder()
.username("")
.password("")
.build())
.build();
CreatePaymentLinkResponse res = sdk.paymentLinks().create()
.accountID("cc1d04a8-03b1-4600-b675-e6180d574074")
.createPaymentLink(CreatePaymentLink.builder()
.partnerAccountID("d290f1ee-6c54-4b01-90e6-d701748f0851")
.merchantPaymentMethodID("4c4e7f8e-81f4-4f3d-8f6f-6f6e7f8e4c4e")
.amount(Amount.builder()
.currency("USD")
.value(2500L)
.build())
.display(PaymentLinkDisplayOptions.builder()
.title("Claim your payout")
.description("Q3 rebate payout.")
.callToAction(CallToAction.CONFIRM)
.build())
.payout(PaymentLinkPayoutDetails.builder()
.allowedMethods(List.of(
DisbursementPaymentMethodType.PUSH_TO_CARD,
DisbursementPaymentMethodType.PUSH_TO_APPLE_PAY,
DisbursementPaymentMethodType.RTP_CREDIT,
DisbursementPaymentMethodType.ACH_CREDIT_STANDARD))
.recipient(PayoutRecipient.builder()
.email("jordan@example.com")
.build())
.pushOptions(PushOptions.builder()
.allowedSpeeds(List.of(
PushDeliverySpeed.INSTANT,
PushDeliverySpeed.DEFERRED))
.deferredBy("24h")
.build())
.build())
.build())
.call();
if (res.paymentLink().isPresent()) {
System.out.println(res.paymentLink().get());
}
}
}from moovio_sdk import Moov
from moovio_sdk.models import components
with Moov(
security=components.Security(
username="",
password="",
),
) as moov:
res = moov.payment_links.create(account_id="cc1d04a8-03b1-4600-b675-e6180d574074", partner_account_id="d290f1ee-6c54-4b01-90e6-d701748f0851", merchant_payment_method_id="4c4e7f8e-81f4-4f3d-8f6f-6f6e7f8e4c4e", amount={
"currency": "USD",
"value": 2500,
}, display={
"title": "Claim your payout",
"description": "Q3 rebate payout.",
"call_to_action": components.CallToAction.CONFIRM,
}, sales_tax_amount={
"currency": "USD",
"value": 1204,
}, payment={
"allowed_methods": [
components.CollectionPaymentMethodType.GOOGLE_PAY,
],
"card_details": {
"dynamic_descriptor": "WhlBdy *Yoga 11-12",
},
"ach_details": {
"company_entry_description": "Gym dues",
"originating_company_name": "Whole Body Fit",
},
}, payout={
"allowed_methods": [
components.DisbursementPaymentMethodType.PUSH_TO_CARD,
components.DisbursementPaymentMethodType.PUSH_TO_APPLE_PAY,
components.DisbursementPaymentMethodType.RTP_CREDIT,
components.DisbursementPaymentMethodType.ACH_CREDIT_STANDARD,
],
"recipient": {
"email": "jordan@example.com",
},
"push_options": {
"allowed_speeds": [
components.PushDeliverySpeed.INSTANT,
components.PushDeliverySpeed.DEFERRED,
],
"deferred_by": "24h",
},
}, line_items={
"items": [],
})
# Handle response
print(res)require 'moov_ruby'
Models = ::Moov::Models
s = ::Moov::Client.new(
security: Models::Components::Security.new(
username: '',
password: ''
)
)
res = s.payment_links.create(account_id: 'cc1d04a8-03b1-4600-b675-e6180d574074', create_payment_link: Models::Components::CreatePaymentLink.new(
partner_account_id: 'd290f1ee-6c54-4b01-90e6-d701748f0851',
merchant_payment_method_id: '4c4e7f8e-81f4-4f3d-8f6f-6f6e7f8e4c4e',
amount: Models::Components::Amount.new(
currency: 'USD',
value: 2500
),
display: Models::Components::PaymentLinkDisplayOptions.new(
title: 'Claim your payout',
description: 'Q3 rebate payout.',
call_to_action: Models::Components::CallToAction::CONFIRM
),
payout: Models::Components::PaymentLinkPayoutDetails.new(
allowed_methods: [
Models::Components::DisbursementPaymentMethodType::PUSH_TO_CARD,
Models::Components::DisbursementPaymentMethodType::PUSH_TO_APPLE_PAY,
Models::Components::DisbursementPaymentMethodType::RTP_CREDIT,
Models::Components::DisbursementPaymentMethodType::ACH_CREDIT_STANDARD,
],
recipient: Models::Components::PayoutRecipient.new(
email: 'jordan@example.com'
),
push_options: Models::Components::PushOptions.new(
allowed_speeds: [
Models::Components::PushDeliverySpeed::INSTANT,
Models::Components::PushDeliverySpeed::DEFERRED,
],
deferred_by: '24h'
)
)
))
unless res.payment_link.nil?
# handle response
endusing Moov.Sdk;
using Moov.Sdk.Models.Components;
using System.Collections.Generic;
var sdk = new MoovClient(security: new Security() {
Username = "",
Password = "",
});
var res = await sdk.PaymentLinks.CreateAsync(
accountID: "cc1d04a8-03b1-4600-b675-e6180d574074",
body: new CreatePaymentLink() {
PartnerAccountID = "d290f1ee-6c54-4b01-90e6-d701748f0851",
MerchantPaymentMethodID = "4c4e7f8e-81f4-4f3d-8f6f-6f6e7f8e4c4e",
Amount = new Amount() {
Currency = "USD",
Value = 2500,
},
Display = new PaymentLinkDisplayOptions() {
Title = "Claim your payout",
Description = "Q3 rebate payout.",
CallToAction = CallToAction.Confirm,
},
Payout = new PaymentLinkPayoutDetails() {
AllowedMethods = new List<DisbursementPaymentMethodType>() {
DisbursementPaymentMethodType.PushToCard,
DisbursementPaymentMethodType.PushToApplePay,
DisbursementPaymentMethodType.RtpCredit,
DisbursementPaymentMethodType.AchCreditStandard,
},
Recipient = new PayoutRecipient() {
Email = "jordan@example.com",
},
PushOptions = new PushOptions() {
AllowedSpeeds = new List<PushDeliverySpeed>() {
PushDeliverySpeed.Instant,
PushDeliverySpeed.Deferred,
},
DeferredBy = "24h",
},
},
}
);
// handle response{
"code": "3QLHtONjd5",
"paymentLinkType": "payment",
"mode": "sandbox",
"status": "active",
"partnerAccountID": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"merchantAccountID": "34233b72-780c-4e0e-8b08-cbbe1bc878f8",
"ownerAccountID": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"merchantPaymentMethodID": "4c4e7f8e-81f4-4f3d-8f6f-6f6e7f8e4c4e",
"link": "https://moov.link/p/3QLHtONjd5",
"amount": {
"currency": "USD",
"value": 10000
},
"uses": 0,
"display": {
"title": "Example Payment Link",
"description": "This is an example payment link.",
"callToAction": "pay"
},
"customer": {
"requirePhone": true,
"tippingEnabled": true
},
"payment": {
"allowedMethods": [
"card-payment",
"ach-debit-collect"
]
},
"updatedOn": "2025-01-09T17:09:13.33Z",
"createdOn": "2025-01-09T17:09:13.33Z"
}Response headers
x-request-id
string
required
{
"error": "string"
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
{
"error": "string"
}Response headers
x-request-id
string
required
{
"partnerAccountID": "string",
"merchantPaymentMethodID": "string",
"amount": {
"currency": "string",
"value": "string"
},
"salesTaxAmount": {
"currency": "string",
"value": "string"
},
"maxUses": "string",
"expiresOn": "string",
"display": {
"title": "string",
"description": "string",
"callToAction": "string"
},
"payment": {
"allowedMethods": "string",
"cardDetails": {
"dynamicDescriptor": "string"
},
"achDetails": {
"companyEntryDescription": "string",
"originatingCompanyName": "string"
},
"metadata": "string"
},
"payout": {
"allowedMethods": "string",
"recipient": {
"email": "string",
"phone": {
"number": "string",
"countryCode": "string"
}
},
"metadata": "string",
"pushOptions": {
"allowedSpeeds": "string",
"deferredBy": "string"
}
},
"lineItems": {
"items": {
"property1": {
"productID": "string",
"name": "string",
"basePrice": {
"currency": "string",
"valueDecimal": "string"
},
"options": {
"property1": {
"name": "string",
"group": "string",
"priceModifier": {
"currency": "string",
"valueDecimal": "string"
},
"quantity": "string"
},
"property2": {
"name": "string",
"group": "string",
"priceModifier": {
"currency": "string",
"valueDecimal": "string"
},
"quantity": "string"
}
},
"quantity": "string"
},
"property2": {
"productID": "string",
"name": "string",
"basePrice": {
"currency": "string",
"valueDecimal": "string"
},
"options": {
"property1": {
"name": "string",
"group": "string",
"priceModifier": {
"currency": "string",
"valueDecimal": "string"
},
"quantity": "string"
},
"property2": {
"name": "string",
"group": "string",
"priceModifier": {
"currency": "string",
"valueDecimal": "string"
},
"quantity": "string"
}
},
"quantity": "string"
}
}
}
}Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Response headers
x-request-id
string
required
Headers
X-Moov-Version
string
v2026.08.00 uses v2026.07.00.
A malformed value, such as 2022, returns a 404 response.
v2026.04.00
Path parameters
Body
Request to create a new payment link.
A payment link must include exactly one of payment, payout, or customAmountPayment details. For payout payment links,
maxUses will automatically be set to 1, as these are intended for a one-time disbursement
to a specific recipient.
amount
object
required
The fixed amount of the payment link.
In API versions before 2026.07.00, this was a required field.
In API version 2026.07.00 and beyond, this field is required for payment and payout links and must be
omitted for customAmountPayment links, where the payor chooses the amount.
display
object
required
merchantPaymentMethodID
string
required
lineItems
object
Show child attributes
lineItems
items
array<object>
required
Show child attributes
lineItems.items[]
imageIDs
array<string>
deprecated
options
array<object>
Show child attributes
lineItems.items[].options[]
group
string
<=100 characters
imageIDs
array<string>
deprecated
Optional list of images associated with this line item option.
This field is being deprecated in favor using the images associated with a productID and will soon be unsupported.
maxUses
integer<int64>
An optional limit on the number of times this payment link can be used.
For payouts, maxUses is always 1.
payment
object
Show child attributes
payment
allowedMethods
array<string>
required
apple-pay,
card-payment,
ach-debit-collect,
google-pay
payout
object
Show child attributes
payout
allowedMethods
array<string>
required
push-to-card,
rtp-credit,
ach-credit-same-day,
ach-credit-standard,
push-to-apple-pay,
push-to-google-pay
recipient
object
required
Specify the intended recipient of the payout.
Either email or phone must be specified, but not both.
This information will be used to authenticate the end user when they follow the payment link.
pushOptions
object
push-to-card and push-to-apple-pay payouts.
Show child attributes
payout.pushOptions
Response
amount
object
required
The fixed amount of the payment link.
In API versions before 2026.07.00, this was a required field.
In API version 2026.07.00 and beyond, this field is present for payment and payout links and omitted
for customAmountPayment links, where the payor chooses the amount.
display
object
required
merchantPaymentMethodID
string
required
lineItems
object
Show child attributes
lineItems
items
array<object>
required
Show child attributes
lineItems.items[]
options
array<object>
Show child attributes
lineItems.items[].options[]
group
string
<=100 characters
images
array<object>
Show child attributes
lineItems.items[].options[].images[]
maxUses
integer<int64>
An optional limit on the number of times this payment link can be used.
For payouts, maxUses is always 1.
payment
object
Show child attributes
payment
allowedMethods
array<string>
required
apple-pay,
card-payment,
ach-debit-collect,
google-pay
payout
object
Show child attributes
payout
allowedMethods
array<string>
required
push-to-card,
rtp-credit,
ach-credit-same-day,
ach-credit-standard,
push-to-apple-pay,
push-to-google-pay
recipient
object
required
Specify the intended recipient of the payout.
Either email or phone must be specified, but not both.
This information will be used to authenticate the end user when they follow the payment link.
pushOptions
object
push-to-card and push-to-apple-pay payouts.
Show child attributes
payout.pushOptions