Create payment link
Creates a new payment link.
This endpoint requires the payment-links.write
scope.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Request body for creating a new payment link.
The amount to request payment for.
1 < x < 99999999
The ISO-4217 currency code for the payment.
The 2-letter ISO code of the country of the transaction. This is used to filter the payment services that is used to process the transaction.
Guest buyer details provided inline. No buyer resource will be created on Gr4vy when used.
The date and time when this payment link expires. Defaults to 24 hours from creation.
Allows for passing optional configuration per connection to take advantage of connection specific features. When provided, the data is only passed to the target connection type to prevent sharing configuration across connections.
Please note that each of the keys this object are in kebab-case, for
example cybersource-anti-fraud
as they represent the ID of the
connector. All the other keys will be snake case, for example
merchant_defined_data
or camel case to match an external API that the
connector uses.
A value that can be used to match the payment link against your own records. This will also be applied to any transaction.
1 - 200
The statement descriptor is the text to be shown on the buyer's statements.
The specific usage of these fields will depend on the capabilities of the underlying PSP and bank. As a typical example, 'name' and 'description' could be concatenated using '* ' as a separator, and then the resulting descriptor would be truncated to 22 characters by the issuing bank.
The locale used to translate text within the payment link.
en
, en-GB
, es
, pt
, pt-BR
The name of the merchant to display on the payment link.
100
The URL of the merchant to display on the payment link.
The URL of the merchant banner to display on the payment link.
The color code of the merchant to display on the payment link.
The message to display on the payment link.
255
The URL of the merchant terms and conditions to display on the payment link.
The URL of the merchant favicon icon.
The intent of the payment link.
authorize
, capture
The URL to redirect the buyer to after payment.
An array of cart items that represents the line items of a payment link.
Any additional information about the payment link that you would like to store as key-value pairs. This data is passed to payment service providers that support it.
The source of the payment link.
ecommerce
, moto
, recurring
, installment
, card_on_file
Response
The ID of a payment link.
The type of this resource. Is always payment_link
.
payment_link
The monetary amount for this payment link, in the smallest
currency unit for the given currency, for example 1299
cents to create
an authorization for $12.99
.
A supported ISO-4217 currency code.
The date and time when this payment link was created.
The date and time when this payment link was created.
The date and time when this payment link expires.
active
, expired
A value that can be used to match the payment link against your own records.
1 - 200
The statement descriptor is the text to be shown on the buyer's statements.
The specific usage of these fields will depend on the capabilities of the underlying PSP and bank. As a typical example, 'name' and 'description' could be concatenated using '* ' as a separator, and then the resulting descriptor would be truncated to 22 characters by the issuing bank.
The locale used to translate text within the payment link.
en
, en-GB
, es
, pt
, pt-BR
The name of the merchant to display on the payment link.
100
The URL of the merchant to display on the payment link.
The URL of the merchant banner to display on the payment link.
The color code of the merchant to display on the payment link.
The message to display on the payment link.
255
The URL of the merchant terms and conditions to display on the payment link.
The URL of the merchant favicon icon.
The 2-letter ISO code of the country of the transaction. This is used to filter the payment services that is used to process the transaction.
The intent of the payment link.
authorize
, capture
The URL to redirect the buyer to after payment.
An array of cart items that represents the line items of a payment link.
Any additional information about the payment link that you would like to store as key-value pairs. This data is passed to payment service providers that support it.
The source of the payment link. Defaults to ecommerce
.
ecommerce
, moto
, recurring
, installment
, card_on_file
The buyer used for this transaction.
Shipping details for the payment link.
Was this page helpful?