Interface Guide with Oriens (English Version)

Esta guía describe el proceso por el cual Oriens envía datos de un Servicio/Tarea finalizado (incluyendo información de carátula y formularios asociados) a un Web Service externo de un tercero.

Setup

Step 1

  1. Request Developer access from your Oriens account executive.

  2. Make sure you have access to the screen Users and Parameters > Additional Configuration in Oriens.

Step 2

  1. In Additional Configuration, set the following information:

    • Services Webservice URL: With your webhook

  2. You must configure one of the following authentication methods:

    • Webservice User and Webservice Password

    • Token (using the parameter: “Authorization and Key are sent in the Webservice Header”)

Step 3

  1. Open a Service form in the portal.

  2. Click the “Consume WS” button:

    • When clicked, the service information is sent to the URL configured previously.

Basic Flow

Oriens Service Completed → User clicks “Consume WS” → Oriens sends JSON to external URL → External system responds with a code

Clicking Consume WS is intended for testing the service, but this process can be automated based on the required conditions.

Service Parameters

The service being consumed is REST-based and expects a string parameter named “servicio”.

Fields in the Received JSON

JSON Field
Description

Servicio

Root object containing all service data.

User

Username configured in Oriens.

Password

Password configured in Oriens.

Carátula

Array containing detailed information about the service operation.

Forma

Array with the fields and values captured by operators.

This is an example of the JSON you will be receiving:

Expected Response

The response returned by the external system must have the following structure:

Where:

  • 0001 = Success

  • 9001 = Processing error (Oriens will retry during the nightly batch process)

Note: If these codes are not returned, the submission will not be considered successful.

Outgoing Web Service Configuration in Oriens

This is configured from the screen Users and Parameters > Additional Configuration.

Configuration Fields
Example Value
Purpose

URL WEBSERVICE DE SERVICIOS

HTTP://WS.PRUEBA.ORIENS.COM.MX (Example)

Defines the endpoint to which Oriens will send the JSON via REST POST.

USUARIO WEBSERVICE

USUARIOWS (Example)

Username if authenticating with user/password.

PASSWORD PARA WEBSERVICE

PASSWORD (Example)

Password associated with the Webservice User.

SE ENVIA AUTHORIZATION Y KEY EN HEADER PARA WEBSERVICE

TOKEN (Example)

Used if the Web Service requires token-based authentication in the HTTP header.

Oriens will send either the token or the credentials depending on what has been configured.

Last updated