Order > Create order

post

Create order

Responses

Request examples

{
  "order_type": "NEW_SALE_DIRECT_ORDER",
  "from_address": {
    "country": "NO",
    "postcode": "0579",
    "city": "OSLO",
    "street_name": "KARVESVINGEN",
    "house_number": 3,
    "house_letter": "A",
    "dwelling_number": "256",
    "floor": "2",
    "room": "14",
    "rack": null,
    "gab_id": "285666461",
    "municipality_number": null,
    "cadastral_unit_number": null,
    "property_unit_number": null,
    "leasehold_number": null,
    "condominium_unit_number": null,
    "utmzone": null,
    "utme": null,
    "utmn": null,
    "latitude": null,
    "longitude": null
  },
  "from_local_contact": {
    "name": null,
    "email": null,
    "telephone": null,
    "contact_id": 2788470
  },
  "from_tech_contact": {
    "name": "A tech contact name",
    "email": "atechemail@donotemail.com",
    "telephone": "+4712345678",
    "contact_id": null
  },
  "to_address": {
    "gab_id": 223864814,
    "house_number": 1,
    "house_letter": "B",
    "street_name": "JAABÆKVEGEN",
    "postcode": "2264",
    "city": "GRINDER",
    "country": "NORGE",
    "room": "16",
    "floor": "2",
    "dwelling_number": "12",
    "rack": null,
    "municipality_number": null,
    "cadastral_unit_number": null,
    "property_unit_number": null,
    "leasehold_number": null,
    "condominium_unit_number": null,
    "utmzone": null,
    "utme": null,
    "utmn": null,
    "latitude": null,
    "longitude": null
  },
  "to_local_contact": null,
  "to_tech_contact": {
    "name": "A tech contact name",
    "email": "atechemail@donotemail.com",
    "telephone": "+4712345678",
    "contact_id": null
  },
  "requested_start_date": "2022-09-22T07:14:36Z",
  "contract_length": 24,
  "seller": {
    "name": "A tech contact name",
    "email": "atechemail@donotemail.com",
    "telephone": "+4712345678",
    "id": 2884815
  },
  "orderer": {
    "id": 2788470
  },
  "contact": {
    "id": 2788470
  },
  "requested_date": "2023-07-20T07:14:36Z",
  "customer": {
    "id": 136748,
    "invoice_group_id": 70162
  },
  "created_by": {
    "id": 2884815
  },
  "origin_system": "YOURSYSTEM",
  "customers_own_reference": "what",
  "installer_comment": "comment to Installer",
  "comment": "My order comment",
  "reference": "A new btag",
  "requested_connection_id": null,
  "campaign_code_applied": false,
  "campaign_code": null,
  "compound_order_number": null,
  "status": "Offer",
  "new_lines": [
    {
      "article_id": "1234",
      "recurring_price": 1234,
      "one_time_price": 15000,
      "currency": "NOK",
      "number_of_items": 1,
      "connection_reference": "SOME-REFERENCE",
      "configuration": [
        {
          "key": 3000075,
          "value": "100 Mbit/s"
        },
        {
          "key": "project_item_id_back-office",
          "value": "1234567"
        }
      ]
    },
    {
      "article_id": "4321",
      "recurring_price": 190,
      "currency": "NOK",
      "number_of_items": 1,
      "connection_reference": "SOME-REFERENCE",
      "additional_info_on_invoice": "some text for the customers invoice"
    },
    {
      "article_id": "2341",
      "one_time_price": 15000,
      "currency": "NOK",
      "number_of_items": 1,
      "additional_info_on_invoice": "A different text for a different line max 60 characters"
    }
  ],
  "annotations": [
    {
      "text": "any text here, can be up to 4000 characters",
      "created_by_user": 2960255
    },
    {
      "text": "Another annotation here, which can be up to 4000 characters",
      "created_by_user": 2960255
    }
  ]
}

Response examples

Created

