Civil contracts: exchange, assignment of credits, mandate, deposit and commodatum

Last updated 16 July 2026 · Reviewed by Jaime Piñeira Pardo, lawyer registered with the ICAM bar, no. 138826 · English version of our Spanish guide.

Exchange, assignment of credits, mandate, deposit, commodatum and surety are 6 contracts of the Código Civil (Civil Code) of 1889 (articles 1526 to 1856) to swap goods, transfer a debt to a third party, entrust tasks, keep or lend a thing and guarantee the debt of another. Managora drafts each contract with its essential clauses, coordinates the signature and, if applicable, its elevation to a public deed.

We handle the whole procedure for you, from start to finish.

You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €36.00 (21% VAT included), plus the tasa (official fee) where there is one.

See the procedure

What is new, and the law that applies

  • Current rule: Código Civil, Real Decreto of 24 July 1889 (BOE-A-1889-4763), consolidated text as of 17 July 2026. It regulates the 6 contracts (exchange 1538-1541, assignment of credits 1526-1536, mandate 1709-1739, deposit 1758-1789, commodatum 1740-1752, surety 1822-1856).
  • Ley 8/2021 (the Spanish Act on support for persons with disabilities), of 2 June (in force since 3 September 2021): reformed article 1732 of the Código Civil. The mandate is no longer automatically extinguished by the disability of the mandator and preventive powers of attorney are consolidated.
  • Ley 11/2021 (the Spanish Anti-Fraud Measures Act), of 9 July (in force since 1 January 2022): the Catastro (Cadastre) reference value sets the minimum taxable base for Transfer Tax in the exchange of real estate.
  • There is no substantive reform in 2026 of exchange, assignment of credits, deposit, commodatum or surety.

What does each of these 6 civil contracts regulate?

Exchange (articles 1538 to 1541 of the Código Civil): each party is obliged to give one thing to receive another. Money can intervene as compensation (exchange with return). In what is not foreseen in its title, it is governed by the rules of sale and purchase (art. 1541).

Assignment of credits (articles 1526 to 1536): the creditor (assignor) transfers to a third party (assignee) a credit owed to them. The assignment includes accessory rights such as surety, mortgage or pledge (art. 1528). The assignor is liable for the existence and legitimacy of the credit, but not for the solvency of the debtor unless agreed (art. 1529). The debtor who pays before knowing of the assignment is released (art. 1527).

Mandate (articles 1709 to 1739): a person (mandatory) is obliged to provide a service or do something on behalf of or at the request of another (mandator). It is presumed free of charge unless the mandatory is professionally dedicated to it (art. 1711). To compromise, alienate, mortgage or any act of strict ownership, an express mandate is required (art. 1713).

Deposit (articles 1758 to 1789): one receives another's movable property with the obligation to keep it and return it when asked (art. 1758). It is free of charge unless agreed otherwise (art. 1760) and only falls on movable things (art. 1761). The depositary cannot use the thing without the express permission of the depositor (art. 1767).

Commodatum or loan for use (articles 1740 to 1752): one party delivers a non-fungible thing free of charge for the other to use for a certain time and return it. It is essentially free of charge (art. 1740): if the one who uses the thing pays any emolument, it ceases to be a commodatum (art. 1741). The bailor retains ownership and the bailee acquires the use, not the fruits.

Surety (articles 1822 to 1856): the guarantor is obliged to pay or comply for a third party in case the latter does not do so (art. 1822). It is not presumed: it must be express (art. 1827). The guarantor has the benefit of excussion, that is, they cannot be forced to pay until the debtor's assets are pursued (art. 1830), unless waived or in a joint and several surety.

How do exchange, assignment, mandate, deposit, commodatum and surety differ?

By what they transfer: exchange transfers the ownership of one thing in return for another; assignment of credits transfers a collection right; commodatum and deposit do not transfer ownership (only the use or safekeeping of the thing); mandate transfers nothing, it entrusts an action; surety transfers nothing, it guarantees another's debt.

By their free or onerous nature: exchange is always onerous; deposit and mandate are presumed free unless agreed otherwise; commodatum is essentially free by definition; assignment of credits and surety can be free or onerous.

2 frequent confusions: deposit versus commodatum (in a deposit you keep a thing and cannot use it; in a commodatum the thing is lent to you precisely to use it) and commodatum versus lease (commodatum is free; as soon as there is rent it is a rental). The comparative table at the end summarises the latter.

What essential clauses must each contract include?

