For the complete documentation index, see llms.txt. This page is also available as Markdown.

Check Order

Get order information

After creating the order you can make a "check-order" request to check if the order was paid or not. You will receive all payments details in a list.

curl --location --request POST 'https://sandbox.fcfpay.com/api/v2/check-order' \
--header 'Authorization: Bearer YOUR_SANDBOX_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "order_id": "Test123"
}'
var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer \"YOUR_SANDBOX_API_KEY\"");
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
  "order_id": "Test123"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://sandbox.fcfpay.com/api/v2/check-order", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Check Order

POST https://merchant.fcfpay.com/api/v2/check-order

Query Parameters

Name
Type
Description

order_id*

string

The Order ID you want to check

{
    "success": true,
    "data": {
        "order_id": "3x101",
        "user_id": "1",
        "txs": [],
        "order_amount": "10.00",
        "total_fiat_amount": "",
        "fiat_currency": "USD"
    },
    "message": "Successfully fetched."
}
{
    "success": true,
    "data": {
        "order_id": "Test123",
        "user_id": "1",
        "order_amount": "100.00",
        "total_fiat_amount": "32.92",
        "fiat_currency": "EUR",
        "txs": [
            {
                "deposited": true,
                "txid": "0x278859d371bd6084963db80ba066fc891fe006047b0dc5c4929efff35918052c",
                "confirm_blocks": 24,
                "status": "deposited",
                "amount_usd": "33.89",
                "fiat_amount": "32.92",
                "fiat_currency": "EUR",
                "amount": "150000000000000000",
                "currency": "BSC",
                "fees": "210000000000000",
                "decimal": 18,
                "fee_decimal": 18,
                "date": "Jul 05 2022 12:24:44"
            }
        ]
    },
    "message": "Successfully fetched."
}

Last updated