---
agentTools:
  projectIndex: https://docs.eupago.pt/llms.txt
---

# MB WAY

Creates MB WAY payment requests. (The customer have 5 minutes to execute the payment after receiving the payment notification via MBWAY app.)

> 🚧
>
> This request uses ApiKey authentication on its header: **ApiKey xxxx-xxxx-xxxx-xxxx-xxxx**

You may find your Eupago's API Key on your backoffice on *Channels *->* Channel Listing* menu. Please [check our guide](https://eupago.atlassian.net/servicedesk/customer/portal/2/article/224297034) if you are having trouble finding your API Key.

> 📘 Maximum Amount
>
> Maximum amount: 99 999€

[block:html]
{
  "html": "<div class=example>\n  <p>To test this request please fill the params below or load a complete example on the right clicking in <strong>Examples</strong> dropdown on the right.</p>\n</div>\n\n<style>\n  .example\n  {\n  color:#C41E3A;\n  }\n</style>"
}
[/block]

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "REST API - ApiKey Auth",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://sandbox.eupago.pt/api/"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-bearer-format": "",
        "x-default": ""
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v1.02/mbway/create": {
      "post": {
        "summary": "MB WAY",
        "description": "Creates MB WAY payment requests. (The customer have 5 minutes to execute the payment after receiving the payment notification via MBWAY app.)",
        "operationId": "mbway",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "payment"
                ],
                "properties": {
                  "payment": {
                    "type": "object",
                    "description": "Informations regarding the payment",
                    "required": [
                      "customerPhone",
                      "countryCode"
                    ],
                    "properties": {
                      "identifier": {
                        "type": "string"
                      },
                      "amount": {
                        "type": "object",
                        "required": [
                          "value",
                          "currency"
                        ],
                        "properties": {
                          "value": {
                            "type": "number",
                            "description": "Payment amount",
                            "format": "float"
                          },
                          "currency": {
                            "type": "string",
                            "default": "EUR"
                          }
                        }
                      },
                      "customerPhone": {
                        "type": "string",
                        "description": "Phone number that is connected to the MB WAY app and will accept the payment"
                      },
                      "countryCode": {
                        "type": "string",
                        "description": "Respective country code from the customer phone (+351 for portuguese number)"
                      }
                    }
                  },
                  "customer": {
                    "type": "object",
                    "description": "Informations regarding customer's notifications",
                    "properties": {
                      "notify": {
                        "type": "boolean",
                        "description": "A parameter that defines if the final client want to be notified of the payment request by email"
                      },
                      "failOver": {
                        "type": "string",
                        "description": "A parameter that defines if the final client will recieve an sms/email reminder notification in case of fail payment (\"0\" or \"1\" string value)"
                      },
                      "name": {
                        "type": "string",
                        "description": "Customer's name"
                      },
                      "email": {
                        "type": "string",
                        "description": "Customer's email (required if failOver = \"1\")"
                      },
                      "phone": {
                        "type": "string",
                        "description": "Customer's phone number  (required if failOver = \"1\", 9 digits string)"
                      }
                    }
                  }
                }
              },
              "examples": {
                "Example": {
                  "value": {
                    "payment": {
                      "identifier": "Test",
                      "amount": {
                        "value": 2,
                        "currency": "EUR"
                      },
                      "successUrl": "https://eupago.pt",
                      "failUrl": "https://eupago.pt",
                      "backUrl": "https://eupago.pt",
                      "lang": "PT"
                    },
                    "customer": {
                      "notify": true,
                      "email": "teste@eupago.pt"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "OK": {
                    "value": "{\n    \"transactionStatus\": \"Success\",\n    \"transactionID\": \"fc4740349d5b350eca08fa5e503fa0aa\",\n    \"reference\": \"2914983\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "transactionStatus": {
                      "type": "string",
                      "example": "Success"
                    },
                    "transactionID": {
                      "type": "string",
                      "example": "fc4740349d5b350eca08fa5e503fa0aa"
                    },
                    "reference": {
                      "type": "string",
                      "example": "2914983"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Auth Missing": {
                    "value": "{\n  \"transactionStatus\": \"Rejected\",\n  \"code\": \"APIKEY_MISSING\",\n  \"text\": \"API Key was not available in the request\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "transactionStatus": {
                      "type": "string",
                      "example": "Rejected"
                    },
                    "code": {
                      "type": "string",
                      "example": "APIKEY_MISSING"
                    },
                    "text": {
                      "type": "string",
                      "example": "API Key was not available in the request"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61d5aef4dda2500032ca60d3:65365aaffabe27000cd7c0dc"
}
```