Skip to main content
POST
/
api
/
v1
/
invoice
/
from_app
Create invoice from Telegram Mini App
curl --request POST \
  --url https://api.paylora.org/api/v1/invoice/from_app \
  --header 'Content-Type: application/json' \
  --data '
{
  "customerInitData": "some_init_data_string_from_telegram",
  "amount": 100,
  "tokenAddress": "0x203fC64C12a51C48755Cf77CB63c2F0618657cFD",
  "userUuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
  "network": "ARB_SEPOLIA",
  "hash": "computed_hash_string",
  "channelUuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
  "messageId": "12345"
}
'
{
  "success": true,
  "data": {
    "uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "user_uuid": "a1b2c3d4-e5f6-7890-1234-567890abcdef",
    "status": "created",
    "amount": 100,
    "fee_amount": 5,
    "token_address": "0xAbC123...",
    "contract_address": "0xDeF456...",
    "network": "ethereum",
    "client": "0xDeF456...",
    "hash": "0xHash123...",
    "signature": "0xHash123...",
    "message_id": "12345",
    "channel_uuid": "12345",
    "customer_id": "123456789",
    "chain_id": 11155111,
    "url": "app.paylora.org/checkout=token"
  }
}

Body

application/json
customerInitData
string
required

Telegram Mini App initData for customer verification

Example:

"some_init_data_string_from_telegram"

amount
number
required

The amount of the invoice

Example:

100

tokenAddress
string
required

The token address for the invoice

Example:

"0x203fC64C12a51C48755Cf77CB63c2F0618657cFD"

userUuid
string
required

The UUID of the user

Example:

"a1b2c3d4-e5f6-7890-1234-567890abcdef"

network
string
required

The network of the transaction

Example:

"ARB_SEPOLIA"

hash
string
required

Hash of the payment data for integrity verification

Example:

"computed_hash_string"

channelUuid
string

The UUID of the channel

Example:

"a1b2c3d4-e5f6-7890-1234-567890abcdef"

messageId
string

The message ID associated with the invoice

Example:

"12345"

Response

Resource model

success
boolean
required

Indicates if the request was successful

Example:

true

data
object
required

The data returned by the API