---
updatedAt: 2026-09-17T16:31:23.000Z
agentTools:
  projectIndex: https://docs.dlocal.com/llms.txt
---

# Create an installments plan

This service allows you to create customized installment plans for card payments.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Payins",
    "version": "2.1"
  },
  "servers": [
    {
      "url": "https://api.dlocal.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "X-Date",
        "in": "header",
        "x-default": ""
      },
      "sec1": {
        "type": "apiKey",
        "name": "X-Login",
        "in": "header",
        "x-default": ""
      },
      "sec2": {
        "type": "apiKey",
        "name": "X-Trans-Key",
        "in": "header",
        "x-default": ""
      },
      "sec3": {
        "type": "apiKey",
        "name": "Content-Type",
        "in": "header",
        "x-default": "application/json"
      },
      "sec4": {
        "type": "apiKey",
        "name": "X-Version",
        "in": "header",
        "x-default": "2.1"
      },
      "sec5": {
        "type": "apiKey",
        "name": "User-Agent",
        "in": "header",
        "x-default": ""
      },
      "sec6": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": [],
      "sec1": [],
      "sec2": [],
      "sec3": [],
      "sec4": [],
      "sec5": [],
      "sec6": []
    }
  ],
  "paths": {
    "/installments-plans": {
      "post": {
        "tags": [
          "Installments"
        ],
        "summary": "Create an installments plan",
        "description": "This service allows you to create customized installment plans for card payments.",
        "operationId": "create-an-installments-plan",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "country",
                  "currency",
                  "bin",
                  "amount"
                ],
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "The installments plan ID."
                  },
                  "country": {
                    "type": "string",
                    "description": "The country of the installments plan. ISO 3166-1 alpha-2 code."
                  },
                  "currency": {
                    "type": "string",
                    "description": "The currency of the installments plan."
                  },
                  "bin": {
                    "type": "string",
                    "description": "The credit card bin."
                  },
                  "amount": {
                    "type": "number",
                    "description": "The amount of the installments plan."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"id\" : \"INS54434\",\n    \"country\" : \"BR\",\n    \"bin\" : \"435921\",\n    \"amount\": 1000.00,\n    \"currency\" : \"BRL\",\n    \"installments\" : [\n        {\n            \"id\" : \"INS54434-1\",\n            \"installment_amount\" : 1000.00,\n            \"installments\" : 1,\n            \"total_amount\" : 1000.00\n        },\n        {\n            \"id\" : \"INS54434-2\",\n            \"installment_amount\" : 550.00,\n            \"installments\" : 2,\n            \"total_amount\" : 1100.00\n        },\n        {\n            \"id\" : \"INS54434-3\",\n            \"installment_amount\" : 383.33,\n            \"installments\" : 3,\n            \"total_amount\" : 1150.00\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "example": "INS54434"
                    },
                    "country": {
                      "type": "string",
                      "example": "BR"
                    },
                    "bin": {
                      "type": "string",
                      "example": "435921"
                    },
                    "amount": {
                      "type": "number",
                      "example": 1000,
                      "default": 0
                    },
                    "currency": {
                      "type": "string",
                      "example": "BRL"
                    },
                    "installments": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "example": "INS54434-1"
                          },
                          "installment_amount": {
                            "type": "number",
                            "example": 1000,
                            "default": 0
                          },
                          "installments": {
                            "type": "integer",
                            "example": 1,
                            "default": 0
                          },
                          "total_amount": {
                            "type": "number",
                            "example": 1000,
                            "default": 0
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "x-readme": {
          "code-samples": [
            {
              "language": "shell",
              "code": "curl -X POST \\\n   -H 'X-Date: {X-Date}' \\\n   -H 'X-Login: {X-Login}' \\\n   -H 'X-Trans-Key: {X-Trans-Key}' \\\n   -H 'Content-Type: application/json' \\\n   -H 'X-Version: 2.1' \\\n   -H 'User-Agent: MerchantTest / 1.0 ' \\\n   -H 'Authorization: V2-HMAC-SHA256, Signature: {Signature}' \\\n   -d '{body}'\n    https://api.dlocal.com/installments-plans\n{\n  \"country\": \"BR\",\n  \"bin\": \"411111\",\n  \"amount\": 30,\n  \"currency\": \"BRL\"\n}",
              "name": "Create Installment Plan "
            },
            {
              "language": "shell",
              "code": "curl -X POST \\\n   -H 'X-Date: {X-Date}' \\\n   -H 'X-Login: {X-Login}' \\\n   -H 'X-Trans-Key: {X-Trans-Key}' \\\n   -H 'Content-Type: application/json' \\\n   -H 'X-Version: 2.1' \\\n   -H 'User-Agent: MerchantTest / 1.0 ' \\\n   -H 'Authorization: V2-HMAC-SHA256, Signature: {Signature}' \\\n   -d '{body}'\n    https://api.dlocal.com/installments-plans\n{\n  \"amount\": 1000,\n  \"currency\": \"BRL\",\n  \"country\": \"BR\",\n  \"payment_method_id\": \"VD\",\n  \"payment_method_flow\": \"DIRECT\",\n  \"payer\": {\n    \"name\": \"Thiago Gabriel\",\n    \"email\": \"thiago@example.com\",\n    \"document\": \"53033315550\"\n  },\n  \"card\": {\n    \"holder_name\": \"Thiago Gabriel\",\n    \"number\": \"4111111111111111\",\n    \"cvv\": \"123\",\n    \"expiration_month\": 10,\n    \"expiration_year\": 2040,\n    \"installments\": \"3\",\n    \"installment_id\": \"INS54434\"\n  },\n  \"order_id\": \"657434343\",\n  \"notification_url\": \"http://merchant.com/notifications\"\n}",
              "name": "Payment with Installments"
            }
          ],
          "samples-languages": [
            "shell"
          ]
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```