Kite
API ReferencePayment links

Create a quote for a payment link

POST
/api/payment-links/{id}/pay

Authorization

headerx-kite-signature<token>

Base64url Ed25519 signature of timestamp nonce METHOD path?query sha256(body), sent with x-kite-api-key-id, x-kite-timestamp and x-kite-nonce

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
chainId*string
Formatuuid
sourceTokenAddress*string
Match^0x[0-9a-fA-F]{40}$
customerId?string
Formatuuid
reference?string
Length1 <= length <= 255
meta?

Response Body

Response for status 201

application/json
  1. response
id*string
Formatuuid
appId*string
Formatuuid
chainId*string
Formatuuid
paymentLinkId*|
Formatuuid
customerId*|
Formatuuid
sourceTokenId*string
Formatuuid
targetTokenId*string
Formatuuid
sourceUsdAmount*string
sourceAmount*string
Match^[0-9]+$
Lengthlength <= 78
targetAmount*string
Match^[0-9]+$
Lengthlength <= 78
targetUsdAmount*string
rate*string
uniswapPoolFeeTier*integer|null
reference*string|null
meta*|null
expiresAt*string
Formatdate-time
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://testnet.usekite.site/api/payment-links/497f6eca-6276-4993-bfeb-53cbbbba6f08/pay' \  -H 'Content-Type: application/json' \  -d '{  "chainId": "9e7fb22a-9e5b-420e-8fd7-e3454fcfd5fd",  "sourceTokenAddress": "string"}'
Example Response201
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "appId": "28c365d5-df94-4a54-8217-3ce51d068868",  "chainId": "9e7fb22a-9e5b-420e-8fd7-e3454fcfd5fd",  "paymentLinkId": "65854dcb-f544-4848-b04d-cccad43b01a8",  "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",  "sourceTokenId": "dfe833b7-a2d6-4d29-ad49-5503dba9d33b",  "targetTokenId": "9e1bf350-d170-4c02-b746-e67c80e89e31",  "sourceUsdAmount": "string",  "sourceAmount": "string",  "targetAmount": "string",  "targetUsdAmount": "string",  "rate": "string",  "uniswapPoolFeeTier": 0,  "reference": "string",  "meta": {},  "expiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}