Update an IBAN

PATCH /v2/ibans/{id}

This operation allows you to update an IBAN name or change its status. Only provided parameters have an affect on the current state of an IBAN.

Path parameters

  • id string(uuid) Required

    ID of the IBAN.

Body Required

  • name string

    New IBAN name.

  • status string

    New IBAN status.

    Values are active or inactive.

Responses

  • 200 object

    OK

    • id string(uuid) Required

      ID of the IBAN.

    • account_id string(uuid) Required

      ID of the account this IBAN belongs to.

    • iban string Required

      Actual value of the IBAN.

    • name string Required

      Name of the IBAN.

    • status string Required

      Status of the IBAN. It determines if an IBAN accepts incoming or outgoing transfers.

      Values are active or inactive.

    • type string Required

      Flag indicating if this IBAN is the main IBAN of an account, or a virtual IBAN. Please note that main IBANs cannot be updated or deleted.

      Values are main or virtual.

PATCH /v2/ibans/{id}
curl \
 -X PATCH https://api.memo.bank/v2/ibans/fe98f29d-5165-45ff-83f9-d7aa83e970b5 \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","status":"active"}'
Request example
{
  "name": "string",
  "status": "active"
}
Response example (200)
{
  "id": "fe98f29d-5165-45ff-83f9-d7aa83e970b5",
  "account_id": "de2284c3-0360-4e4a-b10d-771f75b772d4",
  "iban": "FR27590171083068762111832788",
  "name": "customer no12345",
  "status": "active",
  "type": "main"
}