https://api.payload.com/payment_links
Nested Objects
https://api.payload.com/payment_links/{id}/attachments
https://api.payload.com/payment_links/{id}/customer
https://api.payload.com/payment_links/{id}/invoice
https://api.payload.com/payment_links/{id}/notifications
https://api.payload.com/payment_links/{id}/processing
https://api.payload.com/payment_links/{id}/processing_settings
https://api.payload.com/payment_links/{id}/transaction
https://api.payload.com/payment_links/{id}/webhooks
Example
{
"id": "pay_1IXpXbxJr05oJursSaPQp5EUX",
"object": "payment_link",
"amount": 484.21,
"amount_editable": false,
"attachments": [],
"attrs": {},
"created_at": "2024-08-21 13:35:03",
"customer_fields": "required",
"customer_id": "acct_15HtfUYqUSl3gBrbk6xHgyKH7",
"description": "string",
"invoice_id": "inv_1uydJ6bmQ816e9xPgS3pjd4UP",
"modified_at": "2024-08-21 13:35:03",
"notifications": [],
"processing_id": "acct_hC9KmZYqbelIldN5uf7r4tDX",
"processing_settings_id": "ps_BN6SP7B3o4F8BbO4YjzCA4yt",
"qr_url": "string",
"status": "active",
"transaction_id": "txn_1RESTacHGOVYBdLLw41TZEuGq",
"type": "one_time",
"url": "string",
"webhooks": [],
"additional_datafields": [
{
"name": "string",
"section": "string",
"fields": [
{
"autocomplete_required": false,
"autocomplete_url": "string",
"confirm": true,
"details": "string",
"name": "string",
"optional": false,
"placeholder": "string",
"readonly": true,
"title": "string",
"type": "string",
"value": "string"
}
]
}
],
"billing_contact": {
"city": "string",
"email": "string",
"name": "string",
"phone": "string",
"postal_code": "postal_code",
"state_province": "string",
"street_address1": "string",
"street_address2": "string",
"website": "string"
},
"checkout_options": {
"auto_billing_toggle": true,
"bank_account_payments": false,
"billing_address": false,
"card_payments": true,
"default_payment_option": "card",
"enable_mobile_wallets": false,
"enable_plaid": true,
"keep_active_toggle": false,
"payment_method_preview": false,
"show_disclosure": false,
"payment": {
"status": "authorized"
}
}
}
| Attributes | Description |
|---|---|
idstring readonly |
Object ID |
objectstring readonly |
Value: payment_link |
amountnumber |
Total amount due |
amount_editablebool |
Allow the amount to be editable |
attachmentslist |
Array of associated Payment Link Attachment objects |
attrsjson |
Custom object attributes |
created_atdatetime readonly |
None |
customer_fieldsstring |
Values: required optional disabled |
customer_idid |
ID of the associated Customer Account object |
descriptionstring |
Description of the payment |
invoice_idid |
ID of the associated Invoice object |
modified_atdatetime readonly |
None |
notificationslist |
Array of associated Notification objects |
processing_idid required |
ID of the associated Processing Account object |
processing_settings_idid readonly: update |
ID of the processing settings object |
qr_urlstring readonly |
A qr code version of the URL |
statusstring readonly: method |
Values: active sent received opened bounced completed inactive expired |
transaction_idid readonly: method |
ID of the Transaction object |
typestring |
Arbitrary type classification |
urlstring readonly |
The URL to be used by client(s) to make payments |
webhookslist |
Array of associated Webhook objects |
| additional_datafields: | |
|---|---|
namestring |
Custom form name |
sectionstring |
Field section name |
| fields: | |
|---|---|
autocomplete_requiredbool |
Value must be in autocomplete list |
autocomplete_urlstring |
URL of autocomplete values. Expects json array of strings |
confirmbool |
Field requires confirm |
detailsstring |
Description of field |
namestring |
Custom form name |
optionalbool |
Specify field as optional |
placeholderstring |
Placeholder input value |
readonlybool |
Specify field as readonly |
titlestring |
Title for the field |
typestring |
Field type: text, date, checkbox, etc |
valuestring |
Default value |
| billing_contact: | |
|---|---|
citystring readonly |
City of the billing contact |
emailstring readonly |
Email of the billing contact |
namestring readonly |
Name of the billing contact |
phonestring readonly |
Phone number of the billing contact |
postal_codepostal_code readonly |
Zipcode of the billing contact |
state_provincestring readonly |
State of the billing contact |
street_address1string readonly |
Street address of the billing contact |
street_address2string readonly |
Street address 2 of the billing contact |
websitestring readonly |
Website of the billing contact |
| checkout_options: | |
|---|---|
auto_billing_togglebool |
Include a toggle to enroll in autopayments |
bank_account_paymentsbool |
Enable/disable card payments |
billing_addressbool |
Require billing address |
card_paymentsbool |
Enable/disable card payments |
default_payment_optionstring |
Select payment method option to select by default |
enable_mobile_walletsbool |
Enable Google/Apple Pay |
enable_plaidbool |
Enable linking bank accounts with Plaid |
keep_active_togglebool |
Include a toggle to remember a payment method |
payment_method_previewbool |
Display a preview of the payment method |
show_disclosurebool |
Include the standard checkout disclosure |
| payment: | |
|---|---|
statusstring |
Set transaction to be authorized/processed |