Fipto - OpenAPI 3.0
1.2.2

This is a REST API specifications based on OpenAPI 3.0 for Fipto solution.

This is the documentation for version 1.2.2 of the API. Last update on Aug 30, 2023.

Base URL
https://api.fipto.app

Create a beneficiary

POST /companies/{company_id}/beneficiaries

Create a beneficiary for your company. A beneficiary is necessary to initiate a payout.

Path parameters

  • company_id string Required

    The Company ID given by Fipto.

    Format should match the following pattern: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}.

application/json

Body

  • data object Required

    Fields required on all objects.

    Hide data attributes Show data attributes
    • type string Required

      Default value is beneficiary.

    • attributes object Required
      Hide attributes attributes Show attributes attributes
      • description string Required

        Description of the beneficiary that you want to add (e.g. "external wallet account").

      • wallet_details object Required
        Any of:
      • beneficiary_info object Required
        One of:

Responses

  • 201

    Beneficiary successfully created

    Hide response attributes Show response attributes object
    • meta object Required
      Hide meta attributes Show meta attributes
      • request_id string Required

        Unique identifier generated by the server.

        Format should match the following pattern: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}.

      • Information about the parameters in the request. All query string parameters provided (or implicit/with default value) will be returned

    • data object

      Fields required on all objects.

      Hide data attributes Show data attributes
      • id string Required

        Unique identifier generated by the server.

        Format should match the following pattern: [0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}.

      • type string Required

        Default value is beneficiary.

      • attributes object Required
        Hide attributes attributes Show attributes attributes
        • description string Required

          Description of the beneficiary that you want to add (e.g. "external wallet account").

        • wallet_details object Required
          Any of:
        • beneficiary_info object Required
          One of:
  • 400

    Bad Request

POST /companies/{company_id}/beneficiaries
curl \
 -X POST https://api.fipto.app/companies/9de0691c-bc8d-409b-8f40-75d4f45db2f3/beneficiaries \
 -H "Content-Type: application/json" \
 -d '{"data":{"type":"beneficiary","attributes":{"description":"my beneficiary","wallet_details":{"asset":"BTC","address":"bc1***"},"beneficiary_info":{"type":"individual","firstname":"Sam","lastname":"Doe","address":{"street_address":"25 rue François 1er","zip_code":"75008","city":"Paris","country_code":"FR"}}}}}'
{
  "data": {
    "type": "beneficiary",
    "attributes": {
      "description": "my beneficiary",
      "wallet_details": {
        "asset": "BTC",
        "address": "bc1***"
      },
      "beneficiary_info": {
        "type": "individual",
        "firstname": "Sam",
        "lastname": "Doe",
        "address": {
          "street_address": "25 rue François 1er",
          "zip_code": "75008",
          "city": "Paris",
          "country_code": "FR"
        }
      }
    }
  }
}
{
  "data": {
    "type": "beneficiary",
    "attributes": {
      "description": "my beneficiary",
      "wallet_details": {
        "asset": "BTC",
        "address": "bc1***"
      },
      "beneficiary_info": {
        "type": "company",
        "name": "Acme",
        "address": {
          "street_address": "25 rue François 1er",
          "zip_code": "75008",
          "city": "Paris",
          "country_code": "FR"
        }
      }
    }
  }
}
{
  "data": {
    "type": "beneficiary",
    "attributes": {
      "description": "my beneficiary",
      "wallet_details": {
        "asset": "BTC",
        "address": "bc1***"
      },
      "beneficiary_info": {
        "type": "self"
      }
    }
  }
}
{
  "meta": {
    "request_id": "dba2bB95-28eD-E9E9-9ABC-7535831512bb"
  },
  "data": {
    "type": "beneficiary",
    "id": "fea2bB77-54eF-E9E9-9ABC-6535831512aa",
    "attributes": {
      "description": "my beneficiary",
      "wallet_details": {
        "asset": "BTC",
        "address": "bc1***"
      },
      "beneficiary_info": {
        "type": "individual",
        "firstname": "Sam",
        "lastname": "Doe",
        "address": {
          "street_address": "25 rue François 1er",
          "zip_code": "75008",
          "city": "Paris",
          "country_code": "FR"
        }
      }
    }
  }
}
{
  "meta": {
    "request_id": "dba2bB95-28eD-E9E9-9ABC-7535831512bb"
  },
  "data": {
    "type": "beneficiary",
    "id": "fea2bB77-54eF-E9E9-9ABC-6535831512aa",
    "attributes": {
      "description": "my beneficiary",
      "wallet_details": {
        "asset": "BTC",
        "address": "bc1***"
      },
      "beneficiary_info": {
        "type": "company",
        "name": "Acme",
        "address": {
          "street_address": "25 rue François 1er",
          "zip_code": "75008",
          "city": "Paris",
          "country_code": "FR"
        }
      }
    }
  }
}
{
  "meta": {
    "request_id": "dba2bB95-28eD-E9E9-9ABC-7535831512bb"
  },
  "data": {
    "type": "beneficiary",
    "id": "fea2bB77-54eF-E9E9-9ABC-6535831512aa",
    "attributes": {
      "description": "my beneficiary",
      "wallet_details": {
        "asset": "BTC",
        "address": "bc1***"
      },
      "beneficiary_info": {
        "type": "self"
      }
    }
  }
}
Response examples (400)
{
  "meta": {
    "request_id": "XXXX-XXXX-XXXX-XXXX-XXXX"
  },
  "errors": {
    "code": "invalid_identifier",
    "source": {
      "pointer": "/data/attributes/wallet_details/address"
    },
    "title": "Invalid Address",
    "detail": "This address is not valid for the selected asset network"
  }
}