---
page_source: https://docs.juspay.io/paytm-gateway-configuration/docs/express-checkout/create-order-with-payments
page_title: Create Order with Payments
---


# Create Order with Payments



> **Note**
> If you are a PCI compliant merchant, you can combine _Create Order API_  request with _Payments API_  request in a single API request. The sample request and response are shown below.




#### Sample request Code Snippet:

```sample request
curl --location --request POST 'https://api.juspay.in/txns' \
--header 'Authorization: Basic Auth of <your-api-key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'order.order_id=ord_1590759422' \
--data-urlencode 'order.amount=101.00' \
--data-urlencode 'order.currency=SGD' \
--data-urlencode 'order.customer_id=cst_1590759422' \
--data-urlencode 'order.return_url=https://merchant.in/payments' \
--data-urlencode 'merchant_id=<your-merchant-id>' \
--data-urlencode 'payment_method_type=CARD' \
--data-urlencode 'payment_method=VISA' \
--data-urlencode 'card_number=438628***8677' \
--data-urlencode 'card_exp_month=09' \
--data-urlencode 'card_exp_year=25' \
--data-urlencode 'name_on_card=***' \
--data-urlencode 'card_security_code=***' \
--data-urlencode 'save_to_locker=true' \
--data-urlencode 'redirect_after_payment=true' \
--data-urlencode 'format=json'
```

#### Sample response Code Snippet:

```sample response
{
  "order_id": "ord_1590759422",
  "status": "PENDING_VBV",
  "payment": {
    "authentication": {
      "url": "https://api.juspay.in/v2/pay/start/MID/moz3BDvrJSbBzuqFiw1?cardIssuerBankName%3DAxisBank%26cardType%3DDEBIT%26paymentMethod%3DVISA%26paymentMethodType%3DCARD",
      "method": "GET"
    }
  },
  "txn_uuid": "moz3BDvrJSbBzuqFiw1",
  "offer_details": {
    "offers": []
  },
  "txn_id": "MID-ord_1590759422-1"
}

```
