{
  "info": {
    "_postman_id": "87a1674a23735fe66582581cee33c148",
    "name": "BETA - AutoPay API - Balance Request (English)",
    "description": "Collection automatically generated from the OpenAPI definition published in Placetopay Docs. The base_url variable is already set with the testing environment address.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://api-test.placetopay.com"
    }
  ],
  "item": [
    {
      "name": "Get balance",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/autopay/balance",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "autopay",
            "balance"
          ]
        },
        "description": "This endpoint returns the pending amount to be charged and the minimum amount required to execute the auto payment."
      }
    },
    {
      "name": "Settle an AutoPay",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/autopay/settlement",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "autopay",
            "settlement"
          ]
        },
        "description": "This endpoint registers and returns only the notification (settlement) status."
      }
    },
    {
      "name": "AutoPay notifications reception",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/autopay/webhook",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "autopay",
            "webhook"
          ]
        }
      }
    },
    {
      "name": "List autopays",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/autopay/search",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "autopay",
            "search"
          ]
        }
      }
    },
    {
      "name": "Cancel an autopay",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/autopay/cancel",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "autopay",
            "cancel"
          ]
        }
      }
    },
    {
      "name": "List autopay transactions",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/autopay/transactions",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "autopay",
            "transactions"
          ]
        }
      }
    },
    {
      "name": "Create session (CreateRequest)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/autopay/session",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "autopay",
            "session"
          ]
        },
        "description": "Requests the creation of a session and returns the identifier and the processing URL."
      }
    },
    {
      "name": "Get session information (getSessionInformation)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/autopay/session/{requestId}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "autopay",
            "session",
            "{requestId}"
          ]
        },
        "description": "Retrieves the session information. If the session contains transactions, their details are included.\n"
      }
    }
  ]
}