Common to all: complete identification of the parties, precise description of the object (the thing, the credit, the task or the guaranteed debt), free or onerous nature and consideration if any, date, and signature. The private contract with a certain date protects against third parties (arts. 1218 and 1227).

Exchange: description and registry identification of each asset, monetary compensation if any, warranty against eviction (arts. 1539 and 1540) and warranty against hidden defects (which arrives by the referral of art. 1541 to the rules of sale and purchase, arts. 1484 and following). Assignment of credits: assigned credit and its accessories, price, scope of the assignor's liability and the convenience of notifying the debtor.

Mandate: whether it is general or special and the exact scope of the powers (with express mention for acts of strict ownership, art. 1713), remuneration and rendering of accounts. Deposit and commodatum: description of the thing, duration, form and time of return, and state in which it is delivered and returned.

Surety: guaranteed obligation, maximum amount, whether it is simple or joint and several, and whether the guarantor waives the benefits of excussion, division and order. These waivers completely change the guarantor's position, which is why Managora drafts them expressly and clearly.

Do I need a notario, a public deed or to pay taxes?

For their validity, these contracts do not require a special form: the freedom of form of article 1278 of the Código Civil applies, so a signed private document is fully valid and binding between the parties.

The public deed before a notario (Spanish notary public) is necessary or highly recommended when the contract involves real estate, in order to register it in the Registro de la Propiedad (Property Registry) and provide it with a certain date against third parties (art. 1280). The mandate for acts that must be recorded in a public document (for example, a power of attorney to sell a property) is also granted in a deed.

Taxes: the exchange is taxed by Transfer Tax (modelo 600, between individuals it taxes both transfers) or by VAT when the parties are entrepreneurs, and for real estate the minimum base is the Catastro (Cadastre) reference value. The assignment of credits has a more variable tax treatment: many onerous assignments are not subject or exempt (for example, due to the exemptions for credits and financial operations of art. 45 of the texto refundido del ITP y AJD (consolidated text of the ITP and AJD)), so not every onerous assignment is taxed by Transfer Tax. Free commodatum and deposit are not taxed by Transfer Tax, but a hidden liberality can have effects on IRPF (Spanish personal income tax) or Gift Tax. Managora analyses each case, calculates what corresponds and indicates the amount in the procedure file.

What changes in 2026?

The Código Civil (Real Decreto of 24 July 1889) remains the current regulation for the 6 contracts as of 17 July 2026. There is no substantive reform in 2026 of exchange, assignment of credits, deposit, commodatum or surety.

The most relevant live change affects the mandate: Ley 8/2021 (the Spanish Act on support for persons with disabilities), of 2 June, reformed article 1732. The mandate is no longer automatically extinguished by the disability of the mandator, and preventive powers of attorney are consolidated, which subsist or are activated if the mandator loses their capacity. It is a key tool to plan the management of your affairs.

In tax matters, the Catastro (Cadastre) reference value (Ley 11/2021, in force since 1 January 2022) continues to set the minimum taxable base for Transfer Tax in the exchange of real estate.

Step by step

  1. 1

    Choose the right contract

    Depending on what you want to do: swap goods (exchange), sell or transfer a debt owed to you (assignment of credits), entrust a task (mandate), keep (deposit), lend for free (commodatum) or guarantee another's debt (surety). Managora guides you if you have doubts.

  2. 2

    Gather the data

    Identification of the parties and description of the object: the goods to be exchanged, the credit being assigned, the mandate's task, the deposited or lent thing, or the guaranteed debt, with the consideration if any.

  3. 3

    Managora drafts the contract

    We prepare the document with all the essential clauses adapted to your case (warranties, powers, duration, surety waivers, etc.).

  4. 4

    Signature of the parties

    The private document is signed. To provide it with a certain date against third parties, signing with a reliable date is advisable.

  5. 5

    Notification and tax settlement, if applicable(Modelo 600: as a general rule, 30 working days from the signature)

    In the assignment of credits, the debtor is notified so they know who to pay. In the exchange, the self-assessment is submitted (modelo 600); in the assignment of credits, Managora first analyses if the operation is subject, since many onerous assignments are not subject or exempt.

  6. 6

    Public deed and registration, if there are properties

    Managora coordinates the signature before a notario and the registration in the Registro de la Propiedad (Property Registry) when the contract involves real estate or requires a public document.

A worked example

You are claimed €10,000 in a lawsuit that is still open. The creditor sells that litigious credit to a fund for €2,000. Article 1535 of the Código Civil allows you to extinguish the debt by paying the new owner what they paid, plus costs and interest (retraction of litigious credit).

  • Price paid by the assignee (the fund): €2,000
  • Costs satisfied by the assignee: €0 (in this scenario)
  • Interest on the price from the day it was paid: depending on the purchase date
  • Deadline to exercise the retraction: 9 days from when the assignee demands payment (art. 1535)

