Views: 154
Last Modified: 08.06.2022

  Delivery service handler setup

Delivery service handler is a template employed to subsequently create instances of delivery service. That's why before creating a delivery service, you need to add a handler using the method sale.delivery.handler.add:

{
  "CODE":"uber",
  "NAME":"Uber",
  "DESCRIPTION":"Uber Description",
  "SETTINGS":{
    "CALCULATE_URL":"http://gateway.bx/calculate.php",
    "CREATE_DELIVERY_REQUEST_URL":"http://gateway.bx/create_delivery_request.php",
    "CANCEL_DELIVERY_REQUEST_URL":"http://gateway.bx/cancel_delivery_request.php",
    "HAS_CALLBACK_TRACKING_SUPPORT":"Y",
    "CONFIG":[
      {
        "TYPE":"STRING",
        "CODE":"SETTING_1",
        "NAME":"Setting 1"
      },
      {
        "TYPE":"STRING",
        "CODE":"SETTING_2",
        "NAME":"Setting 2"
      }
    ]
  },
  "PROFILES":[
    {
      "NAME":"Taxi",
      "CODE":"TAXI",
      "DESCRIPTION":"Taxi Delivery"
    },
    {
      "NAME":"Cargo",
      "CODE":"CARGO",
      "DESCRIPTION":"Cargo Delivery"
    }
  ]
}

Handler's symbolic code and name are mandatory. Handler's symbolic code will be required for creating a delivery service.

When creating a handler, you need to indicate URL for webhooks, used for queries in the following instances:

You may skip passing CREATE_DELIVERY_REQUEST_URL and CANCEL_DELIVERY_REQUEST_URL for scenarios when integration with delivery requests/orders is not employed. In this case, the flag HAS_CALLBACK_TRACKING_SUPPORT must be set as "N".

You have an option to specify a set of available parameters (CONFIG) when creating a delivery service handler, with unique values for each instance of delivery services. Parameters can be used for storage of API keys, contact numbers and other authentication data for specific delivery service instances.

Handler creating is possible only when minimum at least one delivery profile is available (PROFILES).

Also, you can use methods for updating and deleting existing handlers and retrieving list of handlers.

  Delivery service settings

After successfully creating a delivery service handler you can start adding an instance of the delivery service itself using the method sale.delivery.add:

{
  "REST_CODE":"uber",
  "NAME":"Uber Taxi",
  "DESCRIPTION":"Uber Taxi Description",
  "LOGOTYPE":"/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAgGBgcGBQgHBwc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CY":"USD",
  "SORT":"500",
  "ACTIVE":"Y",
  "CONFIG":[
    {
      "CODE":"SETTING_1",
      "VALUE":"SETTING_1 value"
    },
    {
      "CODE":"SETTING_2",
      "VALUE":"SETTING_2 value"
    }
  ]
}
  • Handler symbolic code (REST_CODE) is mandatory.
  • Logo with image of delivery service can be passed as base64-encoded string.
  • You can setup a parameters config when creating an individual delivery service instance (CONFIG).

On successfully created delivery service, its assigned with a numerical identifier. Response example:

{
  "result":{
    "parent":{
      "ID":"622",
      "PARENT_ID":null,
      "NAME":"Uber Taxi",
      "ACTIVE":"Y",
      "DESCRIPTION":"Uber Taxi Description",
      "SORT":"500",
      "CURRENCY":"USD",
      "LOGOTYPE":"954"
    },
    "profiles":[
      {
        "ID":"688",
        "PARENT_ID":"622",
        "NAME":"Taxi",
        "ACTIVE":"Y",
        "DESCRIPTION":"Taxi Delivery",
        "SORT":"500",
        "CURRENCY":"USD",
        "LOGOTYPE":null
      },
      {
        "ID":"689",
        "PARENT_ID":"622",
        "NAME":"Cargo",
        "ACTIVE":"Y",
        "DESCRIPTION":"Cargo Delivery",
        "SORT":"500",
        "CURRENCY":"USD",
        "LOGOTYPE":null
      }
    ]
  },
  "time":{
    "start":1642404734.307061,
    "finish":1642404734.582061,
    "duration":0.27500009536743164,
    "processing":0.08100008964538574,
    "date_start":"2022-01-17T09:32:14+02:00",
    "date_finish":"2022-01-17T09:32:14+02:00"
  }
}

Returns the root delivery service, as well as all created profiles. Root delivery service is used as container for delivery services for specific profiles (their list was indicated when creating the handler). The setup process (additional service config, property adding and etc.) will require profile IDs for the root delivery service. You can get the list of created profiles either from the response after creating a root service, or later (for example, using the method sale.delivery.getList):

{
  "FILTER":{
    "PARENT_ID":622
  }
}

Response example:

