Menu
Update the status of a payment link
Update the status of a payment link
/paymentLinks/{linkId}Use it in a workflow
- Add a step and choose the Adyen connector.
- Pick the Update the status of a payment link action (under Payment links).
- Fill in the fields below, then reference the result from later steps as
{{updateTheStatusOfAPaymentLink.response.data}}.
Request
Path parameters
linkIdstringrequiredUnique identifier of the payment link.
Request body
Enter the body as JSON in the step's Body field.
statusstringrequiredStatus of the payment link. Possible values: * **expired**
One ofexpired
{
"status": "expired"
}
Response
Returns 200 with an object. Read it in later steps with {{updateTheStatusOfAPaymentLink.response.data.<field>}}.
allowedPaymentMethodsarray<string>List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `"allowedPaymentMethods":["ideal","applepay"]`
amountobjectcurrencystringrequiredThe three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes) of the amount.
valueinteger (int64)requiredThe numeric value of the amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
applicationInfoobjectadyenLibraryobject2 fieldsadyenPaymentSourceobject2 fieldsexternalPlatformobject3 fieldsmerchantApplicationobject2 fieldsmerchantDeviceobject3 fieldsshopperInteractionDeviceobject3 fieldsbillingAddressobjectcitystringrequiredThe name of the city. Maximum length: 3000 characters.
countrystringrequiredThe two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
houseNumberOrNamestringrequiredThe number or name of the house. Maximum length: 3000 characters.
postalCodestringrequiredA maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries.
stateOrProvincestringThe two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
streetstringrequiredThe name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`.
blockedPaymentMethodsarray<string>List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `"blockedPaymentMethods":["ideal","applepay"]`
captureDelayHoursinteger (int32)The delay between the authorisation and scheduled auto-capture, specified in hours.
countryCodestringThe shopper's two-letter country code.
dateOfBirthstring (date)The shopper's date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD
deliverAtstring (date-time)The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
deliveryAddressobjectcitystringrequiredThe name of the city. Maximum length: 3000 characters.
countrystringrequiredThe two-character ISO-3166-1 alpha-2 country code. For example, **US**. > If you don't know the country or are not collecting the country from the shopper, provide `country` as `ZZ`.
houseNumberOrNamestringrequiredThe number or name of the house. Maximum length: 3000 characters.
postalCodestringrequiredA maximum of five digits for an address in the US, or a maximum of ten characters for an address in all other countries.
stateOrProvincestringThe two-character ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in Canada. > Required for the US and Canada.
streetstringrequiredThe name of the street. Maximum length: 3000 characters. > The house number should not be included in this field; it should be separately provided via `houseNumberOrName`.
descriptionstringA short description visible on the payment page. Maximum length: 280 characters.
expiresAtstring (date-time)The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created.
fundOriginobjectbillingAddressobject6 fieldsshopperEmailstringThe email address of the person funding the money.
shopperNameobject2 fieldstelephoneNumberstringThe phone number of the person funding the money.
walletIdentifierstringThe unique identifier of the wallet where the funds are coming from.
fundRecipientobjectIBANstringThe IBAN of the bank account where the funds are being transferred to.
billingAddressobject6 fieldsshopperEmailstringThe email address of the shopper.
shopperNameobject2 fieldsshopperReferencestringRequired for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
storedPaymentMethodIdstringThis is the `recurringDetailReference` returned in the response when you created the token.
subMerchantobject5 fieldstelephoneNumberstringThe telephone number of the shopper.
walletIdentifierstringThe unique identifier for the wallet the funds are being transferred to. You can use the shopper reference or any other identifier.
walletOwnerTaxIdstringThe tax identifier of the person receiving the funds.
walletPurposestringThe purpose of a digital wallet transaction.
One ofidentifiedBoletotransferDifferentWallettransferOwnWallettransferSameWalletunidentifiedBoleto
idstringA unique identifier of the payment link.
installmentOptionsobjectA set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options.
lineItemsarray<object>Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Riverty.
amountExcludingTaxinteger (int64)Item amount excluding the tax, in [minor units](https://docs.adyen.com/development-resources/currency-codes/#minor-units).
amountIncludingTaxinteger (int64)Item amount including the tax, in [minor units](https://docs.adyen.com/development-resources/currency-codes/#minor-units).
brandstringBrand of the item.
colorstringColor of the item.
descriptionstringDescription of the line item.
idstringID of the line item.
imageUrlstringLink to the picture of the purchased item.
itemCategorystringItem category, used by the payment methods PayPal and Ratepay.
manufacturerstringManufacturer of the item.
marketplaceSellerIdstringMarketplace seller id.
productUrlstringLink to the purchased item.
quantityinteger (int64)Number of items.
receiverEmailstringEmail associated with the given product in the basket (usually in electronic gift cards).
returnShippingCompanystringShipping company handling the return of the item.
returnTrackingNumberstringTracking number for the return of the item.
returnTrackingUristringTracking URI for the return of the item.
riskCategorystringAn optional, free-text category for the item to be used in the risk evaluation. When provided, Protect uses this value to evaluate custom risk rules.
shippingCompanystringShipping company handling the delivery of the item.
shippingMethodstringShipping method used to deliver the item.
sizestringSize of the item.
skustringStock keeping unit.
taxAmountinteger (int64)Tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes/#minor-units).
taxPercentageinteger (int64)Tax percentage, represented as a [basis point](https://en.wikipedia.org/wiki/Basis_point) integer. For example: - **530** for 5.3% (five point three percent) - **2100** for 21% (twenty-one percent)
trackingNumberstringTracking number for the delivery of the item.
trackingUristringTracking URI for the delivery of the item.
upcstringUniversal Product Code.
manualCapturebooleanIndicates if the payment must be [captured manually](https://docs.adyen.com/online-payments/capture).
mccstringThe [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant.
merchantAccountstringThe merchant account identifier for which the payment link is created.
merchantOrderReferencestringThis reference allows linking multiple transactions to each other for reporting purposes (for example, order auth-rate). The reference should be unique per billing cycle.
metadataobjectMetadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error "177" occurs: "Metadata size exceeds limit" * Maximum 20 characters per key. Otherwise, error "178" occurs: "Metadata key size exceeds limit" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID.
platformChargebackLogicobjectbehaviorstringThe method of handling the chargeback. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**, **deductAccordingToSplitRatio**.
One ofdeductFromOneBalanceAccountdeductAccordingToSplitRatiodeductFromLiableAccount
costAllocationAccountstringThe unique identifier of the balance account to which the chargeback fees are booked. By default, the chargeback fees are booked to your liable balance account.
targetAccountstringThe unique identifier of the balance account against which the disputed amount is booked. Required if `behavior` is **deductFromOneBalanceAccount**.
recurringProcessingModelstringDefines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount.
One ofCardOnFileSubscriptionUnscheduledCardOnFile
referencestringA reference that is used to uniquely identify the payment in future communications about the payment status.
requiredShopperFieldsarray<string>List of fields that the shopper has to provide on the payment page before completing the payment. For more information, refer to [Provide shopper information](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#shopper-information). Possible values: * **billingAddress** – The address where to send the invoice. * **deliveryAddress** – The address where the purchased goods should be delivered. * **shopperEmail** – The shopper's email address. * **shopperName** – The shopper's full name. * **telephoneNumber** – The shopper's phone number.
returnUrlstringWebsite URL used for redirection after payment is completed. If provided, a **Continue** button will be shown on the payment page. If shoppers select the button, they are redirected to the specified URL.
reusablebooleanIndicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only.
riskDataobjectclientDatastringContains client-side data, like the device fingerprint, cookies, and specific browser settings.
customFieldsobjectAny custom fields used as part of the input to configured risk rules.
fraudOffsetinteger (int32)An integer value that is added to the normal fraud score. The value can be either positive or negative.
profileReferencestringThe risk profile to assign to this payment. When left empty, the merchant-level account's default risk profile will be applied.
shopperEmailstringThe shopper's email address.
shopperLocalestringThe language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language).
shopperNameobjectfirstNamestringrequiredThe first name.
lastNamestringrequiredThe last name.
shopperReferencestringYour reference to uniquely identify this shopper, for example user ID or account ID. The value is case-sensitive and must be at least three characters. > Your reference must not include personally identifiable information (PII) such as name or email address.
shopperStatementstringThe text to be shown on the shopper's bank statement. We recommend sending a maximum of 22 characters, otherwise banks might truncate the string. Allowed characters: **a-z**, **A-Z**, **0-9**, spaces, and special characters **. , ' _ - ? + * /**.
showRemovePaymentMethodButtonbooleanSet to **false** to hide the button that lets the shopper remove a stored payment method.
Default true
socialSecurityNumberstringThe shopper's social security number.
splitCardFundingSourcesbooleanBoolean value indicating whether the card payment method should be split into separate debit and credit options.
Default false
splitsarray<object>An array of objects specifying how to split a payment when using [Adyen for Platforms](https://docs.adyen.com/platforms/process-payments#providing-split-information), [Classic Platforms integration](https://docs.adyen.com/classic-platforms/processing-payments#providing-split-information), or [Issuing](https://docs.adyen.com/issuing/manage-funds#split).
accountstringThe unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked.
amountobject2 fieldsdescriptionstringYour description for the split item.
referencestringYour unique reference for the part of the payment booked to the specified `account`. This is required if `type` is **MarketPlace** ([Classic Platforms integration](https://docs.adyen.com/classic-platforms)) or **BalanceAccount** ([Balance Platform](https://docs.adyen.com/adyen-for-platforms-model)). For the other types, we also recommend providing a **unique** reference so you can reconcile the split and the associated payment in the transaction overview and in the reports.
typestringrequiredThe part of the payment you want to book to the specified `account`. Possible values for the [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): * **BalanceAccount**: Books part of the payment (specified in `amount`) to the specified `account`. * Transaction fees types that you can book to the specified `account`: * **AcquiringFees**: The aggregated amount of the interchange and scheme fees. * **PaymentFee**: The aggregated amount of all transaction fees. * **AdyenFees**: The aggregated amount of Adyen's commission and markup fees. * **AdyenCommission**: The transaction fees due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **AdyenMarkup**: The transaction fees due to Adyen under [Interchange ++ pricing](https://www.adyen.com/knowledge-hub/interchange-fees-explained). * **Interchange**: The fees paid to the issuer for each payment made with the card network. * **SchemeFee**: The fees paid to the card scheme for using their network. * **Commission**: Your platform's commission on the payment (specified in `amount`), booked to your liable balance account. * **Remainder**: The amount left over after a currency conversion, booked to the specified `account`. * **Surcharge**: The payment acceptance fee imposed by the card scheme or debit network provider, paid by your user's customer. * **TopUp**: Allows you and your users to top up balance accounts using direct debit, card payments, or other payment methods. * **VAT**: The value-added tax charged on the payment, booked to your platforms liable balance account. * **Default**: In very specific use cases, allows you to book the specified `amount` to the specified `account`. For more information, contact Adyen support. Possible values for the [Classic Platforms integration](https://docs.adyen.com/classic-platforms): **Commission**, **Default**, **MarketPlace**, **PaymentFee**, **VAT**.
One ofAcquiringFeesAdyenCommissionAdyenFeesAdyenMarkupBalanceAccountCommissionDefaultInterchangeMarketPlacePaymentFeeRemainderSchemeFeeSurchargeTipTopUpVAT
statusstringStatus of the payment link. Possible values: * **active**: The link can be used to make payments. * **expired**: The expiry date for the payment link has passed. Shoppers can no longer use the link to make payments. * **completed**: The shopper completed the payment. * **paymentPending**: The shopper is in the process of making the payment. Applies to payment methods with an asynchronous flow.
One ofactivecompletedexpiredpaidpaymentPending
storestringThe physical store, for which this payment is processed.
{
"amount": {
"currency": "string",
"value": 0
},
"id": "string",
"merchantAccount": "string",
"reference": "string",
"status": "active",
"url": "string",
"allowedPaymentMethods": [
"string"
],
"applicationInfo": {
"adyenLibrary": {
"name": "string",
"version": "string"
},
"adyenPaymentSource": {
"name": "string",
"version": "string"
},
"externalPlatform": {
"integrator": "string",
"name": "string",
"version": "string"
},
"merchantApplication": {
"name": "string",
"version": "string"
},
"merchantDevice": {
"os": "string",
"osVersion": "string",
"reference": "string"
},
"shopperInteractionDevice": {
"locale": "string",
"os": "string",
"osVersion": "string"
}
},
"billingAddress": {
"city": "string",
"country": "string",
"houseNumberOrName": "string",
"postalCode": "string",
"street": "string",
"stateOrProvince": "string"
},
"blockedPaymentMethods": [
"string"
],
"captureDelayHours": 0,
"countryCode": "string"
}
Need more? See the Adyen guide for connection setup and behaviour shared by every action.