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 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 ISO-4217 currency code for the payment.
Guest buyer details provided inline. No buyer resource will be created on Gr4vy when used.
An array of cart items that represents the line items of a payment link.
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.
The date and time when this payment link expires. Defaults to 24 hours from creation.
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 intent of the payment link.
authorize
, capture
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 name of the merchant to display on the payment link.
100
The URL of the merchant terms and conditions to display on the payment link.
The URL of the merchant to display on the 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
The URL to redirect the buyer to after payment.
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.
Response
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
.
The buyer used for this transaction.
An array of cart items that represents the line items of a payment link.
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 date and time when this payment link was created.
A supported ISO-4217 currency code.
The date and time when this payment link expires.
A value that can be used to match the payment link against your own records.
1 - 200
The ID of a payment link.
The intent of the payment link.
authorize
, capture
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 name of the merchant to display on the payment link.
100
The URL of the merchant terms and conditions to display on the payment link.
The URL of the merchant to display on the 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 URL to redirect the buyer to after payment.
Shipping details for the payment link.
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.
active
, expired
The type of this resource. Is always payment_link
.
payment_link
The date and time when this payment link was created.
Was this page helpful?