PaymentLink

A link that a merchant can share with customers to collect payments for products and services. The payment link, which you can embed into a Salesforce app or send directly to a customer, directs the customer to a Pay Now payment page. The page can show a total amount owed or an itemized list or products, shipping and tax charges, and a total amount owed. The customer enters their contact and payment details, and submits their payment. The amounts are shown in the store’s currency.

Introduced in API version 58.0.

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

  • To access Salesforce Payments objects, you must have a Salesforce Payments license with the Payments permission enabled for your org. Salesforce Payments entities are available only in Lightning Experience.
  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Description:

    Payer account.

    This field is a relationship field.

  • Relationship name: Account

  • Relationship type: relationship

  • Refers to: Account

  • Type: currency
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Amount the payer owes.
  • Type: reference
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Introduced: API version 59.0
  • Description: The ID of the cart record.
  • Relationship name: Cart
  • Relationship type: relationship
  • Refers to: WebCart
  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Introduced: API version 63.0

  • Description:

    The collection plan associated with the payment link.

    This field is a relationship field. with Financial Services and Automotive Cloud.

  • Relationship name: CollectionPlan

  • Relationship type: relationship

  • Refers to: CollectionPlan

  • Type: textarea
  • Properties: Create, Nillable, Update
  • Introduced: API version 68.0
  • Description: The metadata that merchants specify when creating a payment link. This metadata is sent to payment gateways so merchants can use this data to reconcile transactions against their own invoices or internal IDs.
  • Type: textarea
  • Properties: Create, Nillable, Update
  • Description: Text on the Pay Now payment page that’s visible to your customers. This text can communicate any information you want.
  • Type: datetime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Introduced: API version 59.0
  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Introduced: API version 67.0
  • Description: Indicates if the payment link is for a business account (true) or not (false). The default value is false.
  • Default value: false
  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Introduced: API version 59.0

  • Relationship name: Opportunity

  • Relationship type: relationship

  • Refers to: Opportunity

  • Type: string
  • Properties: Create, Filter, Nillable, Sort, Update
  • Introduced: API version 63.0
  • Description: The origin of the payment, based on the information in the Payment Link record.
  • Type: string
  • Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
  • Description: Auto-generated number that identifies the payment link.
  • Type: reference

  • Properties: Create, Filter, Group, Sort, Update

  • Description:

    Reference to the PaymentMethodSet object, which determines what payment methods are shown to the payer.

    This field is a relationship field.

  • Relationship name: PaymentMethodSet

  • Relationship type: relationship

  • Refers to: MerchAccPaymentMethodSet

  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Introduced: API version 63.0

  • Description:

    The payment schedule item associated with the payment link.

    This field is a relationship field. with Financial Services and Automotive Cloud.

  • Relationship name: PaymentScheduleItem

  • Relationship type: relationship

  • Refers to: PaymentScheduleItem

  • Type: url
  • Properties: Filter, Group, Sort
  • Description: Unique URL of the Pay Now page. This URL IS auto-generated, and not editable.
  • Type: reference

  • Properties: Filter, Group, Nillable, Sort

  • Introduced: API version 60.0

  • Description:

    Reference to the QR code image included in the payment link record.

    This field is a relationship field.

  • Relationship name: QrCodeImage

  • Relationship type: relationship

  • Refers to: ContentVersion

  • Type: reference

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Introduced: API version 63.0

  • Relationship name: ServiceAppointment

  • Relationship type: relationship

  • Refers to: ServiceAppointment

  • Type: picklist

  • Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update

  • Description:

    Indicates whether the payment link is active and can be used.

    The default value is Active.

  • Possible values:

    • Active — Active (default)
    • Disabled — Disabled
  • Default value: Active

  • Type: currency
  • Properties: Create, Filter, Nillable, Sort, Update
  • Introduced: API version 59.0
  • Description: Amount of the tax for the purchase. This amount is shown on the Pay Now page.
  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Title of the Pay Now page, indicating what is being paid.
  • Type: picklist

  • Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort

  • Introduced: API version 59.0

  • Description:

    Indicates the type of payment link created, which the merchant can share with the customer to receive payment. The payment link also determines which Pay Now page is generated and what’s included on that page.

    The default value is PredefinedAmount.

  • Possible values:

    • CheckoutWithOrder — CheckoutWithOrder — includes the amount owed based on the products you select, lists the products purchased, and calculates tax using the billing address and selected shipping options. After a customer makes a payment, this link type creates an order record.
    • PredefinedAmount — PredefinedAmount (default) — shows only an amount due for products purchased. The merchant enters the amount due when creating the payment link.
    • WithProducts — WithProducts — Deprecated. New payment links can’t be created with this link type.
  • Default value: PredefinedAmount

  • Type: picklist

  • Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort

  • Introduced: API version 59.0

  • Description:

    Determines whether the payment link is used one time or multiple times before the configured expiration date and time.

    The default value is MultiUse.

  • Possible values:

    • MultiUse — MultiUse (default)
    • SingleUse — SingleUse
  • Default value: MultiUse

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version.