Skip to main content
POST
payments.payment-link.update

Authorizations

Authorization
string
header
required

API key: sk_live_…

Headers

Idempotency-Key
string
required

Required: this capability has an external effect.

Maximum string length: 255
Pramaan-Account
string

Optional. One of your account ids (GET /v1/accounts): run on that account, whatever your routing rules say. The response header X-Pramaan-Account names the account that ran.

Pramaan-End-User
string

Optional. Your own tag for your end user: a sticky: end_user rule keeps them on the account that first served them.

Maximum string length: 256
Pramaan-End-User-Group
string

Optional. Your end user's group, matched by rules with endUserGroup.

Maximum string length: 64

Body

application/json

paymentLinkId in your connected merchant account.

Required string length: 1 - 128
Pattern: ^[A-Za-z0-9_-]+$
reference
string

Your own unique reference.

Required string length: 1 - 128
expiresAt
string<date-time>

Date and time in ISO 8601 with a timezone.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
allowPartial
boolean

Accept partial payments.

notes
object

Your own reference notes, at most 15 entries of 256 characters each.

description
string

New description.

Required string length: 1 - 255
allowedMethods
enum<string>[]

Restrict collection to these payment method categories.

Required array length: 1 - 4 elements

Payment method category.

Available options:
card,
bank_debit,
bank_transfer,
wallet
lines
object[]

Replacement order lines, at most 50.

Required array length: 1 - 50 elements
billingAddress
object

Billing contact details forwarded to your payment account.

shippingAddress
object

Shipping contact details forwarded to your payment account.

minimumAmount
object

New smallest amount a customer may choose, in minor units.

archived
boolean

Whether to archive the link.

Response

The result

Payment link id in your connected merchant account.

status
enum<string>
required

Current payment link state.

Available options:
created,
partially_paid,
paid,
expired,
canceled,
unknown
amount
object

Amount requested in minor units; absent when the customer chooses the amount.

minimumAmount
object

Smallest amount a customer may choose, in minor units, when they choose.

amountPaid
object

Amount already collected.

reusable
boolean

Whether several customers can pay through the link.

archived
boolean

Whether the link is archived.

paidAt
string

When the link was paid, ISO 8601.

paymentUrl
string

Temporary platform link that opens the payment page; obtain a fresh link when it expires.

When the temporary platform link expires, ISO 8601.

expiresAt
string

When the payment request expires, ISO 8601.

reference
string

Your own reference.

description
string

What the payment is for.

allowPartial
boolean

Whether partial payments are accepted.

notes
object

Your own reference notes, at most 15 entries of 256 characters each.

createdAt
string

When the payment link was created, ISO 8601.