---
updatedAt: 2026-04-20T19:14:03.000Z
agentTools:
  projectIndex: https://docs.paymentlabs.io/llms.txt
---

# Remove Auto Submit

Removes the auto submit flag from a payment

> 📘 The previous path `/batches/{batchId}/payments/{paymentId}/removeAutoSubmit` is deprecated but still supported as an alias. Please use `/batches/{batchId}/payments/{paymentId}/remove-auto-submit` going forward.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Payout API Specification",
    "version": "0.0.1",
    "description": "Describes the operations a Payor can do to manage payments"
  },
  "paths": {
    "/batches/{batchId}/payments/{paymentId}/remove-auto-submit": {
      "put": {
        "operationId": "Remove Auto Submit Endpoint",
        "tags": [
          "Payments"
        ],
        "description": "Removes the auto submit flag from a payment",
        "summary": "Remove Auto Submit",
        "parameters": [
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "batchId"
            }
          },
          {
            "name": "paymentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "paymentId"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The payment has been updated"
          },
          "400": {
            "description": "<p>\nReturned when the request has an error, check the code and message for more information about the error\n</p>\n<p>\n  Validation error response, when the request has invalid data, check the details for more information on what is wrong.\n  <br/>\n  <small>\n    e.g.: When creating a new record, if the user tries to create a record with a missing required field, the server can return a 400 status code with a validation error response.\n  </small>\n</p>",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "title": "code"
                        },
                        "message": {
                          "type": "string",
                          "title": "message"
                        }
                      },
                      "required": [
                        "code",
                        "message"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "enum": [
                            "VALIDATION_ERROR"
                          ],
                          "title": "code"
                        },
                        "message": {
                          "type": "string",
                          "title": "message"
                        },
                        "details": {
                          "type": "object",
                          "title": "details"
                        }
                      },
                      "required": [
                        "code",
                        "details",
                        "message"
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "<p>Unauthorized response, when the user is not authenticated or the authentication token is missing in the header.</p>",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "enum": [
                        "Unauthorized"
                      ],
                      "title": "message"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "403": {
            "description": "<p>\n  Forbidden response, when the user is authenticated but does not have the necessary permissions.\n</p>",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "title": "code"
                    },
                    "message": {
                      "type": "string",
                      "title": "message"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              }
            }
          },
          "423": {
            "description": "<p>\n  The record is in an state that cannot be edited, check the message and code for more information on why the record cannot be edited.<br/>\n  <small>\n    e.g,: When a payment has already been paid, it's value cannot be changed.\n  </small>\n</p>",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "enum": [
                        "NOT_EDITABLE"
                      ],
                      "title": "code"
                    },
                    "message": {
                      "type": "string",
                      "title": "message"
                    }
                  },
                  "required": [
                    "code",
                    "message"
                  ]
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerToken": []
          }
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://api-sandbox.paymentlabs.io",
      "description": "Sandbox Server"
    },
    {
      "url": "https://api.paymentlabs.io",
      "description": "Production Server"
    }
  ],
  "components": {
    "securitySchemes": {
      "bearerToken": {
        "scheme": "bearer",
        "type": "http",
        "bearerFormat": "JWT",
        "description": "Bearer Token using JWT"
      }
    }
  }
}
```