Payment Links

Authentication: endpoints listed in this page require header authentication with a service token with the payment-links:admin scope.

GET https://payment-links.powens.com/api/payment-links

Headers

Name
Type
Description

Authorization*

String

Bearer Authorization header.

Response body: array of PaymentLink object

POST https://payment-links.powens.com/api/payments-links

Request body: PaymentLinkRequest object

Headers

Name
Type
Description

Authorization*

String

Bearer Authorization header.

GET https://payment-links.powens.com/api/payment-links/{id}

Headers

Name
Type
Description

Authorization*

String

Bearer Authorization header.

POST https://payment-links.powens.com/api/payment-links/{id}:revoke

Headers

Name
Type
Description

Authorization*

String

Bearer Authorization header.

Request payloads

PaymentLinkRequest object

Property
Type
Presence
Description

reference_id

String

Optional

The end-to-end identifier to provide the underlying payment with.

amount

Number

Required

The amount of the currency to provide when creating the payment.

currency

String

Required

The currency code of the payment amount, a per ISO 4217.

label

String

Required

The unstructured remittance information to provide the created payment.

execution_date _type

String

Required

Either "first_open_day" or "instant".

beneficiary

Required

The beneficiary for the payment link.

beneficiary _identity

Required

The beneficiary's identity.

payer

Required

The payer for the payment link, if available.

payer_identity

Required

The payer's identity.

operator _identity

Optional

The operator's identity.

redirect

Boolean

Required

Whether to redirect at the end of the flow or not.

redirect_uri

String or null

Conditional

The URL to redirect the end user to at the end of the payment link validation. Must be provided if redirect was set to true.

redirect_state

String or null

Conditional

The optional state with which to redirect the end user at the end of the payment link validation. Must be provided if redirect was set to true.

Resources

Property
Type
Description

id

String

The UUID of the created payment link.

reference_id

String

The end-to-end identifier to provide the underlying payment with.

amount

Number

The amount of the currency to provide when creating the payment.

currency

String

The currency code of the payment amount, a per ISO 4217.

label

String

The unstructured remittance information to provide the created payment.

execution_date _type

String

beneficiary

The beneficiary for the payment link.

beneficiary _identity

The beneficiary's identity.

payer

The payer for the payment link, if available.

payer_identity

The payer's identity.

operator _identity

The operator's identity.

redirect

Boolean

Whether to redirect at the end of the flow.

redirect_uri

String

The URL to redirect the end user to at the end of the payment link validation. If redirect is set to false, this property may be set to an empty string.

redirect_state

String

The optional state with which to redirect the end user at the end of the payment link validation. If redirect is set to false, this property may be set to an empty string.

last_payment_id

Integer or null

The identifier of the created payment on the domain.

url

String

The URL for the payment link, to transmit to the end user.

revoked_at

Datetime or null

The date and time at which the payment link has been or should be revoked, if relevant.

attempt_state

State of the latest payment attempt. May be set to "unavailable" if either no payment has been created yet (payment_id is null), or the Payments API is currently unavailable.

Last updated