Skip to main content
POST
Create a drop-in link

Authorizations

Authorization
string
header
required

You can use an OAuth2 JWT bearer token in the Authorization header of your API requests for supported endpoints: Authorization: Bearer <YOUR_JWT_HERE>. These tokens are valid for 10 minutes and can be requested via the access token endpoint endpoint.

Headers

x-idempotency-key
string<uuid>
required

Idempotency key to be used. Sending again the same key would return the same result without re-executing the update.

Body

application/json
workspaceId
string<uuid>
required

Unique identifier of a workspace in Payrails.

amount
object
required
expiresAt
string<date-time>
required

Expiration timestamp in ISO 8601 format with timezone, for e.g. 2025-03-01T23:59:59Z. After this time the link is no longer valid.

workflowCode
string
default:payment-acceptance

Workflow code to use for the drop-in link execution.

allowPartialFulfillment
boolean
default:false

Whether the link can be paid in multiple partial payments.

description
string

Human-readable description displayed for the payment link.

merchantReference
string

Merchant reference for reconciliation, for e.g. an invoice number.

meta
object

Metadata for the context of an execution. Includes Payrails-defined structures for most common fields used in workflows, but can also be extended by merchant or provider-specific fields. For more information, visit our Meta Fields guide. See Meta for every field.

Response

Created.

id
string<uuid>
required

Unique identifier of the drop-in link.

workspaceId
string<uuid>
required

Unique identifier of a workspace in Payrails.

Public URL that can be shared with payers.

status
enum<string>
required

Current status of the drop-in link.

Available options:
enabled,
closed,
expired,
deleted
amount
object
required

Total amount configured for the payment link (decimal string value, ISO 3-letter currency code).

paidAmount
object
required

Total amount paid so far (decimal string value, ISO 3-letter currency code).

allowPartialFulfillment
boolean
required

Whether the link allows partial payments.

workflowCode
string
required

Workflow code used for executions created from this link.

expiresAt
string<date-time>
required

Expiration timestamp in ISO 8601 format with timezone, e.g. 2025-03-01T23:59:59Z.

createdAt
string<date-time>
required

Creation timestamp of the drop-in link.

executionId
string<uuid>

Workflow execution ID associated with the drop-in link, when one has been created.

description
string

Human-readable description of the payment link.

merchantReference
string

Merchant reference for reconciliation (commonly, the identifier of the order on the Merchant's system e.g. an invoice number).

meta
object

Metadata for the context of an execution. Includes Payrails-defined structures for most common fields used in workflows, but can also be extended by merchant or provider-specific fields. For more information, visit our Meta Fields guide. See Meta for every field.

Last modified on October 1, 2026