You can extinguish the debt by paying the fund €2,000 (plus costs and interest), not the claimed €10,000, if you exercise the retraction within the 9 days.

The 6 contracts at a glance

ContractArticles (Código Civil)Free or onerousWhat it transfers or does
Exchange1538-1541OnerousSwaps one thing for another (there may be compensation money)
Assignment of credits1526-1536Onerous or freeTransfers to a third party a credit owed to you
Mandate1709-1739Free unless agreed otherwiseEntrusts someone to act on your behalf
Deposit1758-1789Free unless agreed otherwiseKeeping another's movable thing and returning it
Commodatum (loan for use)1740-1752Essentially freeLending a non-fungible thing to use it and return it
Surety1822-1856Free or onerousGuaranteeing the debt of another

Benefits of the guarantor in civil surety

Guarantor's benefitArticleWhat it allows
Excussion1830-1831Not paying until the debtor's assets are pursued; it lapses if waived or if the surety is joint and several
Division1837With several guarantors, each is only liable for their part of the debt
Subrogation and reimbursement1838-1839If they pay, they take the creditor's place and claim everything paid from the debtor

Commodatum or lease: do I lend you the thing or rent it to you?

Commodatum (loan for use)Lease (rental)
PriceFree by definition (art. 1740); if there is payment of any emolument, it ceases to be a commodatum (art. 1741)Agreed periodic rent
RegulationArticles 1740 to 1752 of the Código CivilArticles 1542 and following of the Código Civil (and LAU if it is a home or premises)
What the person receiving the thing obtainsThe temporary use, not the fruits or ownershipThe use and enjoyment in exchange for the rent
ReturnAt the end of the agreed use or when the bailor has an urgent need (art. 1749)Upon expiration of the contract term or the LAU
TaxesFree: not taxed by Transfer Tax (possible effects on IRPF or Gift Tax)Rent subject to the landlord's IRPF; VAT on premises; ITP in certain cases

Official forms and where it is filed

  • Contract in a private document (there is no official model: the freedom of form of art. 1278 of the Código Civil applies)
  • Modelo 600: Impuesto sobre Transmisiones Patrimoniales y AJD (Transfer Tax and AJD) (self-assessment at the Agencia Tributaria of your Autonomous Community; applies to exchange; in the assignment of credits only if the operation is subject, since many are not subject or exempt)
  • Public deed before a notario and registration in the Registro de la Propiedad (Property Registry) (necessary for real estate, art. 1280 of the Código Civil)

Frequently asked questions

Does an exchange or loan contract have to go before a notario?

Not for its validity: a signed private document is valid and binding (art. 1278 of the Código Civil). The public deed is needed to register in the Registro de la Propiedad (Property Registry) when there is real estate and to give a certain date against third parties. Managora coordinates the signature before a notario when applicable.

Can I sell or transfer a debt owed to me?

Yes, through the assignment of credits (articles 1526 and following). You do not need the debtor's consent, but it is advisable to notify them: if they pay you before knowing of the assignment, they are released (art. 1527).

What is the difference between deposit and commodatum?

In a deposit you keep someone else's thing and cannot use it without permission (art. 1767). In a commodatum a thing is lent to you for free precisely so that you use it and return it (art. 1740). Keeping versus using is the key.

If I am a guarantor, do I have to pay before the debtor?

No, unless the surety is joint and several or you have waived it. By the benefit of excussion (art. 1830), the creditor must first pursue the debtor's assets. Always check if the contract includes waivers to the benefits of excussion, division or order.

Does lending a home for free (commodatum) pay taxes?

Being free of charge, it is not taxed by Transfer Tax, but it can have effects on IRPF or Gift Tax if it conceals a liberality. It is advisable to document it in writing. Managora prepares it and indicates what corresponds in the procedure file.

How much does it cost for Managora to prepare the contract?

You can see the updated amount in the corresponding procedure file (exchange contract, assignment of credits, civil mandate, deposit, commodatum or civil surety). Managora drafts the contract and, if applicable, coordinates the signature before a notario and the tax settlement.

We handle the whole procedure for you, from start to finish.

You describe your case in a chat and sign; we file it with the Spanish authorities. Fixed price from €36.00 (21% VAT included), plus the tasa (official fee) where there is one.

See the procedure

Related procedures

The price, the tasa (official fee) and the current deadlines are on each procedure page.

Related guides