EN
English
  • Getting Started
    • Documentation Overview
    • How the Integration Works
    • Integration Testing
    • How to Get API Keys
    • SDK for Work with API
    • Integration of Icons and Buttons
    • Cryptocurrency payment instruction
    • Support and FAQ
  • API REFERENCE V2
    • Request Authorization
    • Invoice Creation
    • Invoice Cancellation
    • Invoice List
    • Invoice Information
    • Balance
    • Statistics
    • Static Wallet
    • Funds Withdrawal
    • Automatic POSTBACK
  • API REFERENCE V1 (OLD)
    • Request Authorization
    • Invoice Creation
    • Invoice Status Check
    • Automatic POSTBACK
  • CMS Plugins
    • List of CMS Plugins
      • WooCommerce
      • OpenCart
      • Shopify
      • Tilda
      • GetCourse
      • XenForo 2
      • PrestaShop
      • Drupal
      • WHMCS
  • Buttons and forms
    • HTML-widget
      • HTML-form
      • HTML-button
  • CryptoCloud Website
  • Help Center
  • Brand Guide
Powered by GitBook
On this page

Was this helpful?

  1. API REFERENCE V1 (OLD)

Invoice Status Check

To get information about all payments on an account, send a GET request to the following URL:

GET https://api.cryptocloud.plus/v1/invoice/info

Request Body

Name
Type
Description

uuid*

string

Unique invoice identifier

{
  "status": "success",
  "status_invoice": "paid"
}

Request examples

These examples show how you can execute a request to check the status of an invoice using Python and JavaScript. Note that you need to provide your API key in the Authorization header to authorize the request successfully.

import requests

url = "https://api.cryptocloud.plus/v1/invoice/info"
headers = {
    "Authorization": "Token <API KEY>"
}

response = requests.get(url, headers=headers)

if response.status_code == 200:
    print("Success:", response.json())
else:
    print("Fail:", response.status_code, response.text)
const url = 'https://api.cryptocloud.plus/v1/invoice/info';
const headers = new Headers({
    'Authorization': 'Token <API KEY>'
});

fetch(url, { method: 'GET', headers })
    .then(response => {
        if (response.ok) {
            return response.json();
        } else {
            return Promise.reject('Error');
        }
    })
    .then(data => {
        console.log('Success:', data);
    })
    .catch(error => {
        console.error('Fail:', error);
    });
PreviousInvoice CreationNextAutomatic POSTBACK

Last updated 1 year ago

Was this helpful?