Get payment link
Retrieve a payment link by code.
To access this endpoint using an access token
you'll need to specify the /accounts/{accountID}/transfers.read scope.
curl -X GET "https://api.moov.io/accounts/{accountID}/payment-links/{paymentLinkCode}" \
-H "Authorization: Bearer {token}" \
-H "X-Moov-Version: v2026.04.00"import { Moov } from "@moovio/sdk";
const moov = new Moov({
security: {
username: "",
password: "",
},
});
async function run() {
const result = await moov.paymentLinks.get({
accountID: "323f95b1-3798-4203-8a73-5c8668a9226e",
paymentLinkCode: "uc7ZYKrMhi",
});
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();
$response = $sdk->paymentLinks->get(
accountID: '323f95b1-3798-4203-8a73-5c8668a9226e',
paymentLinkCode: 'uc7ZYKrMhi'
);
if ($response->paymentLink !== null) {
// handle response
}package hello.world;
import io.moov.sdk.Moov;
import io.moov.sdk.models.components.Security;
import io.moov.sdk.models.operations.GetPaymentLinkResponse;
import java.lang.Exception;
public class Application {
public static void main(String[] args) throws Exception {
Moov sdk = Moov.builder()
.security(Security.builder()
.username("")
.password("")
.build())
.build();
GetPaymentLinkResponse res = sdk.paymentLinks().get()
.accountID("323f95b1-3798-4203-8a73-5c8668a9226e")
.paymentLinkCode("uc7ZYKrMhi")
.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.get(account_id="323f95b1-3798-4203-8a73-5c8668a9226e", payment_link_code="uc7ZYKrMhi")
# 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.get(account_id: '323f95b1-3798-4203-8a73-5c8668a9226e', payment_link_code: 'uc7ZYKrMhi')
unless res.payment_link.nil?
# handle response
endusing Moov.Sdk;
using Moov.Sdk.Models.Components;
var sdk = new MoovClient(security: new Security() {
Username = "",
Password = "",
});
var res = await sdk.PaymentLinks.GetAsync(
accountID: "323f95b1-3798-4203-8a73-5c8668a9226e",
paymentLinkCode: "uc7ZYKrMhi"
);
// 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
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
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
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