Orders API
Orders API can be used to list or retrieve orders customers have placed for your company throught the Mediani platform.
Order
All information related to orders others have made from your company.
| Attribute | Type | Description |
|---|---|---|
id |
UUID | UUID of the order |
created_at |
DateTime | When the order was created |
modified_at |
DateTime | When order was modified ex. status changed |
accepted_at |
DateTime | Time and date when order was accepted, if it has been accepted |
status |
Number | Status types are: 1 = New 2 = Waiting materials 3 = Order rejected 4 = Order ready to start 5 = Order completed 6 = New offer 7 = Expired offer 8 = Cancelled |
seller |
Number | ID of the seller company |
seller_obj |
Company | Company object for seller company |
sold_throught_site |
Number | ID of site where order was placed |
sold_throught_site_domain |
String | Domain for example mediani.fi where the order was placed |
total_price |
Decimal | Total price of the order |
total_price_inc_vat |
Decimal | Total price of the order including VAT |
discount_total_price |
Decimal | Total price of the order including discounts |
discount_total_price_inc_vat |
Decimal | Total price of the order discounted and including VAT |
total_data_transfer_fee |
Decimal | All data transfer fees |
total_data_transfer_fee_inc_vat |
Decimal | All data transfer fees including VAT |
total_media_price |
Decimal | Total media price |
total_media_price_inc_vat |
Decimal | Total media price including VAT |
total_discount_media_price |
Decimal | Total media price discounted |
total_discount_media_price_inc_vat |
Decimal | Total media price discounted including VAT |
total_production_fees |
Decimal | Total production fees |
total_production_fees_inc_vat |
Decimal | Total production fees including VAT |
total_additional_fees |
Decimal | Total Additional fees |
total_additional_fees_inc_vat |
Decimal | Total Additional fees including VAT |
payment_type |
Number | Payment types are: 1 = Email 2 = Letter 3 = E-invoice |
billing_contact_person |
String | Contact person for billing |
billing_company_name |
String | Company name for billing |
billing_street_address |
String | Street address for billing |
billing_postal_code |
String | Postal code for billing |
billing_post_office |
String | Post office for billing |
billing_country |
String | Country for billing |
billing_reference_Number |
String | Reference Number for billing |
billing_business_id |
String | Business ID for billing |
billing_email |
String | Email for billing |
billing_phone |
String | Phone Number for billing |
billing_einvoice_address |
String | e-invoice for billing |
billing_operator_id_Number |
String | Operator ID for billing |
customer_user |
Number | ID of user who made the order |
customer_user_obj |
User | User object for customer |
customer_company |
Number | ID of company who the user making the order belongs to |
customer_company_obj |
Company | Company object for the customer |
discussion |
Number | Discussion ID related to the order |
end_customer |
String | Partner name who is the customer of the company making order |
campaign |
Array | List of campaign UUIDs related to the order |
campaign_objs |
Array | Campaigns related to the order |
products |
Array | List of OrderProducts related to the order |
latest_message |
Message | Last Message sent to the discussion related to the order |
get_absolute_url |
String | Absolute url for the order |
seller_end_customer |
Number | ID of the seller's partner account |
seller_end_customer_obj |
End customer | Seller's End customer object |
seller_campaign |
Campaign | Seller's Campaign object |
offer_valid_until |
Date | Date after which the offer is no longer valid and reservation will be deleted and Order status changed to expired |
description |
String | Offer description |
salesperson |
Number | User ID |
salesperson_obj |
User | User who made the offer |
source |
String | Source of the sale. store or offer supported currently. |
Message
Message as it is stored in the database. latest_message shows latest one for the discussion related to the order.
| Attribute | Type | Description |
|---|---|---|
id |
Number | ID of the object |
created_at |
DateTime | When the order was created |
modified_at |
DateTime | When order was modified ex. status changed |
discussion |
Number | ID of the discussion |
sent_by |
Number | Id of the user |
sent_by_obj |
User | User who sent the last message. |
is_read_by |
Array | Array of user IDs who have read the message |
is_read_by_user |
Boolean | Has the current user read the message |
is_user_following |
Boolean | Is the current user following discussion |
message |
String | The actual message |
message_short |
String | Up to 150 characters of the message |
message_type |
Number | Type of the message. Choices for types are: 1 = Message 2 = New order 3 = Order accepted 4 = Order waiting materials 5 = Order ready to start 6 = Order ready 7 = Order rejected 8 = Attachment added 9 = Attachment accepted 10 = New relationship 11 = New partner account shared 12 = New offer 13 = Offer updated 14 = Offer expired |
sender_company |
Company | Company who sent the last message |
OrderProduct
OrderProduct is object similar to Product, where information is stored as it is in the moment of making an order.
| Attribute | Type | Description |
|---|---|---|
id |
Number | ID of the order product |
created_at |
DateTime | When the order was created |
modified_at |
DateTime | When order was modified ex. status changed |
product |
Number | ID of Product |
product_name |
String | Product name as string, in case product gets deleted or modified |
price |
Decimal | Product price before discounts |
price_inc_vat |
Decimal | Product price including VAT |
discount_price |
Decimal | Discounted product price |
discount_price_inc_vat |
Decimal | Discounted product price including VAT |
media_price |
Decimal | Media price seperately |
media_price_inc_vat |
Decimal | Media price seperately including VAT |
discount_media_price |
Decimal | Discounted media price |
discount_media_price_inc_vat |
Decimal | Discounted media price including VAT |
production_fees |
Decimal | Production fees |
production_fees_inc_vat |
Decimal | Production fees including VAT |
data_transfer_fee |
Decimal | Data transfer fee |
data_transfer_fee_inc_vat |
Decimal | Data transfer fee including VAT |
additional_fees |
Decimal | Additional other fees |
additional_fees_inc_vat |
Decimal | Additional other fees including VAT |
contacts_reached |
Decimal | Contacts reached for selected product and variants |
start_date |
Date | Date when campaign starts for selected product |
campaign_length |
Number | How many days campaign will run |
material_delivery_days |
Number | How many days before campaign start materials have to be delivered |
data_info_type |
Number | Which format the information is provided in, options are: 1 = PDF 2 = URL 3 = Text |
data_info_file |
Number | Foreign key to MediaProductAttachment |
data_info_url |
String | URL to the data info |
data_info_text |
String | 65 000 characters max data information |
variant_choices |
Array | List of variant choices |
discounts |
Array | List of order discount objects |
discount_code |
Object | Used discount code object |
attachments |
Array | List of Order Attachments |
get_absolute_url |
String | Absolute url of the product |
material_profiles |
Array | List of material profiles for product |
Variant choice
Selected variant choices for product saved at the moment of making the order.
| Attribute | Type | Description |
|---|---|---|
created_at |
DateTime | When the object was created |
modified_at |
DateTime | When object was modified ex. status changed |
variant_id |
Number | Variant ID in the database. Stored only for archival purposes. |
variant_type |
Number | Variant type, choices are: 1 = Base price 2 = Fee 3 = Multiplier 4 = Data transfer fee 5 = Production fee 6 = Quantity 7 = Spot length |
choice_id |
Number | ProductVariantChoice ID in the database. Stored only for archival purposes. |
variant_name |
String | Name as string |
variant_ordering |
Number | Order where variants are seen in interface |
selected_choice_name |
String | Name of the choice selected |
fee_price |
String | Choice price. If the variant is multiplier type (multiplier, count, spot length etc) value will be null. |
fee_vat_percent |
Number | VAT percent for the choice. If the variant is multiplier type (multiplier, count, spot length etc) value will be null. |
Material profile
Material profiles that provide information about technical requirements of the product related to order.
| Attribute | Type | Description |
|---|---|---|
id |
Number | PK of the MaterialProfile |
created_at |
DateTime | When the object was created |
modified_at |
DateTime | When object was modified ex. status changed |
created_by |
Number | User who created object |
name |
String | Material profile name |
company |
Number | FK to company who owns the object |
height |
Number | Height |
width |
Number | Width |
dimension_unit |
String | Either "px" or "mm" |
supported_file_formats |
Array | List of FileFormat IDs |
supported_file_format_objs |
Array | List of FileFormat objects |
file_max_size_kb |
Number | Max file size in kilobytes |
additional_information |
String | Any non standard additional information |
aspect_ratio_decimal |
Decimal | Aspect ratio decimal |
aspect_ratio |
String | Aspect ratio for example 16:9 |
orientation |
String | Is the resource horizontal or vertical |
Reservation
Reservation in the inventory.
| Attribute | Type | Description |
|---|---|---|
id |
UUID | ID of reservation |
created_at |
DateTime | When the object was created |
modified_at |
DateTime | When object was modified ex. status changed |
company |
Company | Company that owns the object |
last_updated_by |
User | User who last updated the object |
name |
String | Name of the object |
description |
String | Description of object |
get_absolute_url |
String | URL to reservation in Mediani |
reserved_resources |
Array | List of allocated resources |
Allocated resources
Allocated resources for time period
| Attribute | Type | Description |
|---|---|---|
id |
UUID | ID of the allocation |
created_at |
DateTime | When the object was created |
modified_at |
DateTime | When object was modified ex. status changed |
start_date |
Date | Date when reservation starts |
end_date |
Date | Date when reservation ends |
reserved_capacity |
Number | Capacity that is reserved |
is_group |
Boolean | Is the resource a group |
is_nested |
Boolean | Does this item belong in a group |
inventory_resource |
Resource | Resources allocated in this reservation |
start_hour |
Number | Hour as single number where reservation starts, from 0 to 23 |
end_hour |
Number | Hour as single number when reservation end, from 0 to 23 |
saturation |
String | Saturation of reserved time, string as decimal number. Defaults to "1.0", should always be "0.5", "1.0", or "2.0" |
original_reserved_capacity |
Number | Original reserved capacity without saturation or other calculations taken into account |
media_price |
Number | Price of the media |
media_price_vat |
Number | Price of the media including VAT |
production_fees |
Number | Production fees for the resource |
production_fees_vat |
Number | Production feees for the resource including VAT |
Resource
Actual resource in the inventory.
| Attribute | Type | Description |
|---|---|---|
id |
UUID | ID of resource |
name |
String | Resource name |
capacity |
Number | Reserved capacity |
capacity_unit |
Number | Capacity unit, values are: 1 = Seconds 2 = Concurrent |
image_file |
String | Currently not in use, at some point might have a photo of the resource |
type |
Number | Type of resource, choices are: 1 = Resource 2 = Group |
resources |
Array | List of resources if the type is group |
map_point_markers |
Array | List of map points associated with the resource |
tags |
Array | List of tag names as string |
Map point
Locations on map by latitude and longitude.
| Attribute | Type | Description |
|---|---|---|
id |
Number | PK of the object |
created_at |
DateTime | When the object was created |
modified_at |
DateTime | When object was modified ex. status changed |
name |
String | Map point name |
lat |
Decimal | Latitude in decimal with 14 decimal places |
lng |
Decimal | Longitude in decimal with 14 decimal places |
resources |
Array | List of resources associated with the map point |
Company
| Attribute | Type | Description |
|---|---|---|
id |
Number | ID of the company |
name |
String | Company name |
product_count |
Number | How many products company has |
street |
String | Street address |
city |
String | City |
postalcode |
String | Postal code |
web_address |
String | Company's own website URL |
logo_image |
String | URL of logo image stored in mediani.fi |
contact_email |
String | Contact email |
contact_phone |
String | Contact phone Number |
accept_payment_email |
Boolean | Does the company accept email billing |
accept_payment_letter |
Boolean | Does the company accept letter billing |
accept_payment_einvoice |
Boolean | Does the company accept e-invoices |
business_id |
String | Business ID of the company |
User
| Attribute | Type | Description |
|---|---|---|
id |
Number | PK of the object |
full_name |
String | User full name |
email |
String | User email address |
phone |
String | User phone Number |
avatar_image |
String | User avatar image in mediani.fi |
Campaign
| Attribute | Type | Description |
|---|---|---|
id |
Number | PK of the object |
name |
String | Campaign name |
company |
Number | ID of company who owns this campaign |
end_customer |
Number | ID of the partner |
end_customer_obj |
End customer | End customer object |
End customer
Partner account
| Attribute | Type | Description |
|---|---|---|
id |
Number | PK of the object |
name |
String | Partner name |
MediaProfile
| Attribute | Type | Description |
|---|---|---|
id |
Number | ID of media profile |
created |
DateTime | When the profile was created |
modified |
DateTime | When profile was modified ex. status changed |
name |
String | Media profile name |
description |
String | Media profile description |
is_company_profile |
Boolean | Is media profile the main profile of the Company |
street |
String | Street address |
city |
String | City |
country |
String | Country |
web_address |
String | Media profile website URL |
postalcode |
String | Postal code |
contact_persons |
Array | List of users IDs who are set as contact persons for media profile |
use_contactinfo_from_company |
Boolean | Sets if media profile uses parent company's contact information |
company_page_url_for_company_listing |
String | absolute url in mediani for example /mediani/ |
contact_email |
String | Media profiles contact email |
contact_phone |
String | Media profiles contact phone Number |
logo_image |
String | Media profile logo image url stored in Mediani |
mediaprofile_page_image |
String | Media profile page image url in Mediani |
mediaprofile_page_image_ |
String | Media profile name |
Order discount
| Attribute | Type | Description |
|---|---|---|
discount_id |
Number | ID of discount in database, if it is not a custom discount set when creating custom offer |
discount_name |
String | Name of the discount, shown to user |
discount_percent |
String | Amount of discount in percent |
created_at |
DateTime | When order discount was created |
modified_at |
DateTime | When order discount was modified |
Used discount code
| Attribute | Type | Description |
|---|---|---|
company |
Number | ID of company |
user |
Number | ID of the user |
order |
UUID | UUID of the order |
order_product |
Number | ID of the product |
discount_code |
Number | ID of the discount code |
timestamp |
DateTime | When used discount code object was created |
percent |
Number | Discount percent as a decimal |
name |
String | Name of the discount |
public_name |
String | Namr of the discount, shown to customer |
code |
String | Code |
Order Attachments
| Attribute | Type | Description |
|---|---|---|
id |
Number | ID of the attachment |
order_product |
Number | ID of the product |
name |
String | Name of the file |
description |
String | Description of the file |
created_at |
DateTime | When attachment was added |
modified_at |
DateTime | When attachment was modified |
is_ready |
Boolean | Seller has marked attachment as ready to go |
file_field |
String | URL where file is located |
file_size |
Number | Size of the file in bytes |
List example
GET /api/v1/orders/
Accepted URL parameters
| Attribute | Description | Additional information |
|---|---|---|
page |
Jump to page | Page number starting from 1 |
ordering |
How to order results | Possible values are:created_atmodified_ataccepted_atstatus |
search |
Search. Notice you have to encode special characters, eg. replace space with %20 |
Fields that are being searched:salesperson.first_namesalesperson.last_namecustomer_company.namebilling_contact_personbilling_company_nameend_customer_contact_person.nameend_customercampaign.nameseller_end_customer.nameseller_campaign.name |
{
"count": 312,
"next": "https://mediani.fi/v1/api/orders/?page=2",
"previous": null,
"results": []
}
Retrieve example
GET /api/v1/orders/8c66d8d3-e3fd-47be-8653-d4aa4d59e794/
{
"id": "8c66d8d3-e3fd-47be-8653-d4aa4d59e794",
"status": 1,
"products": [
{
"id": 303,
"product": 4,
"product_name": "Pylon in a big supermarket",
"data_info_type": 3,
"data_info_file": "https://mediani.fi/info.pdf",
"data_info_url": "https://marketingagency.com/pylons/",
"data_info_text": "Pylons can have video or pictures. Better descriptions in material profiles.",
"price": "399.00",
"price_inc_vat": "494.76",
"discount_price": "322.28",
"discount_price_inc_vat": "399.62",
"media_price": "99.00",
"media_price_inc_vat": "122.76",
"discount_media_price": "22.28",
"discount_media_price_inc_vat": "27.62",
"start_date": "2021-02-18",
"campaign_length": 30,
"product_id": 4,
"variant_choices": [
{
"variant_id": 912,
"variant_type": 7,
"choice_id": 2260,
"variant_name": "Spotin pituus",
"variant_ordering": 7,
"selected_choice_name": "4 sekuntia",
"created_at": "2020-09-20T12:29:50.994765Z",
"modified_at": "2020-09-20T12:29:50.994785Z",
"fee_price": null,
"fee_vat_percent": null
},
{
"variant_id": 911,
"variant_type": 3,
"choice_id": 2257,
"variant_name": "Hintakerroin",
"variant_ordering": 6,
"selected_choice_name": "1",
"created_at": "2020-09-20T12:29:50.981101Z",
"modified_at": "2020-09-20T12:29:50.981122Z",
"fee_price": null,
"fee_vat_percent": null
},
{
"variant_id": 910,
"variant_type": 2,
"choice_id": 2256,
"variant_name": "Hintalisä",
"variant_ordering": 5,
"selected_choice_name": "100",
"created_at": "2020-09-20T12:29:50.963657Z",
"modified_at": "2020-09-20T12:29:50.963678Z",
"fee_price": "100.00",
"fee_vat_percent": 24
},
{
"variant_id": 909,
"variant_type": 4,
"choice_id": 2255,
"variant_name": "Aineiston siirtomaksu",
"variant_ordering": 4,
"selected_choice_name": "",
"created_at": "2020-09-20T12:29:50.948112Z",
"modified_at": "2020-09-20T12:29:50.948133Z",
"fee_price": "100.00",
"fee_vat_percent": 24
},
{
"variant_id": 908,
"variant_type": 5,
"choice_id": 2254,
"variant_name": "Tuotanto ja asennus",
"variant_ordering": 3,
"selected_choice_name": "",
"created_at": "2020-09-20T12:29:50.928750Z",
"modified_at": "2020-09-20T12:29:50.928770Z",
"fee_price": "100.00",
"fee_vat_percent": 24
},
{
"variant_id": 907,
"variant_type": 6,
"choice_id": 2253,
"variant_name": "Lukumäärä",
"variant_ordering": 2,
"selected_choice_name": "1",
"created_at": "2020-09-20T12:29:50.911863Z",
"modified_at": "2020-09-20T12:29:50.911887Z",
"fee_price": null,
"fee_vat_percent": null
},
{
"variant_id": 906,
"variant_type": 1,
"choice_id": 2252,
"variant_name": "Varauksen kohde",
"variant_ordering": 1,
"selected_choice_name": "Selected spot",
"created_at": "2020-09-20T12:29:50.872182Z",
"modified_at": "2020-09-20T12:29:50.872210Z",
"fee_price": "99.00",
"fee_vat_percent": 24
}
],
"discounts": [
{
"discount_id": 5,
"discount_name": "Advertising agency xyz",
"discount_percent": "10.00",
"created_at": "2020-09-20T12:29:51.036022Z",
"modified_at": "2020-09-20T12:29:51.036043Z"
},
{
"discount_id": 4,
"discount_name": "Good customer discount",
"discount_percent": "50.00",
"created_at": "2020-09-20T12:29:51.048285Z",
"modified_at": "2020-09-20T12:29:51.048308Z"
}
],
"discount_code": {
"company": 1,
"user": 1,
"order": "8c66d8d3-e3fd-47be-8653-d4aa4d59e794",
"order_product": 303,
"discount_code": {
"id": 15,
"company": 1,
"companies": [],
"percent": "50.00",
"name": "God mode",
"public_name": "Discount code",
"code": "IDDQD",
"enabled_for_all": true,
"enabled_for_all_products": true,
"can_combine": true,
"limited_by_date": false,
"limited_by_uses": false,
"use_limit": null,
"products": [4],
"start_date": null,
"end_date": null,
"is_active": false,
"is_public": true,
"public_discount_description": null,
"created_at": "2020-09-16T10:48:29.981695Z",
"modified_at": "2020-09-16T10:48:29.981714Z"
},
"timestamp": "2020-09-20T12:29:50.999778Z",
"percent": "50.00",
"name": "God mode",
"public_name": "Discount code",
"code": "IDDQD"
},
"attachments": [],
"get_absolute_url": "/product/pylon-in-a-big-supermarket/4/",
"material_delivery_days": 7,
"material_profiles": [
{
"id": 4,
"name": "Test Material profile",
"company": 1,
"height": 666,
"width": 666,
"dimension_unit": "mm",
"supported_file_formats": [
44,
55,
60,
63,
64,
65,
67,
68,
72
],
"supported_file_format_objs": [
{
"id": 44,
"format_name": "Photoshop Document",
"filename_extension": "PSD",
"category": "Picture"
},
{
"id": 55,
"format_name": "Waveform Audio File Format",
"filename_extension": "WAV",
"category": "Audio"
},
{
"id": 60,
"format_name": "Ogg Video",
"filename_extension": "OGV",
"category": "Video"
},
],
"file_max_size_kb": 2048,
"additional_information": "If you use audio, screen shows blank",
"created_by": 1,
"created_at": "2020-09-03T10:36:28.299932Z",
"modified_at": "2020-09-10T11:16:02.695353Z",
"aspect_ratio": "1:1",
"aspect_ratio_decimal": 1.0,
"orientation": "Vaaka"
},
{
"id": 6,
"name": "Really weird and big screen",
"company": 1,
"height": 41242,
"width": 123,
"dimension_unit": "px",
"supported_file_formats": [
63,
64,
65,
67
],
"supported_file_format_objs": [
{
"id": 63,
"format_name": "3GPP / Video",
"filename_extension": "3GP",
"category": "Video"
},
{
"id": 64,
"format_name": "3GPP / Audio",
"filename_extension": "3GP",
"category": "Audio"
},
{
"id": 65,
"format_name": "3GPP 2 / Video",
"filename_extension": "3G2",
"category": "Video"
},
],
"file_max_size_kb": 21312,
"additional_information": "This screen is special",
"created_by": 1,
"created_at": "2020-09-09T10:13:56.686228Z",
"modified_at": "2020-09-11T06:51:34.327186Z",
"aspect_ratio": "123:41242",
"aspect_ratio_decimal": 0.0029823965860045583,
"orientation": "Pysty"
},
],
"contacts_reached": 75
}
],
"seller": 1,
"seller_obj": {
"id": 1,
"name": "Mediani",
"product_count": 69,
"street": "Company street address 123",
"city": "Kuopio",
"postalcode": "70500",
"web_address": "mediani.fi/",
"logo_image": "https://mediani.fi/static/assets/img/logo/mediani_logo.png",
"contact_email": "info@mediani.fi",
"contact_phone": "+358 44 986 1636",
"accept_payment_email": true,
"accept_payment_letter": true,
"accept_payment_einvoice": false,
"business_id": "2731868-4"
},
"created_at": "2020-09-20T12:29:50.161358Z",
"modified_at": "2020-09-20T12:29:52.440910Z",
"total_price": "399.00",
"total_price_inc_vat": "494.76",
"discount_total_price": "322.27",
"discount_total_price_inc_vat": "399.62",
"total_media_price": "99.00",
"total_media_price_inc_vat": "122.76",
"total_discount_media_price": "22.27",
"total_discount_media_price_inc_vat": "27.62",
"total_data_transfer_fee": "100.00",
"total_data_transfer_fee_inc_vat": "124.00",
"customer_user": 1,
"customer_user_obj": {
"id": 1,
"full_name": "Dale Cooper",
"email": "dale@twinpeaks.com",
"phone": "555123456",
"avatar_image": "http://mediani.fi/media/avatar-images/1/c04ziM0a_400x400_aF1xPLS.jpg"
},
"customer_company": 1,
"customer_company_obj": {
"id": 1,
"name": "Mediani",
"product_count": 69,
"street": "Street Address",
"city": "Kuopio",
"postalcode": "70500",
"web_address": "mediani.fi/",
"logo_image": "http://mediani.fi/media/logo-images/1/mediani_logo_9Ve0VFQ.png",
"contact_email": "customer@company.yzx",
"contact_phone": "555987654",
"accept_payment_email": true,
"accept_payment_letter": true,
"accept_payment_einvoice": false,
"business_id": "1234567-1"
},
"payment_type": 1,
"billing_contact_person": "Billing contact",
"billing_company_name": "Company",
"billing_street_address": "Street address 123A1",
"billing_postal_code": "70500",
"billing_post_office": "Kuopio",
"billing_country": "Suomi",
"billing_reference_Number": "",
"billing_business_id": "1234567-1",
"billing_email": "billing@company.com",
"billing_phone": "555666777",
"billing_einvoice_address": "",
"billing_operator_id_Number": "",
"latest_message": {
"id": 759,
"created_at": "2020-09-20T12:29:52.454209Z",
"modified_at": "2020-09-20T12:29:52.454226Z",
"discussion": 189,
"sent_by": 1,
"message": "",
"sent_by_obj": {
"id": 1,
"full_name": "Customer User",
"email": "customer@email.yzx",
"phone": "555987654",
"avatar_image": "http://mediani.fi/media/avatar-images/1/c04ziM0a_400x400_aF1xPLS.jpg",
},
"is_read_by": [
1
],
"is_read_by_user": true,
"is_user_following": true,
"message_short": "Tilanmuutos: Tilaus odottaa myyjän tilausvahvistusta",
"message_type": 2,
"sender_company": {
"id": 1,
"name": "Mediani",
"product_count": 69,
"street": "Company street address 123",
"city": "Kuopio",
"postalcode": "70500",
"web_address": "mediani.fi/",
"logo_image": "https://mediani.fi/static/assets/img/logo/mediani_logo.png",
"contact_email": "info@mediani.fi",
"contact_phone": "+358 44 986 1636",
"accept_payment_email": true,
"accept_payment_letter": true,
"accept_payment_einvoice": false,
"business_id": "2731868-4"
},
},
"get_absolute_url": "/dashboard/sales/8c66d8d3-e3fd-47be-8653-d4aa4d59e794/",
"reservation_obj": {
"id": "e83fd45b-bb63-4187-bce7-0034fa4bcbd8",
"company": 1,
"last_updated_by": null,
"created_at": "2020-09-20T12:29:51.503635Z",
"modified_at": "2020-09-20T12:29:51.503655Z",
"name": "Mediani - 8c66d8d3-e3fd-47be-8653-d4aa4d59e794",
"description": "Automaattinen varaus tilaukselle: 8c66d8d3-e3fd-47be-8653-d4aa4d59e794",
"get_absolute_url": "/api/inventory-reservations/e83fd45b-bb63-4187-bce7-0034fa4bcbd8/",
"reserved_resources": [
{
"id": 388,
"inventory_resource": {
"id": "5f2183d8-3926-40f3-a88b-43273b7dea16",
"name": "Inventory resource ObhKFwIIJvajKuPwIpFJ",
"capacity": 240,
"capacity_unit": 1,
"image_file": null,
"type": 1,
"resources": [],
"map_point_markers": [
{
"id": 1,
"name": "Kuopio",
"lat": "62.88790823680000",
"lng": "27.68527708130000",
"created_at": "2020-04-22T13:31:18.119869Z",
"modified_at": "2020-04-22T13:31:18.119895Z",
"resources": [
{
"id": "902e8a97-d773-40c7-bc9f-59e8792ceebc",
"name": "Inventory resource BMzOtJChCSitXWqbnktt",
"type": 1,
"get_absolute_url": "/api/inventory-resources/902e8a97-d773-40c7-bc9f-59e8792ceebc/"
},
{
"id": "0a193704-6134-4312-b341-07fd76a65f9a",
"name": "Inventory resource alvCMQrTHoAjeRuSrUMT",
"type": 1,
"get_absolute_url": "/api/inventory-resources/0a193704-6134-4312-b341-07fd76a65f9a/"
}
]
},
],
"tags": [
"kuopio",
"example",
]
},
"created_at": "2020-09-20T12:29:51.287331Z",
"modified_at": "2020-09-20T12:29:51.287352Z",
"start_date": "2021-02-18",
"end_date": "2021-03-19",
"reserved_capacity": 4,
"is_group": false,
"is_nested": false
}
]
},
"sold_throught_site": 1,
"sold_throught_site_domain": "mediani.fi",
"campaign": [
"90c9c21f-fb87-4732-a526-4a483c0d1bfd"
],
"campaign_objs": [
{
"id": "90c9c21f-fb87-4732-a526-4a483c0d1bfd",
"name": "-",
"company": 1,
"end_customer": 7,
"end_customer_obj": {
"id": 7,
"name": "End Customer",
"business_id": "543452-9",
"company": 1,
"company_obj": {
"id": 1,
"name": "Mediani",
},
"default": false,
"created_at": "2020-06-22T08:10:07.480472Z",
"modified_at": "2020-07-31T08:23:16.443362Z",
"last_updated_by": null,
"last_updated_by_obj": null,
"customer_managers": [
1
],
"customer_managers_obj": [
{
"id": 1,
"full_name": "Customer Manager Person",
"email": "customer@manager.gg",
"phone": "55577882233",
"avatar_image": "http://mediani.fi/media/avatar-images/1/c04ziM0a_400x400_aF1xPLS.jpg"
}
],
"visible_to_relationships": [
2
],
"billing_info_name": "",
"street": "",
"city": "",
"country": "",
"postalcode": "",
"contact_person": "",
"contact_email": "",
"contact_phone": "",
"einvoice_address": "",
"operator_id_Number": ""
}
}
],
"end_customer": "End Customer"
}