API DOCUMENTATION
addOperation (pOST)
Adds the given operation and returns the id.
Body params:
- id_status (integer, optional): The operation’s status. The status ids can be obtained in the section Operation status.
- operation_name (string, optional): The operation’s name.
- id_activity (string, optional): The operation’s activity id. The activity ids can be obtained with the call getActivities.
- id_customer (string, required): The operation’s customer id. The customer ids can be obtained with the call getCustomers.
- id_property (string, required): The operation’s property id. The property ids can be obtained with the call getProperties.
- id_user (string, optional): The operation’s user id. The user ids can be obtained with the call getUsers.
- booking_date (date, optional): The operation’s booking date.
- expiration_date (date, optional): The operation’s expiration date.
- closing_date (date, optional): The operation’s closing date.
- general_comments (string, optional): The operation’s general comments.
- accounting_comments (string, optional): The operation’s accounting comments.
- deposited_amount (decimal, optional): The operation’s deposited amount.
- signature_date (date, optional): The operation’s signature date.
- signature_collected (boolean, optional): Boolean indicating if the signature is collected.
- tenant_commission_signature (integer, optional): The operation’s tenant commission signature.
- owner_commission_signature (integer, optional): The operation’s owner commission signature.
- tenant_commission_invoice_signature (string, optional): The operation’s tenant commission invoice signature.
- owner_commission_invoice_signature (string, optional): The operation’s owner commission invoice signature.
- real_estate_charge_amount_signature (integer, optional): The operation’s real estate charge amount signature.
- charge_amount_signature (integer, optional): The operation’s charge amount signature.
- signature_notes (integer, optional): The operation’s signature notes.
- total_commission_signature (integer, optional): The operation’s total commission signature.
- recruiter1_signature (integer, optional): The operation’s first recruiter’s signature.
- recruiter2_signature (integer, optional):The operation’s second recruiter’s signature.
- seller_signature (integer, optional): The operation’s seller signature.
- recruiter1_commission_signature (integer, optional): The operation’s first recruiter’s commission signature.
- recruiter1_expenses_signature (integer, optional): The operation’s first recruiter’s expenses signature.
- recruiter1_paid_signature (boolean, optional): Boolean indicating if the first recruiter’s signature has been paid.
- recruiter2_commission_signature (integer, optional): The operation’s second recruiter’s commission signature.
- recruiter2_expenses_signature (integer, optional): The operation’s second recruiter’s expenses signature.
- recruiter2_paid_signature (boolean, optional): Boolean indicating if the second recruiter’s signature has been paid.
- seller1_commission_signature (integer, optional): The operation’s first seller’s commission signature.
- seller2_commission_signature (integer, optional): The operation’s second seller’s commission signature.
- seller1_expenses_signature (integer, optional): The operation’s first seller’s expenses signature.
- seller2_expenses_signature (integer, optional): The operation’s second seller’s expenses signature.
- seller1_paid_signature (integer, optional): Boolean indicating if the first seller’s signature has been paid.
- seller2_paid_signature (integer, optional): Boolean indicating if the first seller’s signature has been paid.
- deposit_date (date, optional): The operation’s deposit date.
- deposit_commission (decimal, optional): The operation’s deposit commission.
- deposit_commission_invoice (string, optional): The operation’s deposit commission invoice.
- deposit_collected (integer, optional): Boolean indicating if the deposit is collected.
- recruiter1_deposit_commission (integer, optional): The operation’s first recruiter’s deposit commission.
- recruiter2_deposit_commission (integer, optional): The operation’s second recruiter’s deposit commission.
- seller1_deposit_commission (integer, optional): The operation’s first seller deposit commission.
- seller2_deposit_commission (integer, optional): The operation’s second seller’s deposit commission.
- recruiter1_deposit_paid (integer, optional): Boolean indicating if the first recruiter’s deposit has been paid.
- recruiter2_deposit_paid (integer, optional): Boolean indicating if the second recruiter’s deposit has been paid.
- seller1_deposit_paid (integer, optional): Boolean indicating if the first seller’s deposit has been paid.
- seller2_deposit_paid (integer, optional): Boolean indicating if the second seller’s deposit has been paid.
- recruiter1_deposit_expenses (integer, optional): The operation’s first recruiter’s deposit expenses.
- recruiter2_deposit_expenses (integer, optional): The operation’s second recruiter’s expenses.
- seller1_deposit_expenses (integer, optional): The operation’s first seller’s deposit expenses.
- seller2_deposit_expenses (integer, optional): The operation’s second seller’s deposit expenses.
- real_estate_deposit_charge_amount (integer, optional): The operation’s real estate’s deposit charge amount.
- deposit_charge_amount (integer, optional): The operation’s deposit charge amount.
- deposit_notes (string, optional): The operation’s deposit notes.
- deposit_seller (integer, optional): The operation’s deposit seller.
- deed_date (date, optional): The operation’s deed date.
- deed_commission (integer, optional): The operation’s deed commission.
- deed_commission_invoice (string, optional): The operation’s deed commission invoice.
- deed_collected (integer, optional): The operation’s deed collected.
- recruiter1_deed_commission (integer, optional): The operation’s first recruiter’s deed commission.
- recruiter2_deed_commission (integer, optional): The operation’s second recruiter’s deed commission.
- seller1_deed_commission (integer, optional): The operation’s first seller’s deed commission.
- seller2_deed_commission (integer, optional): The operation’s second seller’s deed commission.
- recruiter1_deed_paid (integer, optional): Boolean indicating if the first recruiter’s deed has been paid.
- recruiter2_deed_paid (integer, optional): Boolean indicating if the second recruiter’s deed has been paid.
- seller1_deed_paid (integer, optional): Boolean indicating if the first seller’s deed has been paid.
- seller2_deed_paid (integer, optional): Boolean indicating if the first seller’s deed has been paid.
- recruiter1_deed_expenses (integer, optional): The operation’s first recruiter’s deed expenses.
- recruiter2_deed_expenses (integer, optional): The operation’s second recruiter’s deed expenses.
- seller1_deed_expenses (integer, optional): The operation’s first seller’s deed expenses.
- seller2_deed_expenses (integer, optional): The operation’s second seller’s deed expenses.
- total_deed_commission (integer, optional): The operation’s total deed commission.
- deed_seller (integer, optional): The operation’s deed seller.
- deed_notes (string, optional): The operation’s deed notes.
- recruiter_1 (string, optional): The operation’s first recruiter’s id. The recruiter ids can be obtained with the call getUsers.
- recruiter_2 (string, optional):The operation’s second recruiter’s id. The recruiter ids can be obtained with the call getUsers.
- seller_1 (string, optional): The operation’s first seller’s id. The seller ids can be obtained with the call getUsers.
- seller_2 (string, optional): The operation’s second seller’s id. The seller ids can be obtained with the call getUsers.
- rental_cost (decimal, optional): The operation’s rental cost.
- sale_cost (decimal, optional): The operation’s sale cost.
- fees (string, optional): The operation’s fees.
- estimated_deposit_date (date, optional): The operation’s estimated deposit date.
- deposit_expiration_date (date, optional): The operation’s deposit expiration date.
- deposit_signature_date (date, optional): The operation’s deposit signature date.
- estimated_deed_date (date, optional): The operation’s estimated deed date.
- deed_expiration_date (date, optional): The operation’s deed expiration date.
- deed_signature_date (date, optional): The operation’s deed signature date.
- id_operation_type (integer, optional): The operation’s type id. You can get all the operation types with the call getOperationTypes.
- offered_price (decimal, optional): The operation’s offered price.
- closing_price (decimal, optional): The operation’s closing price.
- signature_collection_date (date, optional): The operation’s signature collection date.
- deposit_collection_date (date, optional): The operation’s deposit collection date.
- customer_name (string, required): The operation’s customer name.
- customer_surnames (string, optional): The operation’s customer surnames.
- nif_cif (string, optional): The operation’s customer NIF/CIF.
- phone_number (string, optional): The operation’s customer phone number.
- whatsapp (boolean, optional): Boolean that indicates if the operation’s customer has whatsapp.
- language (string, optional): The operation’s customer language.
- email (string, optional): The operation’s customer email.
Request examples
CURL:
curl --location 'https://movin.cloud/api/real-estate/add-operation' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer SECRETOKEN'
Body example:
{
"id_status": 1,
"operation_name": "Test operation",
"id_activity": "MjYk22GSsz==",
"id_customer": "MjYkM3faAg==",
"id_property": "MjYkMzg4Mg==",
"id_user": "MjA&fi98Mg==",
"booking_date": "2024-07-22",
"expiration_date": "2024-08-22",
"closing_date": "2024-08-05",
"general_comments": "sdjfifdiuhs isjdfoijdsfoijd skdoidjaosf iiodjsaoijdss asdsadfsd sdfdggf gfghbd rdgfnb rdgbfvcvxvc xcvxf d dx",
"accounting_comments": "dsvfds sdvfgbf svvsdcvfd vvvvvvvvvds dscsd cdccccccccd s c sddddddc sdcccds ddd",
"deposited_amount": 456.12,
"signature_date": null,
"signature_collected": null,
"tenant_commission_signature": null,
"owner_commission_signature": null,
"tenant_commission_invoice_signature": null,
"owner_commission_invoice_signature": null,
"real_estate_charge_amount_signature": null,
"charge_amount_signature": null,
"signature_notes": null,
"total_commission_signature": null,
"recruiter1_signature": null,
"recruiter2_signature": null,
"seller_signature": null,
"recruiter1_commission_signature": null,
"recruiter1_expenses_signature": null,
"recruiter1_paid_signature": null,
"recruiter2_commission_signature": null,
"recruiter2_expenses_signature": null,
"recruiter2_paid_signature": null,
"seller1_commission_signature": null,
"seller2_commission_signature": null,
"seller1_expenses_signature": null,
"seller2_expenses_signature": null,
"seller1_paid_signature": null,
"seller2_paid_signature": null,
"deposit_date": null,
"deposit_commission": null,
"deposit_commission_invoice": null,
"deposit_collected": null,
"recruiter1_deposit_commission": null,
"recruiter2_deposit_commission": null,
"seller1_deposit_commission": null,
"seller2_deposit_commission": null,
"recruiter1_deposit_paid": null,
"recruiter2_deposit_paid": null,
"seller1_deposit_paid": null,
"seller2_deposit_paid": null,
"recruiter1_deposit_expenses": null,
"recruiter2_deposit_expenses": null,
"seller1_deposit_expenses": null,
"seller2_deposit_expenses": null,
"real_estate_deposit_charge_amount": null,
"deposit_charge_amount": null,
"deposit_notes": null,
"deposit_seller": null,
"deed_date": null,
"deed_commission": null,
"deed_commission_invoice": null,
"deed_collected": null,
"recruiter1_deed_commission": null,
"recruiter2_deed_commission": null,
"seller1_deed_commission": null,
"seller2_deed_commission": null,
"recruiter1_deed_paid": null,
"recruiter2_deed_paid": null,
"seller1_deed_paid": null,
"seller2_deed_paid": null,
"recruiter1_deed_expenses": null,
"recruiter2_deed_expenses": null,
"seller1_deed_expenses": null,
"seller2_deed_expenses": null,
"total_deed_commission": null,
"deed_seller": null,
"deed_notes": null,
"recruiter_1": "MjQkNDEyMjA=",
"recruiter_2": null,
"seller_1": "MjQkNDEyMjA=",
"seller_2": null,
"rental_cost": null,
"sale_cost": null,
"fees": null,
"estimated_deposit_date": null,
"deposit_expiration_date": null,
"deposit_signature_date": null,
"estimated_deed_date": null,
"deed_expiration_date": null,
"deed_signature_date": null,
"id_operation_type": 1,
"offered_price": null,
"closing_price": null,
"signature_collection_date": null,
"deposit_collection_date": null,
"customer_name": "Pep",
"customer_surnames": "Ferrer Ventura",
"nif_cif": "87473278F",
"phone_number": "7987987879",
"whatsapp": 1,
"language": "ca",
"email": "kajdas@sdsd.sd"
}
…
Response Example
{
“data”: [
“id_operation”: “Mkda24w8=”,
"id_customer": "Mkf31Afo95="
]
}