{
  "id": 897487,
  "type": "Nysalg",
  "urgency": 0,
  "text": null,
  "reference": null,
  "compound_order_id": null,
  "customer_id": 136748,
  "customer_category": "Storkunde",
  "orderer_id": 29205,
  "orderer_name": "Bjørn",
  "orderer_email": "bjorn@bjorn.no",
  "seller_id": 2893898,
  "seller_name": "Ståle Njå",
  "seller_email": "stnj@GlobalConnect.no",
  "creator_id": null,
  "creator_name": null,
  "creator_email": null,
  "status_id": "LEAD",
  "status_text": "Lead",
  "status_category": "Lead",
  "offer": 0,
  "delivery": 0,
  "invoiceable": 0,
  "terminated": 0,
  "cancelled": 0,
  "fault": 0,
  "active": 0,
  "missing_info": 0,
  "completed": 0,
  "created_date": "2025-04-23T11:45:35Z",
  "requested_date": "2024-09-30T22:00:00Z",
  "estimated_date": null,
  "booking_date": null,
  "install_date": null,
  "completed_date": null,
  "valid_until": null,
  "campaign_id": null,
  "campaign_code": null,
  "campaign_validated": 0,
  "notify_email": null,
  "notify_emp_id": null,
  "return_note_destination": 1,
  "return_note_extra_email": null,
  "send_emails_to_orderer": 1,
  "send_emails_to_seller": 1,
  "wtf_url": "https://webtelefakt.test.as2116.net/telefakt/user/orderdetail.cfm?loid=897487",
  "source_system": "CoCRM",
  "old_access": null,
  "old_access_product_id": null,
  "old_access_line_id": null,
  "old_mrc": null,
  "new_access": "Internett Fiber 100 Mbps",
  "new_access_product_id": 33621,
  "new_access_line_id": 33191435,
  "new_mrc": null,
  "new_otc": null,
  "invoiced_until": null,
  "sequence_number_of_last_mod": 10140864919173,
  "current_contract_value": 0,
  "invoicing_value_next_12_months": null,
  "new_mrc_discount": null,
  "new_otc_discount": null,
  "new_mrc_vat": null,
  "new_otc_vat": null,
  "old_otc": null,
  "old_mrc_discount": null,
  "old_otc_discount": null,
  "old_mrc_vat": null,
  "old_otc_vat": null,
  "currency_name": null,
  "new_access_from_address_gab_id": "72082293",
  "new_access_from_address": "Floor 1, Test CoCRM, SNARØYVEIEN 36, 1364 FORNEBU, NO",
  "new_access_to_address_gab_id": null,
  "new_access_to_address": null,
  "files": null,
  "connection_ids": [
    {
      "connection_id": null,
      "new_line": 1
    }
  ],
  "new_lines": [
    {
      "id": 33191437,
      "status_id": "LEAD",
      "connection_id": null,
      "product_name": "Kunde ordner internkabling i egen regi",
      "product_id": 36706,
      "is_access": 0,
      "charge_amount": 0,
      "charge_currency": "NOK",
      "charge_role": "Once",
      "charge_period_count": 1,
      "charge_period": "stk",
      "from_address_gab_id": "72082293",
      "from_address": "Floor 1, Test CoCRM, SNARØYVEIEN 36, 1364 FORNEBU, NO",
      "to_address_gab_id": null,
      "to_address": null,
      "usage_attributes": [
        {
          "id": 1349,
          "name": "Kommentar",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        }
      ]
    },
    {
      "id": 33191439,
      "status_id": "LEAD",
      "connection_id": null,
      "product_name": "Etablering, faste IP-adresser",
      "product_id": 33732,
      "is_access": 0,
      "charge_amount": 490,
      "charge_currency": "NOK",
      "charge_role": "Once",
      "charge_period_count": 1,
      "charge_period": "stk",
      "from_address_gab_id": "72082293",
      "from_address": "Floor 1, Test CoCRM, SNARØYVEIEN 36, 1364 FORNEBU, NO",
      "to_address_gab_id": null,
      "to_address": null,
      "usage_attributes": null
    },
    {
      "id": 33191435,
      "status_id": "LEAD",
      "connection_id": null,
      "product_name": "Internett Fiber 100 Mbps (onnet)",
      "product_id": 33621,
      "is_access": 1,
      "charge_amount": 1445,
      "charge_currency": "NOK",
      "charge_role": "Periodic",
      "charge_period_count": 1,
      "charge_period": "month",
      "from_address_gab_id": "72082293",
      "from_address": "Floor 1, Test CoCRM, SNARØYVEIEN 36, 1364 FORNEBU, NO",
      "to_address_gab_id": null,
      "to_address": null,
      "usage_attributes": [
        {
          "id": 20078,
          "name": "Onnett type",
          "value": "Onnet_B",
          "is_enum": 1,
          "enum_id": 20159
        },
        {
          "id": 3000196,
          "name": "auto_renewal",
          "value": "Off",
          "is_enum": 1,
          "enum_id": 3000640
        },
        {
          "id": 3000197,
          "name": "days_in_advance",
          "value": "None",
          "is_enum": 1,
          "enum_id": 3000642
        },
        {
          "id": 3000199,
          "name": "contract_length",
          "value": "None",
          "is_enum": 1,
          "enum_id": 3000646
        },
        {
          "id": 1349,
          "name": "Kommentar",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3162,
          "name": "WAN IP adr",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3163,
          "name": "WAN maske",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3164,
          "name": "WAN nett",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3165,
          "name": "Evt statisk rute",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3179,
          "name": "ODP",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3180,
          "name": "Ytre VLAN",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3181,
          "name": "Indre VLAN",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3167,
          "name": "Interface core switch A",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3168,
          "name": "PE ruter A",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3169,
          "name": "VLAN id",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3170,
          "name": "VLAN navn",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3206,
          "name": "Kildesystem",
          "value": null,
          "is_enum": 1,
          "enum_id": null
        },
        {
          "id": 3216,
          "name": "Organisasjonsnummer",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3309,
          "name": "FAR ID-1",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3310,
          "name": "FAR ID-2",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3329,
          "name": "Instruks til montør",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3331,
          "name": "Kundens AS-nummer",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3332,
          "name": "Kundens PI adresse",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3338,
          "name": "Meter til fiber pkt",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 20098,
          "name": "Fiber distance",
          "value": "0",
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 20100,
          "name": "Calculated capex",
          "value": "18936",
          "is_enum": 0,
          "enum_id": null
        }
      ]
    },
    {
      "id": 33191436,
      "status_id": "LEAD",
      "connection_id": null,
      "product_name": "GC-Bronze SLA",
      "product_id": 33975,
      "is_access": 0,
      "charge_amount": 45,
      "charge_currency": "NOK",
      "charge_role": "Periodic",
      "charge_period_count": 1,
      "charge_period": "month",
      "from_address_gab_id": "72082293",
      "from_address": "Floor 1, Test CoCRM, SNARØYVEIEN 36, 1364 FORNEBU, NO",
      "to_address_gab_id": null,
      "to_address": null,
      "usage_attributes": [
        {
          "id": 3000147,
          "name": "UnderlayLegacyProduct_ref",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        }
      ]
    },
    {
      "id": 33191438,
      "status_id": "LEAD",
      "connection_id": null,
      "product_name": "Fast IPv4 5 stk (/29)",
      "product_id": 33721,
      "is_access": 0,
      "charge_amount": 299,
      "charge_currency": "NOK",
      "charge_role": "Periodic",
      "charge_period_count": 1,
      "charge_period": "month",
      "from_address_gab_id": "72082293",
      "from_address": "Floor 1, Test CoCRM, SNARØYVEIEN 36, 1364 FORNEBU, NO",
      "to_address_gab_id": null,
      "to_address": null,
      "usage_attributes": [
        {
          "id": 1355,
          "name": "IP adresse",
          "value": null,
          "is_enum": 0,
          "enum_id": null
        },
        {
          "id": 3206,
          "name": "Kildesystem",
          "value": null,
          "is_enum": 1,
          "enum_id": null
        }
      ]
    },
    {
      "id": 33191440,
      "status_id": "LEAD",
      "connection_id": null,
      "product_name": "Internett WiFi Connect (EG400) ",
      "product_id": 1000848,
      "is_access": 0,
      "charge_amount": 99,
      "charge_currency": "NOK",
      "charge_role": "Periodic",
      "charge_period_count": 1,
      "charge_period": "month",
      "from_address_gab_id": "72082293",
      "from_address": "Floor 1, Test CoCRM, SNARØYVEIEN 36, 1364 FORNEBU, NO",
      "to_address_gab_id": null,
      "to_address": null,
      "usage_attributes": null
    }
  ],
  "old_lines": null,
  "annotations": null,
  "links": [
    {
      "rel": "collection",
      "href": "https://redacted/data/order/"
    },
    {
      "rel": "self",
      "href": "https://redacted/data/order/897487"
    },
    {
      "rel": "customer",
      "href": "https://redacted/data/customer/136748"
    },
    {
      "rel": "transitions",
      "href": "https://redacted/data/order/897487/transition"
    }
  ]
}
post

