---
page_title: Process a source
product: LotusPay
platform: Web
page_source: https://juspay.io/in/docs/lotuspay/web/core-resources/process-a-source
openapi: https://juspay.io/in/docs/api/swagger?document=https%3A%2F%2Fjuspay.io%2Fin%2Fdocs%2Flotuspay%2Fweb%2Fcore-resources%2Fprocess-a-source
llms_txt: https://juspay.io/in/docs/llms.txt
product_llms_txt: https://juspay.io/in/docs/lotuspay/llms.txt
---

## API Version: default

# **Process a source** 



For `physical` variant only. Sends the source to LotusPay for processing. JPG image must already be attached. Source status must be `pending`, and this action moves it to `pending_submission`. This endpoint has no arguments.

**Returns**  Returns a `pending_submission` source if a valid identifier was provided.

## Endpoints:
- Sandbox: https://api-test.lotuspay.com/v1/sources/{ID}/process

- Production: https://api.lotuspay.com/v1/sources/{ID}/process

## Request Type: 
POST

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value: sk_test_xd22123sxlkadsf8wjbkx
## Sample Code Snippets:

### Sample Request and Response:

#### Request:
```Shell
$ curl https://api-test.lotuspay.com/v1/sources/SC004433221AA/process \
  -u sk_test_xd22123sxlkadsf8wjbkx:

```

#### Response:
```json
{
    "id": "SC004433221AA",
    "object": "source",
    "created": 1530224170,
    "livemode": true,
    "metadata": {
    },
    "client_secret": null,
    "date_submitted": null,
    "date_withdrawn": null,
    "flow": "redirect",
    "nach_debit": {
      "amount_collection": null,
      "amount_maximum": 10000,
      "category_code": "L001",
      "category_description": "Loan installment amount",
      "creditor_agent_code": "HDFC",
      "creditor_agent_name": "HDFC BANK",
      "creditor_agent_mmbid": "HDFC0999999",
      "creditor_name": "LOTUSPAY SOLUTIONS PVT LTD",
      "creditor_utility_code": "NACH00000000005549",
      "date_first_collection": "2023-09-16",
      "date_final_collection": null,
      "date_of_mandate": "2023-09-15",
      "debtor_agent_code": "ICIC",
      "debtor_agent_name": "ICICI BANK",
      "debtor_agent_mmbid": "ICIC0000001",
      "debtor_account_name": "AMIT JAIN",
      "debtor_account_number": "****5678",
      "debtor_account_type": "savings",
      "debtor_email": "test@lotuspay.com",
      "debtor_mobile": "9123456789",
      "debtor_pan": null,
      "debtor_phone": null,
      "frequency": "MNTH",
      "instrument": "DEBIT",
      "occurrence_sequence_type": "RCUR",
      "reference1": "LOAN_ID_123",
      "reference2": null,
      "reference3": null,
      "reference4": null,
      "reference5": null,
      "variant": "physical"
    },
    "origin": "API",
    "redirect": {
    },
    "type": "nach_debit",
    "status": "pending_submission",
    "agent": null,
    "bank_account": null,
    "customer": null,
    "mandate": null,
    "nach_profile": "NP00AABBCC1122"
  }
```



---

## See Also

- [Retrieve a source pdf](https://juspay.io/in/docs/lotuspay/web/core-resources/retrieve-a-source-pdf)
- [Withdraw a source](https://juspay.io/in/docs/lotuspay/web/core-resources/withdraw-a-source)
