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. as a response, you will get the same data as in the "deposit-callback" webhook.

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

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

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

fetch("https://merchant.fcfpay.com/api/v1/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/v1/check-order

Query Parameters

Name
Type
Description

order_id*

string

The Order ID you want to check

{
    "success": true,
    "data": {
        "deposited": true,
        "order_id": "152",
        "user_id": "",
        "txid": "0x0437fda31de9a4e998cc8a1c00e1c6c605327401ce7edeb6e86c752f0be76ac3",
        "unique_id": "0x0437fda31de9a4e998cc8a1c00e1c6c605327401ce7edeb6e86c752f0be76ac3_0",
        "confirm_blocks": 27,
        "fiat_amount": "10.00",
        "fiat_currency": "USD",
        "amount": "25580000000000000",
        "currency": "BSC",
        "fees": "210000000000000",
        "decimal": 18,
        "fee_decimal": 18
    },
    "message": "Successfully fetched."
}
{
    "success": true,
    "data": {
        "deposited": false,
        "order_id": "68",
        "user_id": "",
        "txid": "",
        "unique_id": "",
        "confirm_blocks": "",
        "fiat_amount": "",
        "fiat_currency": "CAD",
        "amount": "",
        "currency": "",
        "fees": "",
        "decimal": "",
        "fee_decimal": ""
    },
    "message": "Successfully fetched."
}

Last updated