---
title: Create SEPA wallet
slug: docs/demo/create-sepa-wallet
description: Learn how to make a POST request to create SEPA payment details for a fictive API with this code example. This document includes the required headers and data fields to successfully execute the request. Master the process effortlessly!
docTags: 
createdAt: 2022-03-21T20:12:45.000Z
---

{
  "id": "YhO8JD7jO399QAdkwqcZO",
  "data": {
    "url": "https://api.fictive.com/REST/api/accounts/{accountReference}/payment-details/sepa",
    "name": "Create SEPA wallet",
    "method": "POST",
    "request": {
      "pathParameters": [
        {
          "kind": "required",
          "name": "accountReference",
          "type": "string"
        }
      ],
      "queryParameters": [],
      "headerParameters": [
        {
          "kind": "optional",
          "name": "X-TokenId",
          "type": "string",
          "description": "The eSuite Token Id"
        },
        {
          "kind": "optional",
          "name": "X-SessionId",
          "type": "string",
          "description": "The eSuite Session Id"
        },
        {
          "kind": "required",
          "name": "X-Version",
          "type": "string",
          "description": "The eSuite Version"
        },
        {
          "kind": "optional",
          "name": "Origin",
          "type": "string",
          "description": "The eSuite Origin"
        }
      ],
      "bodyDataParameters": [
        {
          "kind": "required",
          "name": "accountManageSepaDirectDebit",
          "type": "object",
          "schema": [
            {
              "kind": "optional",
              "name": "accountHolderName",
              "type": "string",
              "example": "",
              "description": "Account holder name."
            },
            {
              "kind": "optional",
              "name": "iban",
              "type": "string",
              "example": "",
              "description": "The IBAN."
            },
            {
              "kind": "optional",
              "name": "bic",
              "type": "string",
              "example": "",
              "description": "The BIC."
            },
            {
              "kind": "optional",
              "name": "contractReference",
              "type": "string",
              "example": "",
              "description": "The Contract Reference which references a Sentinel Service. The reference of the Service being purchased."
            },
            {
              "kind": "optional",
              "name": "mandateReference",
              "type": "string",
              "example": "",
              "description": "The mandate reference."
            },
            {
              "kind": "optional",
              "name": "updateExistingMandate",
              "type": "boolean",
              "example": "",
              "description": "Update existing mandate or not"
            }
          ],
          "modelRef": "#/definitions/FictiveGlobal.Api.Rest.Dtos.v4.PaymentDetails.SepaDirectDebitPaymentDetailsRequest",
          "customType": "FictiveGlobal.Api.Rest.Dtos.v4.PaymentDetails.SepaDirectDebitPaymentDetailsRequest",
          "isExpanded": true,
          "description": "Sepa Direct Payment Details Request."
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "schema": [
              {
                "kind": "optional",
                "name": "accountHolderName",
                "type": "string",
                "example": "",
                "description": "Account holder name."
              },
              {
                "kind": "optional",
                "name": "iban",
                "type": "string",
                "example": "",
                "description": "The IBAN."
              },
              {
                "kind": "optional",
                "name": "bic",
                "type": "string",
                "example": "",
                "description": "The BIC."
              },
              {
                "kind": "optional",
                "name": "contractReference",
                "type": "string",
                "example": "",
                "description": "The Contract Reference which references a Sentinel Service. The reference of the Service being purchased."
              },
              {
                "kind": "optional",
                "name": "mandateReference",
                "type": "string",
                "example": "",
                "description": "The mandate reference."
              },
              {
                "kind": "optional",
                "name": "bankCountry",
                "type": "string",
                "example": "",
                "description": "BankCountry"
              },
              {
                "kind": "optional",
                "name": "sepaMandateCreationDate",
                "type": "string<date-time>",
                "example": "",
                "description": "SEPAMandateCreationDate"
              }
            ],
            "modelRef": "#/definitions/FictiveGlobal.Api.Rest.Dtos.v3.PaymentDetails.SepaDirectDebitPaymentDetails",
            "customType": "FictiveGlobal.Api.Rest.Dtos.v3.PaymentDetails.SepaDirectDebitPaymentDetails",
            "isExpanded": true,
            "description": "CPK-4475\r\n            Sepa Direct Payment Details."
          }
        ],
        "isExpanded": true,
        "statusCode": "201",
        "description": "Created",
        "jsonExample": "{\n  \"accountHolderName\": \"Gianni Pino\",\n  \"iban\": \"***************056\",\n  \"bic\": \"OKOYFIHH\",\n  \"contractReference\": \"0010CFMV1MW8S6W4P1\",\n  \"mandateReference\": \"12345FVDDCF\",\n  \"bankCountry\": \"GB\",\n  \"sepaMandateCreationDate\": \"2021-09-21T00:00:00+00:00\"\n}"
      },
      {
        "isExpanded": true,
        "statusCode": "400",
        "description": "Unable to authenticate using the provided session",
        "jsonExample": ""
      },
      {
        "isExpanded": true,
        "statusCode": "401",
        "description": "Not Authorized",
        "jsonExample": ""
      },
      {
        "isExpanded": true,
        "statusCode": "404",
        "description": "Account Does Not Exist.",
        "jsonExample": ""
      },
      {
        "isExpanded": true,
        "statusCode": "500",
        "description": "Internal Server Error",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "This endpoint will provide the ability to create a new SEPA Direct Debit wallet on the eSuite platform",
    "examples": {
      "languages": [
        {
          "id": "d3QbDabaw4UCLYhj6-upg",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.fictive.com/REST/api/accounts/{accountReference}/payment-details/sepa \\\n     --header 'accept: application/json' \\\n     --header 'x-version: string'"
        },
        {
          "id": "mX2kcBlBoQ-bqvi7EAz5a",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\nmyHeaders.append(\"x-version\", \"string\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.fictive.com/REST/api/accounts/{accountReference}/payment-details/sepa\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "vRUplRLQXeziV8kIv-dVv",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fictive.com/REST/api/accounts/{accountReference}/payment-details/sepa\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest[\"x-version\"] = \"string\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "3ZbAeAGlFXVwELOlYu4hF",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.fictive.com/REST/api/accounts/{accountReference}/payment-details/sepa\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json',\n   'x-version': 'string'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "d3QbDabaw4UCLYhj6-upg"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-201",
          "language": "201",
          "code": "{\n  \"accountHolderName\": \"Gianni Pino\",\n  \"iban\": \"***************056\",\n  \"bic\": \"OKOYFIHH\",\n  \"contractReference\": \"0010CFMV1MW8S6W4P1\",\n  \"mandateReference\": \"12345FVDDCF\",\n  \"bankCountry\": \"GB\",\n  \"sepaMandateCreationDate\": \"2021-09-21T00:00:00+00:00\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// Unable to authenticate using the provided session\n"
        },
        {
          "id": "response-2-401",
          "language": "401",
          "code": "// Not Authorized\n"
        },
        {
          "id": "response-3-404",
          "language": "404",
          "code": "// Account Does Not Exist.\n"
        },
        {
          "id": "response-4-500",
          "language": "500",
          "code": "// Internal Server Error\n"
        }
      ],
      "selectedLanguageId": "response-0-201"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}