---
page_source: https://docs.juspay.io/paytm-gateway-configuration/docs/express-checkout/consumer-finance-payment
page_title: Consumer Finance Payment
---

## API Version: default


# Consumer Finance Payment



Create a transaction for paying from a consumer finance application.Once you have the response, depending on the “method” attribute, you will have to take the next step. If you receive GET, then take the value in the “URL” attribute and redirect the user to this location. If you receive POST, then “params” attribute will hold a map containing key-value pairs. ## Endpoints:
- Production: https://api.juspay.in/txns

## Request Type: 
POST

## Sample Code Snippets:
### Sample Request:

#### Request Code Snippet:

```request
curl --request POST \
     --url https://api.juspay.in/txns \
     --header 'accept: application/json' \
     --header 'authorization: Basic OUU4xxxxxEU2NjxxxxxxQTQzMEM2RkFDMjcyQjM5Og==' \
     --header 'content-type: application/x-www-form-urlencoded'
```

### Sample Response:

#### Response:
```json
{
  "txn_uuid": "eultUYSbJA5NEbJBD",
  "txn_id": "Test-Order1619519941-1",
  "status": "PENDING_VBV",
  "payment": {
    "authentication": {
      "url": "https://api.juspay.in/v2/pay/start/Test/eultUYSxxxxNEbJBD",
      "method": "GET"
    }
  },
  "order_id": "Order1619519941"
}
```

## Body Parameters:
### Parameters:

#### order_id:
- Description: Id pertaining to the order for which the payment is started.
- Tags: string, Mandatory

#### merchant_id:
- Description: The username associated with Juspay
- Tags: string, Mandatory

#### payment_method_type:
- Description: Must be CONSUMER_FINANCE
- Tags: string, Mandatory

#### payment_method:
- Description: The actual payment method that was selected by the user from the table above.
- Tags: string, Mandatory

#### redirect_after_payment:
- Description: This is a boolean variable and accepts true/false. We recommend that you set this to true. If set to true, then the user is redirected to the return_url configured for the order. If set to false, then the user will be stopped at the response page from the gateway. Your client should be able to read the page/title to infer that the user has completed the transaction.
- Tags: string

#### format:
- Description: If it is set to json, then the response will be HTTP 200 with a JSON formatted text. Otherwise, the response is HTTP 302 with the Location attribute having the destination URL.
- Tags: string

#### offers:
- Description: The key offers should be passed only when juspay offers are being used. The value for this key can set as the offerID which is received from /v1/offers/list api
- Tags: array of Strings
## API Responses:
### 200:

#### txn_uuid:
- Description: eultUYSbJA5NEbJBD
- Tags: string

#### txn_id:
- Description: Test-Order1619519941-1
- Tags: string

#### status:
- Description: PENDING_VBV
- Tags: string

#### payment:
- Value:
  - **Authentication.method**:
    - Tags: String
  - **Authentication.url**:
    - Tags: String
- Tags: object

#### order_id:
- Description: Order1619519941
- Tags: string
### 400:

#### status:
- Description: invalid_request_error
- Tags: string

#### error_message:
- Description: Payment method cannot be null
- Tags: string

#### error_code:
- Description: missing_payment_method
- Tags: string
