{
  "info": {
    "_postman_id": "37c54d2bc91c163666ab06157cfea689",
    "name": "Placetopay WebCheckout (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://checkout-test.placetopay.com"
    }
  ],
  "item": [
    {
      "name": "Create session (CreateRequest)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/session",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "session"
          ]
        },
        "description": "Requests the creation of the session returns the identifier and the processing URL.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"locale\": \"es_CO\",\n  \"auth\": {\n    \"login\": \"aabbccdd1234567890aabbccdd123456\",\n    \"tranKey\": \"ABC123example456trankey+789abc012def3456ABC=\",\n    \"nonce\": \"NjE0OWVkODgwYjNhNw==\",\n    \"seed\": \"2021-09-21T09:34:48-05:00\"\n  },\n  \"payment\": {\n    \"reference\": \"1122334455\",\n    \"description\": \"Test\",\n    \"amount\": {\n      \"currency\": \"USD\",\n      \"total\": 100\n    }\n  },\n  \"expiration\": \"2021-12-30T00:00:00-05:00\",\n  \"returnUrl\": \"https://dnetix.co/p2p/client\",\n  \"ipAddress\": \"127.0.0.1\",\n  \"userAgent\": \"Placetopay Sandbox\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Query session (getSessionInformation)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/session/{requestId}",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "session",
            "{requestId}"
          ]
        },
        "description": "Gets the session information; if the session has transactions, their details are shown.\n",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"auth\": {\n    \"login\": \"aabbccdd1234567890aabbccdd123456\",\n    \"tranKey\": \"ABC123example456trankey+789abc012def3456ABC=\",\n    \"nonce\": \"NjE0OWVkODgwYjNhNw==\",\n    \"seed\": \"2021-09-21T09:34:48-05:00\"\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Cancel session",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/session/{requestId}/cancel",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "session",
            "{requestId}",
            "cancel"
          ]
        }
      }
    },
    {
      "name": "Notify Payment",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/notify",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "notify"
          ]
        },
        "description": "Allows requesting the status change of a transaction that is in pending status",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"auth\": {\n    \"login\": \"aabbccdd1234567890aabbccdd123456\",\n    \"tranKey\": \"ABC123example456trankey+789abc012def3456ABC=\",\n    \"nonce\": \"NjE0OWVkODgwYjNhNw==\",\n    \"seed\": \"2021-09-21T09:34:48-05:00\"\n  },\n  \"internalReference\": 1,\n  \"reference\": \"12345\",\n  \"signature\": \"3ccbae73d6a5bb1be7e00f9a2cfc3cc7cd95a311\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Collect using token (Collect)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/collect",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "collect"
          ]
        },
        "description": "Allows making charges without user intervention using previously subscribed payment methods.\n",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"locale\": \"es_CO\",\n  \"auth\": {\n    \"login\": \"aabbccdd1234567890aabbccdd123456\",\n    \"tranKey\": \"ABC123example456trankey+789abc012def3456ABC=\",\n    \"nonce\": \"NjE0OWVkODgwYjNhNw==\",\n    \"seed\": \"2021-09-21T09:34:48-05:00\"\n  },\n  \"payment\": {\n    \"reference\": \"1122334455\",\n    \"description\": \"Test\",\n    \"amount\": {\n      \"currency\": \"USD\",\n      \"total\": 100\n    }\n  },\n  \"instrument\": {\n    \"token\": {\n      \"token\": \"faketoken12f233bd8f5d42138d681bf07ea8295429df07a4af287703e30c891\"\n    }\n  },\n  \"expiration\": \"2021-12-30T00:00:00-05:00\",\n  \"returnUrl\": \"https://dnetix.co/p2p/client\",\n  \"ipAddress\": \"127.0.0.1\",\n  \"userAgent\": \"Placetopay Sandbox\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Transaction actions (TransactionPayment)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/transaction",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "transaction"
          ]
        },
        "description": "Allows performing basic preauthorization operations such as `checkout`, `reauthorization` (not applicable in Puerto Rico). It also allows confirming (`confirm`) or canceling (`cancel`) transactions in PENDING_CONFIRMATION state, and reversing an approved payment with `reverse`.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"auth\": {\n    \"login\": \"aabbccdd1234567890aabbccdd123456\",\n    \"tranKey\": \"ABC123example456trankey+789abc012def3456ABC=\",\n    \"nonce\": \"NjE0OWVkODgwYjNhNw==\",\n    \"seed\": \"2021-09-21T09:34:48-05:00\"\n  },\n  \"internalReference\": 640,\n  \"amount\": {\n    \"currency\": \"USD\",\n    \"total\": \"500\"\n  },\n  \"action\": \"checkout\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "Invalidar Token (InstrumentInvalidateRequest)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/instrument/invalidate",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "instrument",
            "invalidate"
          ]
        },
        "description": "Allows invalidating an existing token of the site. This will prevent the token or subtoken from being used again.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"auth\": {\n    \"auth\": {\n      \"login\": \"aabbccdd1234567890aabbccdd123456\",\n      \"tranKey\": \"ABC123example456trankey+789abc012def3456ABC=\",\n      \"nonce\": \"NjE0OWVkODgwYjNhNw==\",\n      \"seed\": \"2021-09-21T09:34:48-05:00\"\n    }\n  },\n  \"locale\": \"en_US\",\n  \"instrument\": {\n    \"token\": {\n      \"token\": \"faketoken12f233bd8f5d42138d681bf07ea8295429df07a4af287703e30c891\"\n    }\n  }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "This service provides information about the user's card/token to be processed. It is recommended to always integrate through the [Gateway](/gateway/api/reference/information) API.",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/gateway/information",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "gateway",
            "information"
          ]
        },
        "description": "Allows invalidating an existing token of the site. This will prevent the token or subtoken from being used again."
      }
    },
    {
      "name": "This service allows you to search for a tokenization using the value of the token or subtoken. It is recommended to always integrate via the [Gateway](/en/gateway/api/reference/tokenize#token-search-request).",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/api/gateway/token",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "api",
            "gateway",
            "token"
          ]
        }
      }
    },
    {
      "name": "Notification sent to the merchant (MerchantNotificationRequest)",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{base_url}}/merchant-api/notification-url",
          "host": [
            "{{base_url}}"
          ],
          "path": [
            "merchant-api",
            "notification-url"
          ]
        }
      }
    }
  ]
}