> For the complete documentation index, see [llms.txt](https://docs.foloosi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.foloosi.com/client-side-integrations/javascript-integration/additional-setup.md).

# Additional Setup

This section Get's transaction detail and transaction list.

**List of additional field setup:**

* [**Get Transaction Details**](#to-get-the-transaction-details)
* [**Get Transaction List**](#to-get-the-transaction-list)
* [**Skip  Customer Signup**](#skip-customer-signup)

#### **To get the Transaction Details**

For Transaction Details, use the below *Get request* to get the transaction details.&#x20;

```javascript
GET API LINK: https://api.foloosi.com/v1/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v1:
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "payment_transaction_id": "1234567-819201112",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": null,
        "merchant_amount": null,
        "status": "pending",
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "order-id-123",\\optional fields passed on initialize api
        "optional2": "order-reference",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": ""
    }
}
```

#### Note

If you want to fetch customer details and customer card details along with transaction details Ap&#x69;**,** change the above API from v1 to v2.&#x20;

```javascript
GET API LINK: https://api.foloosi.com/v2/api/transaction-detail/YOUR_TRANSACTION_ID

HEADERS:
secret_key : YOUR_SECRET_KEY

SAMPLE RESPONSE ON API v2
{
    "message": "Transaction detail are",
    "data": {
        "transaction_no": "FLSXXXXXXXXXXXXXX",
        "receipt": null,
        "request_currency": "AED",
        "request_amount": 18,
        "customer_currency": "AED",
        "customer_amount": 18,
        "merchant_currency": "AED",
        "merchant_amount": 18,
        "status": "pending",
        "payment_failed_reason": null,
        "created": "2022-11-01T10:21:04+00:00",
        "optional1": "1757",\\optional fields passed on initialize api
        "optional2": "https://woo.foloosi.in",\\optional fields passed on initialize api
        "optional3": "",\\optional fields passed on initialize api
        "subscription_no": "",
        "customer": {
            "name": "FOLOOSI",
            "email": "tech@foloosi.com",
            "phone_number": "+971531234234"
        },
        "card": {
            "pan": "54321******1234",
            "card_type": "CREDIT",
            "bin_card": "MASTERCARD",
            "issuer_name": "MASTERCARD",
            "issuer_country": "UNITED STATES",
            "card_expiry": "2212",
            "holder_name": "FOLOOSI",
            "card_reference": "",
            "card_id": 123456,
            "card_bin": "12345",
            "bin_bank": "MASTERCARD - MEMBER TEST FACILITY",
            "bin_type": "CREDIT",
            "bin_level": "MIXED BIN",
            "bin_country_code": "US",
            "bin_website": "https://www.mastercard.us",
            "bin_phone": "1-800-307-7309",
            "bin_valid": true,
            "card_issuer": "MASTERCARD"
        }
    }
}
```

#### **To get the Transaction List**

For Transaction List details, use the below Get request to get the transaction specific to merchant key.&#x20;

{% code lineNumbers="true" %}

```javascript
  GET API LINK:
  https://api.foloosi.com/v1/api/transaction-list

  HEADERS:
  secret_key : YOUR_SECRET_KEY
  
  SAMPLE RESPONSE:
  {
    "message": "Merchant sales report are",
    "data": {
        "transactions": [
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXX1",
                "send_amount": 1.35,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 1.35,
                "receive_amount": 1.35,
                "offer_amount": 0,
                "vat_amount": 0.05,
                "foloosi_fee": 0.04,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:52:38+00:00",
                "sender": {
                    "name": "Foloosi",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "9870162534"
                }
            },
            {
                "transaction_no": "FLSXXXXXXXXXXXXXXXX2",
                "send_amount": 385.66,
                "sender_currency": "AED",
                "tip_amount": 0,
                "receive_currency": "AED",
                "special_offer_applied": "No",
                "sender_amount": 385.66,
                "receive_amount": 385.66,
                "offer_amount": 0,
                "vat_amount": 0.69,
                "foloosi_fee": 12.73,
                "transaction_fixed_fee": 1,
                "customer_foloosi_fee": 0,
                "status": "success",
                "created": "2022-10-18T07:35:41+00:00",
                "sender": {
                    "name": "foloosi tech",
                    "email": "dev@foloosi.com",
                    "business_name": null,
                    "phone_number": "987654321"
                }
            }
    ]}
}
```

{% endcode %}

#### Skip Customer signup

This section shows you how to skip signup page on payment scree&#x6E;**.**

**Steps to be followed :**

* Add post customer details in *initialize Api* to skip the page below.
* If you pass amount and currency data alone, You will be navigated to the signup page for getting customer details as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FxVWqSqhmCyVbRh8nOfbp%2FsignupPage.png?alt=media&amp;token=2fff4683-407e-4b71-a664-5cc8071264d8" alt=""><figcaption><p>guest signup</p></figcaption></figure>

* If you pass customer details in *initialize Api*, it will skip the page above and navigate to *Payment Screen* directly as shown below.

<figure><img src="https://2728483298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MQCT5TjkKNyS34llPoX%2Fuploads%2FduRXsytXRlPtfQoFCzCs%2Fapple%20payscreen.png?alt=media&amp;token=fc81bf5e-6115-4e8c-9ba7-aa4147df50f1" alt=""><figcaption><p>payment screen</p></figcaption></figure>

### Support

Visit <https://www.foloosi.com> for support requests or email to <tech@foloosi.com>.

## Developed by

Foloosi Technologies Pvt Ltd.

## License

Copyrights (c) 2025 Foloosi
