Kite
API ReferencePayment links

Create a payment link

POST
/api/payment-links

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

Request Body

application/json
  1. body
title*string
Length1 <= length <= 200
currency*string
Length2 <= length <= 10
amount*string
Match^(?:0|[1-9][0-9]{0,19})(?:\.[0-9]{1,18})?$
usage?string
Value in"OneTime""Reusable"
lineItems?array<>
reference?string
Length1 <= length <= 255
meta?
returnUrl?|
Match^https?://
Formaturi
Lengthlength <= 2048

Response Body

Response for status 201

application/json
  1. response
id*string
Formatuuid
appId*string
Formatuuid
title*string
currency*string
amount*string
usage*string
Value in"OneTime""Reusable"
lineItems*array<>|null
reference*string|null
meta*|null
returnUrl*string|null
createdAt*string
Formatdate-time
updatedAt*string
Formatdate-time
Example Request
curl -X POST 'https://testnet.usekite.site/api/payment-links' \  -H 'Content-Type: application/json' \  -d '{  "title": "string",  "currency": "string",  "amount": "string"}'
Example Response201
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "appId": "28c365d5-df94-4a54-8217-3ce51d068868",  "title": "string",  "currency": "string",  "amount": "string",  "usage": "OneTime",  "lineItems": [    {      "image": "string",      "name": "string",      "price": "string",      "quantity": 0    }  ],  "reference": "string",  "meta": {},  "returnUrl": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}