GetAllOffers

Function returns all offers

GET https://rest.crmango.com/api/GetAllOffers

Authorization

1 Sent in the request headers
Bearer varchar

Auth token

Body data

0 Sent in the request body

This endpoint takes no body parameters

Response

44 HTTP 200

Function returns all offers

id integer

Offer ID

rad_kod varchar

Offer line

rad_porc integer

Offer line id

rad_rok integer

Offer line year

name varchar

Offer name

supplier varchar

Supplier name

supplier_id integer

Supplier id

customer_fa varchar

Customer name

customer_fa_id integer

Customer id

customer_os varchar

Customer person name

customer_os_id integer

Customer person id

customer_dpa datetime

Customer dpa

created_by integer

Created by user

user_id integer

User id

created datetime

Created date

edited datetime

Last edited date

sent datetime

Offer sent date

opened datetime

Last opened date

conversion datetime

Conversion date

expire datetime

Expire date

sum_one float

Sum one time

sum_month float

Sum month time

sum_quart float

Sum quarterly time

sum_semi float

Sum semi-annually time

sum_year float

Sum yearly time

profit_one float

Profit one time

profit_month float

Profit month time

profit_quart float

Profit quarterly time

profit_semi float

Profit semi-annually time

profit_year float

Profit yearly time

currency_id integer

Currency id

status_id integer

Offer status id

aktivnep_id varchar

Active services id

print_set_id integer

Print set id

lang_id varchar

Language

notif integer

Notificate users

text_after_header varchar

Text after header

visible boolean

Visible

sent_to varchar

Sent to e-mail

text_before_footer varchar

Text before footer

template_id integer

Template id

accepted datetime

Accepted date

note varchar

Note

own_ varchar

Own columns

Example request

curl --request GET \
  --url 'https://rest.crmango.com/api/GetAllOffers' \
  --header 'Authorization: Bearer auth_token'
{
    "code": 200,
    "response": [
        {
            "id": 72,
            "rad_kod": "OV",
            "rad_porc": 38,
            "rad_rok": 2022,
            "name": "OPEW-222-2022",
            "supplier": "crmango s.r.o.",
            "supplier_id": 2492,
            "customer_fa": "CRM Mango, a.s.",
            "customer_fa_id": 123,
            "customer_os": "",
            "customer_os_id": -1,
            "customer_dpa": 0,
            "created_by": 7,
            "user_id": 7,
            "created": "2021-12-04 14:38:00",
            "edited": "2021-12-04 14:38:00",
            "sent": 0,
            "opened": 0,
            "conversion": 0,
            "expire": "2021-12-04 14:38:00",
            "sum_one": 0,
            "sum_month": 0,
            "sum_quart": 0,
            "sum_semi": 0,
            "sum_year": 0,
            "profit_one": 0,
            "profit_month": 0,
            "profit_quart": 0,
            "profit_semi": 0,
            "profit_year": 0,
            "currency_id": 202,
            "status_id": 1,
            "aktivnep_id": 0,
            "print_set_id": 1,
            "lang_id": "sk",
            "notif": 0,
            "text_after_header": "",
            "visible": 1,
            "sent_to": "",
            "text_before_footer": "",
            "template_id": null,
            "accepted": null,
            "note": null,
            "own_Typ smlouvy": "",
            "own_Vyplaceno": 0,
            "own_Skupina": ""
        },
        {
            "id": 72,
            "rad_kod": "OV",
            "rad_porc": 38,
            "rad_rok": 2022,
            "name": "OPEW-222-2022",
            "supplier": "crmango s.r.o.",
            "supplier_id": 2492,
            "customer_fa": "CRM Mango, a.s.",
            "customer_fa_id": 123,
            "customer_os": "",
            "customer_os_id": -1,
            "customer_dpa": 0,
            "created_by": 7,
            "user_id": 7,
            "created": "2021-12-04 14:38:00",
            "edited": "2021-12-04 14:38:00",
            "sent": 0,
            "opened": 0,
            "conversion": 0,
            "expire": "2021-12-04 14:38:00",
            "sum_one": 0,
            "sum_month": 0,
            "sum_quart": 0,
            "sum_semi": 0,
            "sum_year": 0,
            "profit_one": 0,
            "profit_month": 0,
            "profit_quart": 0,
            "profit_semi": 0,
            "profit_year": 0,
            "currency_id": 202,
            "status_id": 1,
            "aktivnep_id": 0,
            "print_set_id": 1,
            "lang_id": "sk",
            "notif": 0,
            "text_after_header": "",
            "visible": 1,
            "sent_to": "",
            "text_before_footer": "",
            "template_id": null,
            "accepted": null,
            "note": null,
            "own_Typ smlouvy": "",
            "own_Vyplaceno": 0,
            "own_Skupina": ""
        }
    ]
}