---
page_title: Session API (payment-locking)
product: Payment Locking
page_source: https://juspay.io/in/docs/payment-locking/docs/payment-locking/session-api-paymentlocking
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/payment-locking/llms.txt
---


# Session API



This is a Server-to-Server API that accepts order parameters as input and returns the SDK payload and payment link.


### Implementation Details



To implement payment locking, include the payment locking payload in the `payment_filter` parameter when calling the session API. Please note that all fields are **case sensitive** .

_Additional Resources_ 

For more detailed information about the session API, please refer to the documentation [[here](https://docs.juspay.in/hyper-checkout/android/base-sdk-integration/session)].

## Sample Code Snippets:
### Top Header:

#### COD: Hide COD section Code Snippet:

```cod: hide cod section
curl --location --request POST 'https://api.juspay.in/session' \
--header 'Authorization: Basic base_64_encoded_api_key==' \
--header 'x-merchantid: your_merchant_id' \
--header 'Content-Type: application/json' \
--data-raw '{
    "order_id": "testing-order-one",
    "amount": "1.0",
    "customer_id": "testing-customer-one",
    "customer_email": "test@mail.com",
    "customer_phone": "9876543210",
    "payment_page_client_id": "your_client_id",
    "action": "paymentPage",
    "return_url": "https://shop.merchant.com",
    "description": "Complete your payment",
    "first_name": "John",
    "last_name": "wick",
    "payment_filter": {
       "allowDefaultOptions": true,
       "options": [
           {
               "paymentMethodType": "CASH",
               "enable": false
           }
       ]
   }
}'
```



---

## See Also

- [payment-locking-bank-codes](https://juspay.io/in/docs/payment-locking/docs/payment-locking/paymentlockingbankcodes)
- [Process payload (payment locking)](https://juspay.io/in/docs/payment-locking/docs/payment-locking/process-payload-payment-locking)
