Skip to content

Create a payment link

POSThttps://api.gravv.xyz/v1/payment-links

Creates a new payment link that can be shared with a payer to collect a crypto payment.

On success, the API returns a shareable link_url along with wallet addresses for each network specified in supported_networks. The payer visits the link and completes the payment on their preferred network.

Supported networks

Pass one or more of the following values in supported_networks:

  • stellar

  • ethereum

  • polygon

  • avalanche

  • solana

A wallet address is automatically provisioned for each requested network and returned in the wallet_addresses field of the response.

Body Params

  • payer_namestringrequired

    Name of the person who will make the payment.

  • payer_emailstring

    Email address of the person who will make the payment.

  • settlement_account_idstringrequired

    ID of the account where settled funds will be deposited after a successful payment.

  • supported_networksarray of stringrequired

    List of blockchain networks to accept payments on. Wallet addresses for each specified network are automatically provisioned and included in the response.

  • customer_idstringrequired

    ID of the customer this payment link is created for.

Headers

  • Idempotency-Keystring

    A unique key to prevent duplicate requests.

Responses

Language
curl --request POST \
--url 'https://api.gravv.xyz/v1/payment-links' \
--header 'Api-Key: <Api Key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"payer_name": "payer2",
"payer_email": "payer@example.com",
"settlement_account_id": "b3e3c9fd-77ed-4d14-9c45-68db60d17d3a",
"supported_networks": [
"stellar",
"ethereum"
],
"customer_id": "5e713759-3416-44f5-b797-efd0299aefc1"
}'
{
"data": {
"id": "b905cc64-0f90-4de0-a77c-b183de86b248",
"created_at": "2026-05-07T15:39:02.639185821Z",
"updated_at": "2026-05-07T15:39:02.639186702Z",
"customer_id": "5e713759-3416-44f5-b797-efd0299aefc1",
"tenant_id": "dfa96ede-fc13-43cf-8328-8b910d1cd1d2",
"payer_name": "payer2",
"payer_email": "payer@example.com",
"payee_name": "Rose",
"settlement_account_id": "b3e3c9fd-77ed-4d14-9c45-68db60d17d3a",
"supported_networks": [
"stellar",
"ethereum"
],
"wallet_addresses": {
"ethereum": "0x119827bef8a3030cd401478fa7b33ac94d3c2572",
"stellar": "GD2WTFAKQJA4BRQRNY3RWGWOFMK52WXZWV3CPCHZV2SJP2QGNBIL6TXQ"
},
"link_url": "https://stables.gravv.xyz/b905cc64-0f90-4de0-a77c-b183de86b248",
"status": "active"
},
"error": null
}