Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 2.37 KB

create-payment-link-request.md

File metadata and controls

35 lines (27 loc) · 2.37 KB

Create Payment Link Request

Structure

CreatePaymentLinkRequest

Fields

Name Type Tags Description
idempotencyKey string | undefined Optional A unique string that identifies this CreatePaymentLinkRequest request.
If you do not provide a unique string (or provide an empty string as the value),
the endpoint treats each request as independent.

For more information, see Idempotency.
Constraints: Maximum Length: 192
description string | undefined Optional A description of the payment link. You provide this optional description that is useful in your
application context. It is not used anywhere.
Constraints: Maximum Length: 4096
quickPay QuickPay | undefined Optional Describes an ad hoc item and price to generate a quick pay checkout link.
For more information,
see Quick Pay Checkout.
order Order | undefined Optional Contains all information related to a single order to process with Square,
including line items that specify the products to purchase. Order objects also
include information about any associated tenders, refunds, and returns.

All Connect V2 Transactions have all been converted to Orders including all associated
itemization data.
checkoutOptions CheckoutOptions | undefined Optional -
prePopulatedData PrePopulatedData | undefined Optional Describes buyer data to prepopulate in the payment form.
For more information,
see Optional Checkout Configurations.
paymentNote string | undefined Optional A note for the payment. After processing the payment, Square adds this note to the resulting Payment.
Constraints: Maximum Length: 500

Example (as JSON)

{
  "idempotency_key": "cd9e25dc-d9f2-4430-aedb-61605070e95f",
  "quick_pay": {
    "location_id": "A9Y43N9ABXZBP",
    "name": "Auto Detailing",
    "price_money": {
      "amount": 10000,
      "currency": "USD"
    }
  }
}