Payment Links
When you created a new product, sometimes you would like to have a special payment link for each of your customer with some params or special price, your asked us and yes now it's possible
Last updated
When you created a new product, sometimes you would like to have a special payment link for each of your customer with some params or special price, your asked us and yes now it's possible
Last updated
Authorization: Bearer •••
Example of payload
Field
Description
metadata
optional, is array of your arbitrary metadata in key:value format, for example order_id from integrations or other arbitrary key-values.
it can be received and processed, please see After Sell Webhook section
use_once
Boolean, optional, default: false
Possible values: true or false.
If you would like to limit your payment link to a one-time sale only, you can set it to true.
prices
required, array of prices in different currencies, one product can has one price in the same currency
prices.*.currency_id
required, int, id of currency, 2 is USD
prices.*.price
required, float or int, price of you product with cents for e.g 100.55 is $100.55
prices.*.is_discount_price
required, boolean, true of false, you can specify discount price to your product to better sells, so your price would be crossed out and customer will see next to it your discount_price amount
prices.*.discount_price
required_if, float or int. discount price of you product with cents for e.g 90.55 is $90.55. Discount price must be lower than price
Example of response
Feel free to create any amount of payment links which you needed, also once payment link is create it can't be edited or changed
payment_link is a link to checkout page with price and metadata which you've specified while created it.
Payment links are not editable, once you created it then it can't be changed
Also when you create a payment link then your product will be auto published and ready for selling, you can skip update product step if you create at least one payment link for a product.
You can combine default price and payment link prices to better experience.
For example you can PATCH your product with one price and it will be available by basic checkout with this price by link
And create any number of prices with payment links for your customer or group of customers:
...
When you create payment link with USD price, then price in EUR price currency will be created automatically, price in EUR can't be setup from your side because depends on our internal exchange rate.
Example of how it can be combined
If you don't need a concrete payment link anymore you can remove it
DELETE https://api.mel.store/api/mel-store/:productId/payment-links/:paymentLink
If you removed a link successfully you will get
Response 204, No Content
You also can combine payment links with additional fields of product, please refer to