Skip to main content

Preview New PayPal Pay Link Email

POST 

/api/sales-orders/:salesOrderId/paypal-payment-links/email-preview

Returns the PayPal Payment Request email a pay link about to be created would be sent with. The amount and expiry date are the ones given; the link's address, which doesn't exist yet, appears as a placeholder.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token with permission to manage sales order payments.

Body fields:

  • amount (number, required, min 0.01) — the link amount.
  • expires_in_days (integer, optional, 1-365, default 30).
  • recipient_email (string, optional) — shown as to instead of the customer's email.
  • cc (array of strings, optional, max 10) — extra CC addresses; each must be a valid email.

Returns 422 when validation fails or the template is missing or turned off; 404 when the sales order does not exist.

Request​

Responses​

OK

Response Headers
    Content-Type