Create order - testing

Responses

Request examples

{
  "orderType": "NEW_SALE",
  "fromAddress": {
    "gabId": 285666461,
    "houseNumber": 3,
    "houseLetter": "A",
    "streetName": "KARVESVINGEN",
    "zipCode": "0579",
    "postalArea": "OSLO",
    "country": "Norway",
    "room": "14",
    "floor": "2",
    "apartment": "256",
    "customerName": "End Customer A",
    "contactPerson": "local contact A name",
    "contactPhone": "local contact A phone",
    "contactEmail": "local contact A email",
    "technicalContactPerson": "tech con A name",
    "technicalContactEmail": "tech con A email",
    "technicalContactPhone": "tech con A phone"
  },
  "toAddress": {
    "gabId": 223864814,
    "houseNumber": 1,
    "houseLetter": "B",
    "streetName": "JAABÆKVEGEN",
    "zipCode": "2264",
    "postalArea": "GRINDER",
    "country": "Norway",
    "room": "16",
    "floor": "2",
    "apartment": "12",
    "customerName": "End Customer B",
    "contactPerson": "local contact B name",
    "contactPhone": "local contact B phone",
    "contactEmail": "local contact B email",
    "technicalContactPerson": "tech con B name",
    "technicalContactEmail": "tech con B email",
    "technicalContactPhone": "tech con B phone"
  },
  "equipmentDeliveryAddress": {
    "name": "Reciever",
    "floor": "2",
    "address": "0301-107/583 583 0000",
    "address2": "1088 OSLO NO",
    "zipCode": "1088",
    "postalArea": "OSLO",
    "country": "Norway",
    "validateAddressFlag": false
  },
  "requestedStartDate": "2022-09-22T07:14:36Z",
  "contractLength": 24,
  "seller": {
    "id": 2884815
  },
  "orderer": {
    "id": 2788470
  },
  "contact": {
    "id": 2788470
  },
  "requestedDate": "2022-09-22T07:14:36Z",
  "customer": {
    "id": 136748,
    "invoiceGroupId": 70162
  },
  "createdBy": {
    "id": 2884815
  },
  "originSystem": "YOURSYSTEM",
  "customersOwnReference": "customer own ref",
  "installerComment": "comment from Installer",
  "comment": "My order comment",
  "campaignCodeApplied": false,
  "campaignCode": null,
  "compoundOrderNumber": null,
  "status": "Offer",
  "new_lines": [
    {
      "articleId": 22000080,
      "recurringPrice": "1234",
      "oneTimePrice": "10000.00",
      "currency": "NOK",
      "numberOfItems": 1,
      "configuration": [
        {
          "value": "org.nr",
          "key": 3216
        },
        {
          "value": "0",
          "key": 20098
        },
        {
          "value": "18936",
          "key": 20100
        },
        {
          "value": "1",
          "key": 3310
        },
        {
          "value": "1",
          "key": 3309
        },
        {
          "value": "bla bla",
          "key": 3329
        }
      ]
    },
    {
      "articleId": 22300945,
      "recurringPrice": "234",
      "oneTimePrice": "0.00",
      "currency": "NOK",
      "numberOfItems": 1,
      "configuration": [
        {
          "value": "255.255.255.252 /30",
          "key": 3174
        },
        {
          "value": "1",
          "key": 3172
        },
        {
          "value": "1",
          "key": 3173
        },
        {
          "value": "1",
          "key": 3031
        }
      ]
    }
  ],
  "annotations": [
    {
      "text": "any text here, can be up to 4000 characters",
      "createdByUser": 2960255
    },
    {
      "text": "Another annotation here, which can be up to 4000 characters",
      "createdByUser": 2960255
    }
  ]
}

Response examples

Successful response

Empty response

Was this page helpful?