Create Order
Create an order
Creating a new order
curl --location --request POST 'https://merchant.fcfpay.com/api/v1/create-order' \
--header 'Authorization: Bearer YOUR_LIVE_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"domain": "yourdomain.com",
"order_id": "3",
"user_id": "1",
"amount": "10",
"currency_name": "USD",
"order_date": "2022-04-26",
"redirect_url": "https://yourdomain.com/thank-you/",
"check_source_url": "https://yourdomain.com/api/v1/check-order"
}'var myHeaders = new Headers();
myHeaders.append("Authorization", "Bearer YOUR_LIVE_API_KEY");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"domain": "yourdomain.com",
"order_id": "3",
"user_id": "1",
"amount": "10",
"currency_name": "USD",
"order_date": "2022-04-26",
"redirect_url": "https://yourdomain.com/thank-you/",
"check_source_url": "https://yourdomain.com/api/v1/check-order"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://merchant.fcfpay.com/api/v1/create-order", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));Field
Description
Example
Create an order.
Request Body
Name
Type
Description
Last updated