{
  "result":[
    {
      "ID":"688",
      "PARENT_ID":"687",
      "NAME":"Taxi",
      "ACTIVE":"Y",
      "DESCRIPTION":"Taxi Delivery",
      "SORT":"500",
      "CURRENCY":"USD",
      "LOGOTYPE":null
    },
    {
      "ID":"689",
      "PARENT_ID":"687",
      "NAME":"Cargo",
      "ACTIVE":"Y",
      "DESCRIPTION":"Cargo Delivery",
      "SORT":"500",
      "CURRENCY":"USD",
      "LOGOTYPE":null
    }
  ],
  "time":{
    "start":1638544721.243672,
    "finish":1638544721.621672,
    "duration":0.37800002098083496,
    "processing":0.019999980926513672,
    "date_start":"2021-12-03T17:18:41+02:00",
    "date_finish":"2021-12-03T17:18:41+02:00"
  }
}

The example above shows, that during the process of creating a root delivery service - two subsidiary services were created for profiles with identifiers 688 and 689. These two specific services will be used for further setup. Root service is just a container for the delivery service profiles.

In case, you'll need to indicate settings or load a custom logo for a specific profile's delivery service, use the method sale.delivery.update.

Description for the rest of delivery service methods can be found in the section Delivery services.

  Configuring additional delivery services

If the a profile has additional services, they can be added using the method sale.delivery.extra.service.add.

  • Example of adding an extra service of checkbox (yes/no) "Delivery to the door" type:
    {
      "DELIVERY_ID":688,
      "ACTIVE":"Y",
      "CODE":"door_delivery",
      "NAME":"Door Delivery",
      "TYPE":"checkbox",
      "PRICE":59.99,
      "SORT":100
    }
    
  • Example of adding an extra service of enum (list) "Cargo type" type:
    {
      "DELIVERY_ID":688,
      "ACTIVE":"Y",
      "CODE":"cargo_type",
      "NAME":"Cargo Type",
      "TYPE":"enum",
      "ITEMS":[
        {
          "TITLE":"Small Package(s)",
          "CODE":"small_package",
          "PRICE":129.99
        },
        {
          "TITLE":"Documents",
          "CODE":"documents",
          "PRICE":69.99
        }
      ],
      "SORT":100
    }
    

You can indicate a symbolic code (CODE) for additional delivery service to then identify selected extra services when getting queries to webhooks for calculating delivery prices and creating a delivery orders. The response returns a numerical identifier for created additional service. It can be also used as an alternative to symbolic code to identify selected extra services when querying the webhooks.

Full list of methods to handle additional services can be found in the section Additional services.

  Handling shipping properties

When you have to provide additional information needed to calculate delivery price and/or create a delivery order, it can be done by adding properties to delivery service profiles. Below is an example of adding two "Address" properties (From and To) and "String" property for passing a text commentary. To create a shipping property, use the method sale.shipmentproperty.add.

Example of created property for indicating source shipping address:

{
  "fields":{
    "personTypeId":"3",
    "propsGroupId":"11",
    "name":"Address From",
    "active":"Y",
    "sort":"100",
    "description":"",
    "type":"ADDRESS",
    "required":"Y",
    "isAddressFrom":"Y"
  }
}

Example of creating property for indicating destination shipping address:

{
  "fields":{
    "personTypeId":"3",
    "propsGroupId":"11",
    "name":"Address To",
    "active":"Y",
    "sort":"100",
    "description":"",
    "type":"ADDRESS",
    "required":"Y",
    "isAddressTo":"Y"
  }
}

Example of creating property for indicating a commentary:

{
  "fields":{
    "personTypeId":"3",
    "propsGroupId":"11",
    "name":"Comments",
    "active":"Y",
    "sort":"100",
    "description":"",
    "type":"STRING",
    "required":"N"
  }
}

Responses will contain created properties' identifiers. They will be needed to identify property values subsequently passed to webhooks. They are also needed for adding a created property to delivery service profile (see next step).

Payer type (personTypeId) can be fetched by the method sale.persontype.list. Property must be created separately for each required payer type (legal, private persons).

Property group (propsGroupId) can be fetched by the method sale.propertygroup.list.

Each created property now must be added to a delivery service profile. You can do it using the method sale.propertyRelation.add.

Example:

{
  "fields":{
    "propertyId":"437",
    "entityId":"688",
    "entityType":"D"
  }
}

This example adds a property with identifier 437 to the delivery service with identifier 688.

When you plan to create several delivery services that share certain set of properties (for example, they all need "From" and "To" addresses, as well as commentary), then you don't have to create separate properties for each delivery service. You can just add new delivery services to already existing properties. You can get list of shipping properties using the method sale.shipmentproperty.list.

At this step, config and setup procedure is complete. Next stage is overviewed in the article for procedure of using installed and configured delivery service.




Courses developed by Bitrix24