Disable invoice payment link (1.4.0)
curl --request POST \
--url https://api.example.com/v1/public/invoices/{uuid}/disable \
--header 'X-Signature: <api-key>'import requests
url = "https://api.example.com/v1/public/invoices/{uuid}/disable"
headers = {"X-Signature": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Signature': '<api-key>'}};
fetch('https://api.example.com/v1/public/invoices/{uuid}/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/public/invoices/{uuid}/disable",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/public/invoices/{uuid}/disable"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Signature", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/public/invoices/{uuid}/disable")
.header("X-Signature", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/public/invoices/{uuid}/disable")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Signature"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderId": "<string>",
"token": "<string>",
"payPath": "/invoice/abc123",
"assetCode": "USDT_TRC20",
"network": "TRON",
"address": "<string>",
"memo": "<string>",
"amount": "100.50",
"amountUsd": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"status": "pending",
"payUrl": "<string>",
"urlReturn": "<string>",
"urlSuccess": "<string>",
"urlCallback": "<string>",
"theme": "light",
"locale": "ru",
"receivedAmount": "<string>",
"txhash": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}public · invoices
Disable invoice payment link (1.4.0)
Отключает публичную ссылку счёта (страница → 410). Депозит продолжает мониториться до expiresAt: если клиент уже отправил средства, оплата всё равно будет учтена и вебхук придёт.
POST
/
v1
/
public
/
invoices
/
{uuid}
/
disable
Disable invoice payment link (1.4.0)
curl --request POST \
--url https://api.example.com/v1/public/invoices/{uuid}/disable \
--header 'X-Signature: <api-key>'import requests
url = "https://api.example.com/v1/public/invoices/{uuid}/disable"
headers = {"X-Signature": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-Signature': '<api-key>'}};
fetch('https://api.example.com/v1/public/invoices/{uuid}/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/v1/public/invoices/{uuid}/disable",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-Signature: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/public/invoices/{uuid}/disable"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Signature", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.example.com/v1/public/invoices/{uuid}/disable")
.header("X-Signature", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/public/invoices/{uuid}/disable")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Signature"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"orderId": "<string>",
"token": "<string>",
"payPath": "/invoice/abc123",
"assetCode": "USDT_TRC20",
"network": "TRON",
"address": "<string>",
"memo": "<string>",
"amount": "100.50",
"amountUsd": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"status": "pending",
"payUrl": "<string>",
"urlReturn": "<string>",
"urlSuccess": "<string>",
"urlCallback": "<string>",
"theme": "light",
"locale": "ru",
"receivedAmount": "<string>",
"txhash": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}Authorizations
HMAC-SHA256-Hex(timestamp + "." + raw_body, api_secret)
Path Parameters
Response
200 - application/json
Ваш order_id (или сгенерированный).
Публичный токен ссылки.
Путь страницы оплаты. Абсолютная ссылка: https://<ваш-домен-кошелька>{payPath}.
Example:
"/invoice/abc123"
Example:
"USDT_TRC20"
Example:
"TRON"
Адрес для оплаты.
Memo (для memo-based сетей).
Example:
"100.50"
USD-пег счёта (null = счёт выставлен в активе).
Available options:
pending, detected, paid, overpaid, underpaid, underpaid_waiting, refunded, expired 1.4.0: абсолютная ссылка на страницу оплаты (если оператор задал базовый адрес).
Available options:
light, dark, auto Available options:
ru, en Полученная сумма (после детекции tx).