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

# Floa - Payment

Creates a request to allow the customer to pay using Floa Pay service.

> 🚧
>
> These requests uses ApiKey authentication on their header: **ApiKey xxxx-xxxx-xxxx-xxxx-xxxx**

# 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/floa/create": {
      "post": {
        "summary": "Floa - Payment",
        "description": "Creates a request to allow the customer to pay using Floa Pay service.",
        "operationId": "floa-create",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "payment",
                  "installmentCode",
                  "items"
                ],
                "properties": {
                  "payment": {
                    "type": "object",
                    "description": "Informations regarding the payment",
                    "required": [
                      "lang",
                      "backUrl",
                      "successUrl",
                      "failUrl"
                    ],
                    "properties": {
                      "identifier": {
                        "type": "string"
                      },
                      "amount": {
                        "type": "object",
                        "required": [
                          "value",
                          "currency"
                        ],
                        "properties": {
                          "value": {
                            "type": "number",
                            "description": "Payment amount",
                            "format": "float"
                          },
                          "currency": {
                            "type": "string",
                            "default": "EUR"
                          }
                        }
                      },
                      "lang": {
                        "type": "string",
                        "description": "Defines the Language of the form. \"PT\" for Portuguese, \"ES\" for Spanish or \"FR\" for French",
                        "enum": [
                          "PT",
                          "ES",
                          "FR"
                        ]
                      },
                      "backUrl": {
                        "type": "string",
                        "description": "The customer will be forwarded to this url if the user presses back."
                      },
                      "successUrl": {
                        "type": "string",
                        "description": "The customer will be forwarded to this url if the payment process is successful.The payer will be forwarded to this url if the user presses back."
                      },
                      "failUrl": {
                        "type": "string",
                        "description": "The customer will be forwarded to this url if the payment process fails (eg: no funds)"
                      },
                      "reportDelayInDays": {
                        "type": "string",
                        "description": "Only for Pay Later installmentCodes ( 'BC1XCD', 'BC1XFD','BC1XCDSP', 'BC1XFDSP', 'BC1XFDPT')"
                      }
                    }
                  },
                  "installmentCode": {
                    "type": "string",
                    "description": "The installment code defines the number of installments in which the customer will pay and whether there will be fees for it. It is limited by country and amount.",
                    "enum": [
                      "BC3XFPT"
                    ]
                  },
                  "items": {
                    "type": "array",
                    "description": "All items in the order. This param may include different objects (items).",
                    "items": {
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "price": {
                          "type": "number",
                          "description": "Total price for this kind of product (the sum of all quantities)",
                          "format": "float"
                        },
                        "quantity": {
                          "type": "integer",
                          "description": "Number of products of this kind",
                          "format": "int32"
                        },
                        "category": {
                          "type": "string",
                          "description": "Indicate the product category. For example Tech"
                        },
                        "subCategory": {
                          "type": "string",
                          "description": "Indicate the subcategory of the product. For example Headphones"
                        }
                      },
                      "required": [
                        "name",
                        "price",
                        "quantity",
                        "category",
                        "subCategory"
                      ],
                      "type": "object"
                    }
                  },
                  "customer": {
                    "type": "object",
                    "description": "Customer information that can be filled later on the Floa form if not sent on this request.",
                    "properties": {
                      "civility": {
                        "type": "string",
                        "description": "The courtesy title \"Mr\" from Mister is used for men regardless of marital status. \"Mrs\" from Mistress and \"Ms\" from \"Miss\" are used for married and unmarried women, respectively.",
                        "enum": [
                          "'Mr'",
                          "'Ms'",
                          "'Mrs'"
                        ]
                      },
                      "firstName": {
                        "type": "string",
                        "description": "Customer first name"
                      },
                      "lastName": {
                        "type": "string",
                        "description": "Customer last name"
                      },
                      "secondLastName": {
                        "type": "string",
                        "description": "Mandatory for \"Mrs\" civility only. (Usually the husband last name when it's adopted by the wife)."
                      },
                      "birthDate": {
                        "type": "string",
                        "description": "Birth date of the customer. Please input on the format YYYY-MM-DD (example 2000-05-07)"
                      },
                      "birthDepartment": {
                        "type": "string",
                        "description": "The birth department field it's mandatory and applied for France only"
                      },
                      "email": {
                        "type": "string",
                        "description": "Customer email address"
                      },
                      "phoneNumber": {
                        "type": "string",
                        "description": "Customer phone number"
                      },
                      "countryCodePhone": {
                        "type": "string",
                        "description": "Country calling code for the client phone. For portuguese numbers for example, you must input \"+351\""
                      },
                      "vatNumber": {
                        "type": "string",
                        "description": "VAT identification number"
                      },
                      "billingAddress": {
                        "type": "object",
                        "description": "Customer billing address information",
                        "properties": {
                          "address": {
                            "type": "string",
                            "description": "Street name"
                          },
                          "zipCode": {
                            "type": "string",
                            "description": "Postcode must be entered in the format of the country in question. For example, for Portugal enter 4150-124"
                          },
                          "city": {
                            "type": "string"
                          },
                          "countryCode": {
                            "type": "string",
                            "description": "Defines the Language of the form. \"PT\" for Portugal, \"ES\" for Spain or \"FR\" for France",
                            "enum": [
                              "PT",
                              "ES",
                              "FR"
                            ]
                          }
                        }
                      },
                      "": {
                        "type": "string"
                      }
                    }
                  },
                  "shippingAddress": {
                    "type": "object",
                    "description": "Address where the products will be shipped to the customer",
                    "properties": {
                      "shippingMethod": {
                        "type": "string",
                        "description": "STD -> Standard Delivery, EXP -> Express Delivery, TRK -> Tracked Delivery , REG -> Registed Delivery, COL -> Colissimo, CHR -> Chronopost, REL -> Point Relais, TNT , UPS , TRP -> Transporter , MAG -> Store Delivery, LCK -> Lockers, VIR -> Virtual, RIM ->Immediate pick-up store",
                        "enum": [
                          "STD",
                          "EXP",
                          "TRK",
                          "REG",
                          "COL",
                          "CHR",
                          "REL",
                          "TNT",
                          "UPS",
                          "TRP",
                          "MAG",
                          "LCK",
                          "VIR",
                          "RIM"
                        ]
                      },
                      "address": {
                        "type": "string",
                        "description": "Street name"
                      },
                      "zipCode": {
                        "type": "string",
                        "description": "Postcode must be entered in the format of the country in question. For example, for Portugal enter 4150-124"
                      },
                      "city": {
                        "type": "string"
                      },
                      "countryCode": {
                        "type": "string",
                        "description": "Defines the country to be shipped the items. \"PT\" for Portugal, \"ES\" for Spain or \"FR\" for France",
                        "enum": [
                          "PT",
                          "ES",
                          "FR"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "201",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"transactionStatus\": \"Success\",\n    \"transactionID\": \"019257d2ea277c9a8d7a3abb07833c9c\",\n    \"reference\": \"159213\",\n    \"redirectUrl\": \"https://sandbox.eupago.pt/api/extern/floa/form/019257d2ea277c9a8d7a3abb07833c9c\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "transactionStatus": {
                      "type": "string",
                      "example": "Success"
                    },
                    "transactionID": {
                      "type": "string",
                      "example": "019257d2ea277c9a8d7a3abb07833c9c"
                    },
                    "reference": {
                      "type": "string",
                      "example": "159213"
                    },
                    "redirectUrl": {
                      "type": "string",
                      "example": "https://sandbox.eupago.pt/api/extern/floa/form/019257d2ea277c9a8d7a3abb07833c9c"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"transactionStatus\": \"Rejected\",\n    \"code\": \"COUNTRY_INVALID\",\n    \"text\": \"Country is invalid\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "transactionStatus": {
                      "type": "string",
                      "example": "Rejected"
                    },
                    "code": {
                      "type": "string",
                      "example": "COUNTRY_INVALID"
                    },
                    "text": {
                      "type": "string",
                      "example": "Country is invalid"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61d5aef4dda2500032ca60d3:66feca20add99600181564fe"
}
```