Payment Links
Last updated
Last updated
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
Name | Type | Description |
---|---|---|
Response body: array of PaymentLink object
POST
https://payment-links.powens.com/api/payments-links
Request body: PaymentLinkRequest object
Name | Type | Description |
---|---|---|
Response body: PaymentLink object
GET
https://payment-links.powens.com/api/payment-links/{id}
Response body: PaymentLink object
POST
https://payment-links.powens.com/api/payment-links/{id}:revoke
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Property | Type | Presence | Description |
---|---|---|---|
Property | Type | Description |
---|---|---|
Authorization*
String
Bearer Authorization header.
Authorization*
String
Bearer Authorization header.
Authorization*
String
Bearer Authorization header.
Authorization*
String
Bearer Authorization header.
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
Either "first_open_day"
or "instant"
.
beneficiary
PaymentAccount object
The beneficiary for the payment link.
beneficiary
_identity
Identity object
The beneficiary's identity.
payer
PaymentAccount object or null
The payer for the payment link, if available.
payer_identity
Identity object
The payer's identity.
operator
_identity
Identity object
The operator's identity.
redirect
Boolean
Whether to redirect at the end of the flow or not.
redirect_uri
String or null
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
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
.
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
Either "first_open_day"
or "instant"
, as defined in ExecutionDate values.
beneficiary
PaymentAccount object
The beneficiary for the payment link.
beneficiary
_identity
Identity object
The beneficiary's identity.
payer
PaymentAccount object or null
The payer for the payment link, if available.
payer_identity
Identity object
The payer's identity.
operator
_identity
Identity object
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
PaymentState value, "unavailable"
or null
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.