---
page_source: https://juspay.io/in/docs/part-payments/docs/integration/sample-payload
page_title: Sample Payload
---


# Integration Details



To integrate Part Payments, you'll primarily interact with our **Order Creation**  and **Transaction APIs** .


### Order Creation Payload



The `payment_rules` object within your order creation payload is where you define the Part Payment configuration.


#### Fixed Part Payment Sample Payload




#### Shell Code Snippet:

```shell
{
  "order_id": "your_unique_order_id",
  "first_name": "John",
  "last_name": "Wick",
  "customer_phone": "9652345486",
  "email_address": "test007@example.com",
  "customer_id": "your_customer_id",
  "amount": "3000.00",
  "currency": "INR",
  "return_url": "https://your_return_url.com/end",
  "payment_rules": {
    "payment_flows": {
      "part_payment": {
        "status": "OPTIONAL",
        "info": {
          "plan_info": [
            {
              "plan_type": "FIXED",
              "plan_type_title": "Pay in 3 Easy Installments",
              "plan_type_description": "Split your payment into 3 fixed parts.",
              "fixed_plan_details": [
                {
                  "plan_id": "PLAN_3_MONTHS",
                  "plan_title": "3 Month Plan",
                  "plan_description": "Pay ₹1000 for 3 months.",
                  "no_of_parts": 3,
                  "parts_info": [
                    {
                      "amount": "1000",
                      "due_date": "1733809870",
                      "part_number": 1,
                      "title": "First Installment",
                      "description": "Due on Dec 9, 2024"
                    },
                    {
                      "amount": "1000",
                      "due_date": "1734109870",
                      "part_number": 2,
                      "title": "Second Installment",
                      "description": "Due on Dec 12, 2024"
                    },
                    {
                      "amount": "1000",
                      "due_date": "1737599870",
                      "part_number": 3,
                      "title": "Final Installment",
                      "description": "Due on Jan 22, 2025"
                    }
                  ],
                  "plan_due_date": "1738969870"
                },
                {
                  "plan_id": "PLAN_4_MONTHS",
                  "plan_title": "4 Month Plan",
                  "plan_description": "Pay ₹500 for 4 months.",
                  "no_of_parts": 4,
                  "parts_info": [
                    {
                      "amount": "500",
                      "due_date": "1733809870",
                      "part_number": 1,
                      "title": "Installment 1",
                      "description": "Due on Dec 9, 2024"
                    },
                    {
                      "amount": "500",
                      "due_date": "1734109870",
                      "part_number": 2,
                      "title": "Installment 2",
                      "description": "Due on Dec 12, 2024"
                    },
                    {
                      "amount": "500",
                      "due_date": "1737599870",
                      "part_number": 3,
                      "title": "Installment 3",
                      "description": "Due on Jan 22, 2025"
                    },
                    {
                      "amount": "500",
                      "due_date": "1738439870",
                      "part_number": 4,
                      "title": "Installment 4",
                      "description": "Due on Feb 01, 2025"
                    }
                  ],
                  "plan_due_date": "1739769870"
                }
              ]
            }
          ]
        }
      }
    }
  }
}
```



#### Flexible Part Payment Sample Payload




#### Shell Code Snippet:

```shell
{
  "order_id": "your_unique_order_id",
  "first_name": "John",
  "last_name": "Wick",
  "customer_phone": "9652345486",
  "email_address": "test007@example.com",
  "customer_id": "your_customer_id",
  "amount": "3000.00",
  "currency": "INR",
  "return_url": "https://your_return_url.com/end",
  "payment_rules": {
    "payment_flows": {
      "part_payment": {
        "status": "OPTIONAL",
        "info": {
          "plan_info": [
            {
              "plan_type": "EDITABLE",
              "plan_type_title": "Flexible Payment Plan",
              "plan_type_description": "Choose your own payment amounts and frequency.",
              "editable_plan_details": [
                {
                  "plan_id": "FLEX_PLAN_1",
                  "plan_title": "Standard Flexible Plan",
                  "plan_description": "Minimum ₹10,000 per part, up to 10 parts.",
                  "minimum_part_amount": "10000",
                  "maximum_no_of_parts": 10,
                  "plan_due_date": "1734154649"
                },
                {
                  "plan_id": "FLEX_PLAN_2",
                  "plan_title": "Extended Flexible Plan",
                  "plan_description": "Minimum ₹1,000 per part, up to 30 parts.",
                  "minimum_part_amount": "1000",
                  "maximum_no_of_parts": 30,
                  "plan_due_date": "1755154649"
                }
              ]
            }
          ]
        }
      }
    }
  }
}
```


**[Note:] Fixed and Flexible plan can be sent in the payload together.** 

`payment_rules.payment_flows.part_payment.status`:

* `OPTIONAL`: Part Payment is an alternative to full payment.
* `REQUIRED`: Users must select a Part Payment plan.

**Due Dates (** `due_date` and `plan_due_date`): These are **EPOCH timestamps**  representing the due date in seconds. `plan_due_date` of the selected plan becomes the order expiry. 