{
  "info": {
    "_postman_id": "9d4fd345-a72c-4c63-aec8-ea7f8aed7d62",
    "name": "SPG Sandbox",
    "description": "## 🧪 SIBS SPG Sandbox\n\nThis Postman collection demonstrates how to simulate requests and responses with the **SIBS Payment Gateway (SPG)** API in a controlled sandbox environment.\n\n🧠 **Important:** This sandbox is intended for testing and simulation only. It does **not** represent production behavior in full.\n\n### 🔁 Scenario Simulation\n\nThe sandbox behavior is triggered using specific values in the `merchantTransactionId` field of the **Checkout** request.\n\nEach test case (e.g., success, declined, missing alias) is mapped to a unique `merchantTransactionId`.\n\nRefer to the official documentation for the complete list of supported test scenarios.\n\n---\n\n### 🌐 Hostname Notice\n\nThe `{{host}}` variable used in this collection points to the **sandbox endpoint only**.\n\nFor production or other environments (e.g., staging), **hostname values will differ**.\n\n👉 Please consult the official documentation for the correct API base URLs for each environment:  \n[<b>https://www.docs.pay.sibs.com/portugal/sibs-gateway/</b>](https://www.docs.pay.sibs.com/portugal/sibs-gateway/)\n\n---\n\n### 📘 Documentation\n\nFor full technical details, environment setup, authentication workflows, and response formats, please refer to:\n\n**🔗** [<b>SIBS SPG Documentation – Portugal</b>](https://www.docs.pay.sibs.com/portugal/sibs-gateway/)\n\nThis Postman collection should be used as a **complementary tool** to the documentation, to help developers test and validate request flows quickly.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "8286366",
    "_collection_link": "https://go.postman.co/collection/37428529-9d4fd345-a72c-4c63-aec8-ea7f8aed7d62?source=collection_link"
  },
  "item": [
    {
      "name": "MB WAY",
      "item": [
        {
          "name": "MB WAY - Success",
          "item": [
            {
              "name": "Checkout MB WAY",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 99978,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e0085chck4\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"My transactions own description\",\n        \"moto\": false,\n        \"paymentType\": \"PURS\",\n        \"amount\": {\n            \"value\": 16.20,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\"\n        ]\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Purchase",
              "request": {
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "value",
                      "value": "{{vault:authorization-secret}}",
                      "type": "string"
                    },
                    {
                      "key": "key",
                      "value": "Authorization",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"customerPhone\": \"351#912345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfghMBWPUR500/mbway-id/purchase",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghMBWPUR500",
                    "mbway-id",
                    "purchase"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghMBWPUR000/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghMBWPUR000",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.request.headers.add({key: 'Authorization', value: 'Digest ' + postman.getEnvironmentVariable('transactionSignature') });"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  ""
                ]
              }
            }
          ]
        },
        {
          "name": "MB WAY - Declined",
          "item": [
            {
              "name": "Checkout MB WAY",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 99978,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e0085chck6\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"My transactions own description\",\n        \"moto\": false,\n        \"paymentType\": \"PURS\",\n        \"amount\": {\n            \"value\": 16.2,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\"\n        ]\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Purchase",
              "request": {
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "value",
                      "value": "{{vault:authorization-secret}}",
                      "type": "string"
                    },
                    {
                      "key": "key",
                      "value": "Authorization",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"customerPhone\": \"351#912345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfghMBWPUR500/mbway-id/purchase",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghMBWPUR500",
                    "mbway-id",
                    "purchase"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghMBWPUR500/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghMBWPUR500",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.request.headers.add({key: 'Authorization', value: 'Digest ' + postman.getEnvironmentVariable('transactionSignature') });"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  ""
                ]
              }
            }
          ]
        },
        {
          "name": "MB WAY - Without ALIAS",
          "item": [
            {
              "name": "Checkout MB WAY",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 99978,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \" 863b730df285443ca404e008chck10\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"My transactions own description\",\n        \"moto\": false,\n        \"paymentType\": \"PURS\",\n        \"amount\": {\n            \"value\": 16.2,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\"\n        ]\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Purchase",
              "request": {
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "value",
                      "value": "{{vault:authorization-secret}}",
                      "type": "string"
                    },
                    {
                      "key": "key",
                      "value": "Authorization",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"customerPhone\": \"351#912345678\"\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfghMBWPUR506/mbway-id/purchase",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghMBWPUR506",
                    "mbway-id",
                    "purchase"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghMBWPUR506/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghMBWPUR506",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ],
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.request.headers.add({key: 'Authorization', value: 'Digest ' + postman.getEnvironmentVariable('transactionSignature') });"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  ""
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "CARD",
      "item": [
        {
          "name": "Card - Success",
          "item": [
            {
              "name": "Checkout Card",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 66645,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e008chck11\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"Teste\",\n        \"moto\": false,\n        \"paymentType\": \"AUTH\",\n        \"amount\": {\n            \"value\": 19.2,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\"\n        ]\n    },\n    \"customer\": {\n        \"customerInfo\": {\n            \"customerName\": \"Teste\",\n            \"customerEmail\": \"email@email.pt\",\n            \"billingAddress\": {\n                \"street1\": \"First street\",\n                \"street2\": \"Menef Square\",\n                \"city\": \"Lisbon\",\n                \"postcode\": \"1700-123\",\n                \"country\": \"PT\"\n            }\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Purchase - Server to Server",
              "request": {
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "value",
                      "value": "Digest {{transactionSignature}}",
                      "type": "string"
                    },
                    {
                      "key": "key",
                      "value": "Authorization",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"cardInfo\": {\r\n      \"PAN\": \"5309770069960461\",\r\n      \"secureCode\": \"220\",\r\n      \"validationDate\": \"2025-12-10T00:00:00.000Z\",\r\n      \"cardholderName\": \"SIBS\",\r\n      \"createToken\": true\r\n    },\r\n    \"actionProcessed\": {\r\n        \"id\": \"123456789\", \r\n        \"type\": \"THREEDS_METHOD\", \r\n        \"executed\": true\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwCRDPUR000/card/purchase",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwCRDPUR000",
                    "card",
                    "purchase"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwCRDPUR000/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwCRDPUR000",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ],
          "auth": {
            "type": "noauth"
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.request.headers.add({key: 'Authorization', value: 'Digest ' + postman.getEnvironmentVariable('transactionSignature') });"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  ""
                ]
              }
            }
          ]
        },
        {
          "name": "Card - Declined",
          "item": [
            {
              "name": "Checkout Card",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 66645,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e008chck13\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"Teste\",\n        \"moto\": false,\n        \"paymentType\": \"AUTH\",\n        \"amount\": {\n            \"value\": 19.2,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\"\n        ]\n    },\n    \"customer\": {\n        \"customerInfo\": {\n            \"customerName\": \"Teste\",\n            \"customerEmail\": \"email@email.pt\",\n            \"billingAddress\": {\n                \"street1\": \"First street\",\n                \"street2\": \"Menef Square\",\n                \"city\": \"Lisbon\",\n                \"postcode\": \"1700-123\",\n                \"country\": \"PT\"\n            }\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Purchase - Server to Server",
              "request": {
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "value",
                      "value": "Digest {{transactionSignature}}",
                      "type": "string"
                    },
                    {
                      "key": "key",
                      "value": "Authorization",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"cardInfo\": {\r\n      \"PAN\": \"5309770069960461\",\r\n      \"secureCode\": \"220\",\r\n      \"validationDate\": \"2025-12-10T00:00:00.000Z\",\r\n      \"cardholderName\": \"SIBS\",\r\n      \"createToken\": true\r\n    },\r\n    \"actionProcessed\": {\r\n        \"id\": \"123456789\", \r\n        \"type\": \"THREEDS_METHOD\", \r\n        \"executed\": true\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwCRDPUR701/card/purchase",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwCRDPUR701",
                    "card",
                    "purchase"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwCRDPUR701/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwCRDPUR701",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ],
          "auth": {
            "type": "noauth"
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.request.headers.add({key: 'Authorization', value: 'Digest ' + postman.getEnvironmentVariable('transactionSignature') });"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  ""
                ]
              }
            }
          ]
        },
        {
          "name": "Card - Invalid Card Data",
          "item": [
            {
              "name": "Checkout Card",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 66645,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e008chck12\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"Teste\",\n        \"moto\": false,\n        \"paymentType\": \"AUTH\",\n        \"amount\": {\n            \"value\": 19.2,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\"\n        ]\n    },\n    \"customer\": {\n        \"customerInfo\": {\n            \"customerName\": \"Teste\",\n            \"customerEmail\": \"email@email.pt\",\n            \"billingAddress\": {\n                \"street1\": \"First street\",\n                \"street2\": \"Menef Square\",\n                \"city\": \"Lisbon\",\n                \"postcode\": \"1700-123\",\n                \"country\": \"PT\"\n            }\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Purchase - Server to Server",
              "request": {
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "value",
                      "value": "Digest {{transactionSignature}}",
                      "type": "string"
                    },
                    {
                      "key": "key",
                      "value": "Authorization",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\r\n    \"cardInfo\": {\r\n      \"PAN\": \"5309770069960461\",\r\n      \"secureCode\": \"220\",\r\n      \"validationDate\": \"2025-12-10T00:00:00.000Z\",\r\n      \"cardholderName\": \"SIBS\",\r\n      \"createToken\": true\r\n    },\r\n    \"actionProcessed\": {\r\n        \"id\": \"123456789\", \r\n        \"type\": \"THREEDS_METHOD\", \r\n        \"executed\": true\r\n    }\r\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwCRDPUR700/card/purchase",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwCRDPUR700",
                    "card",
                    "purchase"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwCRDPUR700/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwCRDPUR700",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ],
          "auth": {
            "type": "noauth"
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.request.headers.add({key: 'Authorization', value: 'Digest ' + postman.getEnvironmentVariable('transactionSignature') });"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  ""
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "MULTIBANCO",
      "item": [
        {
          "name": "Multibanco - UNPAID",
          "item": [
            {
              "name": "Checkout Reference",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 88845,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e008chck18\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"My transactions own description\",\n        \"moto\": false,\n        \"paymentType\": \"AUTH\",\n        \"amount\": {\n            \"value\": 20,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\",\n            \"TOKEN\",\n            \"REFERENCE\"\n        ],\n        \"paymentReference\": {\n            \"initialDatetime\": \"2022-11-09T09:41:56.971Z\",\n            \"finalDatetime\": \"2022-12-30T15:41:56.971Z\",\n            \"maxAmount\": {\n                \"value\": 20,\n                \"currency\": \"EUR\"\n            },\n            \"minAmount\": {\n                \"value\": 20,\n                \"currency\": \"EUR\"\n            },\n            \"entity\": \"40200\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Generate Reference",
              "request": {
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "value",
                      "value": "Digest {{transactionSignature}}",
                      "type": "string"
                    },
                    {
                      "key": "key",
                      "value": "Authorization",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfUNPREFGEN000/service-reference/generate",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfUNPREFGEN000",
                    "service-reference",
                    "generate"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfUNPREFGEN000/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfUNPREFGEN000",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ],
          "auth": {
            "type": "noauth"
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.request.headers.add({key: 'Authorization', value: 'Digest ' + postman.getEnvironmentVariable('transactionSignature') });"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  ""
                ]
              }
            }
          ]
        },
        {
          "name": "Multibanco - PAID",
          "item": [
            {
              "name": "Checkout Reference",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 88845,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e008chck26\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"My transactions own description\",\n        \"moto\": false,\n        \"paymentType\": \"AUTH\",\n        \"amount\": {\n            \"value\": 20,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\",\n            \"TOKEN\",\n            \"REFERENCE\"\n        ],\n        \"paymentReference\": {\n            \"initialDatetime\": \"2022-11-09T09:41:56.971Z\",\n            \"finalDatetime\": \"2022-12-30T15:41:56.971Z\",\n            \"maxAmount\": {\n                \"value\": 20,\n                \"currency\": \"EUR\"\n            },\n            \"minAmount\": {\n                \"value\": 20,\n                \"currency\": \"EUR\"\n            },\n            \"entity\": \"40200\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Generate Reference",
              "request": {
                "auth": {
                  "type": "apikey",
                  "apikey": [
                    {
                      "key": "value",
                      "value": "Digest {{transactionSignature}}",
                      "type": "string"
                    },
                    {
                      "key": "key",
                      "value": "Authorization",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxPAIDREFGEN000/service-reference/generate",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxPAIDREFGEN000",
                    "service-reference",
                    "generate"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxPAIDREFGEN000/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxPAIDREFGEN000",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ],
          "auth": {
            "type": "noauth"
          },
          "event": [
            {
              "listen": "prerequest",
              "script": {
                "type": "text/javascript",
                "exec": [
                  "pm.request.headers.add({key: 'Authorization', value: 'Digest ' + postman.getEnvironmentVariable('transactionSignature') });"
                ]
              }
            },
            {
              "listen": "test",
              "script": {
                "type": "text/javascript",
                "exec": [
                  ""
                ]
              }
            }
          ]
        }
      ]
    },
    {
      "name": "IDEMPOTENCY",
      "item": [
        {
          "name": "Checkout",
          "item": [
            {
              "name": "Checkout Duplicated",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 99978,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e008chck29\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"My transactions own description\",\n        \"moto\": false,\n        \"paymentType\": \"PURS\",\n        \"amount\": {\n            \"value\": 20,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\"\n        ]\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Capture",
          "item": [
            {
              "name": "Capture Original",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 10.24,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfg2CRDCAPT000/capture",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfg2CRDCAPT000",
                    "capture"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Capture Duplicated",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 10.24,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxIDEMCRDCAP000/capture",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxIDEMCRDCAP000",
                    "capture"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Capture merchantTransactionId used in other operation",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 10.24,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxDIFOPERCRDRFN/capture",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxDIFOPERCRDRFN",
                    "capture"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Refund",
          "item": [
            {
              "name": "Refund Original",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 19.2,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxfgh2CRDRFN000/refund",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfgh2CRDRFN000",
                    "refund"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Refund Duplicated",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 19.2,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxIDEMCRDRFN000/refund",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxIDEMCRDRFN000",
                    "refund"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Refund merchantTransactionId used in other operation",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 19.2,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxDIFOPERCRDRFN/refund",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxDIFOPERCRDRFN",
                    "refund"
                  ]
                }
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "DUPLICATES VALIDATION",
      "item": [
        {
          "name": "Checkout",
          "item": [
            {
              "name": "Checkout Duplicated",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": 99978,\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404e008chck29\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"{{currentDate}}\",\n        \"description\": \"My transactions own description\",\n        \"moto\": false,\n        \"paymentType\": \"PURS\",\n        \"amount\": {\n            \"value\": 20,\n            \"currency\": \"EUR\"\n        },\n        \"paymentMethod\": [\n            \"CARD\",\n            \"MBWAY\",\n            \"MANDATE\"\n        ]\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Capture",
          "item": [
            {
              "name": "Capture Duplicated",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 10.24,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxDUPLCRDCAP000/capture",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxDUPLCRDCAP000",
                    "capture"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Capture merchantTransactionId used in other operation",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 10.24,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxDIFOPERCRDRFN/capture",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxDIFOPERCRDRFN",
                    "capture"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Refund",
          "item": [
            {
              "name": "Refund Duplicated",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eDUPL\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 19.2,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxDUPLCRDRFN000/refund",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxDUPLCRDRFN000",
                    "refund"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Refund merchantTransactionId used in other operation",
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n    \"merchant\": {\n        \"terminalId\": \"66645\",\n        \"channel\": \"web\",\n        \"merchantTransactionId\": \"863b730df285443ca404eIDEMCRDRFN\"\n    },\n    \"transaction\": {\n        \"transactionTimestamp\": \"2021-06-20T11:26:31.392549Z\",\n        \"description\": \"Transaction short description\",\n        \"amount\": {\n            \"value\": 19.2,\n            \"currency\": \"EUR\"\n        }\n    }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/sandboxDIFOPERCRDRFN/refund",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxDIFOPERCRDRFN",
                    "refund"
                  ]
                }
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "CASHOUT",
      "item": [
        {
          "name": "Cashout - Success",
          "item": [
            {
              "name": "Cashout - success",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n   \"alias\":{\n      \"aliasName\":\"351#912345678\"\n   },\n   \"billingProductType\":\"GATEWAY\",\n   \"cardInfo\":{\n      \"PAN\":\"500123******0123\",\n      \"validationDate\":\"2028-03-30T00:00:00.000Z\"\n   },\n   \"initiationMethod\":1,\n   \"merchant\":{\n      \"terminalId\":\"99978 \",\n      \"merchantTransactionId\":\"863b730df285443ca4RJTnkCSH0000\",\n      \"merchantBrandName\":\"Marca do Comerciante\",\n      \"operationDescription\":\"Reembolso ao cliente 1234\"\n   },\n   \"originApplication\":1,\n   \"amount\":{\n      \"value\":16.2,\n      \"currency\":\"EUR\"\n   }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/cashout",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "cashout"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwbsCSH0000/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwbsCSH0000",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Cashout - Declined",
          "item": [
            {
              "name": "Cashout - Declined",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n   \"alias\":{\n      \"aliasName\":\"351#912345678\"\n   },\n   \"billingProductType\":\"GATEWAY\",\n   \"cardInfo\":{\n      \"PAN\":\"500123******0123\",\n      \"validationDate\":\"2028-03-30T00:00:00.000Z\"\n   },\n   \"initiationMethod\":1,\n   \"merchant\":{\n      \"terminalId\":\"99978 \",\n      \"merchantTransactionId\":\"863b730df285443ca4RJTnkCSH1011\",\n      \"merchantBrandName\":\"Marca do Comerciante\",\n      \"operationDescription\":\"Reembolso ao cliente 1234\"\n   },\n   \"originApplication\":1,\n   \"amount\":{\n      \"value\":16.2,\n      \"currency\":\"EUR\"\n   }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/cashout",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "cashout"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwbsCSH1011/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwbsCSH1011",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Cashout - Daily amount limit exceeded",
          "item": [
            {
              "name": "Cashout - Daily amount limit exceeded",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n   \"alias\":{\n      \"aliasName\":\"351#912345678\"\n   },\n   \"billingProductType\":\"GATEWAY\",\n   \"cardInfo\":{\n      \"PAN\":\"500123******0123\",\n      \"validationDate\":\"2028-03-30T00:00:00.000Z\"\n   },\n   \"initiationMethod\":1,\n   \"merchant\":{\n      \"terminalId\":\"99978 \",\n      \"merchantTransactionId\":\"863b730df285443ca4RJTnkCSH1005\",\n      \"merchantBrandName\":\"Marca do Comerciante\",\n      \"operationDescription\":\"Reembolso ao cliente 1234\"\n   },\n   \"originApplication\":1,\n   \"amount\":{\n      \"value\":15000,\n      \"currency\":\"EUR\"\n   }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/cashout",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "cashout"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwbsCSH1005/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwbsCSH1005",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Cashout - Operation amount limit exceeded",
          "item": [
            {
              "name": "Cashout - Operation amount limit exceeded",
              "event": [
                {
                  "listen": "test",
                  "script": {
                    "exec": [
                      "",
                      "",
                      "var jsonData = pm.response.json();",
                      "pm.globals.set(\"transactionID\", jsonData.transactionID);",
                      "pm.globals.set(\"transactionSignature\", jsonData.transactionSignature);",
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                },
                {
                  "listen": "prerequest",
                  "script": {
                    "exec": [
                      ""
                    ],
                    "type": "text/javascript",
                    "packages": {},
                    "requests": {}
                  }
                }
              ],
              "request": {
                "method": "POST",
                "header": [],
                "body": {
                  "mode": "raw",
                  "raw": "{\n   \"alias\":{\n      \"aliasName\":\"351#912345678\"\n   },\n   \"billingProductType\":\"GATEWAY\",\n   \"cardInfo\":{\n      \"PAN\":\"500123******0123\",\n      \"validationDate\":\"2028-03-30T00:00:00.000Z\"\n   },\n   \"initiationMethod\":1,\n   \"merchant\":{\n      \"terminalId\":\"99978 \",\n      \"merchantTransactionId\":\"863b730df285443ca4RJTnkCSH1006\",\n      \"merchantBrandName\":\"Marca do Comerciante\",\n      \"operationDescription\":\"Reembolso ao cliente 1234\"\n   },\n   \"originApplication\":1,\n   \"amount\":{\n      \"value\":16.2,\n      \"currency\":\"EUR\"\n   }\n}",
                  "options": {
                    "raw": {
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{host}}/payments/cashout",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "cashout"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Status",
              "request": {
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{host}}/payments/sandboxfghwbsCSH1006/status",
                  "host": [
                    "{{host}}"
                  ],
                  "path": [
                    "payments",
                    "sandboxfghwbsCSH1006",
                    "status"
                  ]
                }
              },
              "response": []
            }
          ]
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{vault:authorization-secret}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          "pm.request.headers.add({key: 'X-IBM-Client-Id', value: 'a63b2c1e-d624-4e4f-8bd5-c0ae4a8e6b3e' });",
          "const dateNow= new Date();",
          "pm.environment.set('currentDate', dateNow.toISOString());"
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "terminalId",
      "value": "99978"
    },
    {
      "key": "entity",
      "value": "40200"
    },
    {
      "key": "host",
      "value": "https://sandbox.qly.sibspayments.com/sibs/spg/v2"
    },
    {
      "key": "amount",
      "value": "5"
    }
  ]
}