Run Processor

Knowledge Base Home

Search the Omeda Knowledge Base

Summary

The Run Processor API runs the Processor for an indivdual TransactionID that is pending processing.

Base Resource URI

For Production, use: https://ows.omeda.com/webservices/rest/brand/{brandAbbreviation}/runprocessor/* For Testing, use: https://ows.omedastaging.com/webservices/rest/brand/{brandAbbreviation}/runprocessor/*

brandAbbreviation is the abbreviation for the brand to which the data is being posted.

Technical Requirements

The HTTP header must contain the following elements: x-omeda-appid a unique id provided to you by Omeda to access your data. The request will fail without a valid id. content-type application/json.

Supported Content Types

JSON application/json

JSON is the preferred data exchange format, because it is lightweight and, in most cases, faster to process and utilizes less bandwidth. There are many available open-source JSON libraries available. See json.org for details.

Supported HTTP Methods

There is one HTTP method supported: POST See W3C’s POST specs for details.

Field Definition

The following tables describe the data elements that can be included in the POST method to lookup data in the database.

Process Element

Attribute Name

Required?

Description

Attribute Name

Required?

Description

Process

required

Top level element that will contain all parameters for what the processor should run

Transaction Info Element

Attribute Name

Required?

Description

Attribute Name

Required?

Description

TransactionId

required

The TransactionId or TransactionIds that you would like the Processor to run

Restrictions

Transactions that are processed via this resource cannot have Omatch in the Input process flow. Such cases will result in an error being returned and the transaction not processing.

Request Examples

JSON Example – One TransactionId

{ "Process": [ { "TransactionId": 789231763 } ] }

Multiple Transactions – Either format acceptable

JSON Example – Many TransactionIds

{ "Process": [ { "TransactionId": [ 789231763, 276347892, 2378239231 ] } ] }

JSON Example – Many TransactionIds

Response Examples

Two responses are possible: a successful POST (200 OK Status) or a failed POST (400 Bad Request/403 Forbidden/404 Not Found/405 Method Not Allowed Statuses). See W3C’s Status Codes.

Successful Submission

A successful POST submission will return the status of each TransactionId that was processed. This will require parsing to retrieve the information you require.

JSON Example – One TransactionId

JSON Example – Many TransactionIds

Error Response

In the event of an error, an error response will be returned. This will result in an HTTP Status 400 Bad Request/404 Not Found/405 Method Not Allowed.

Failed POST submission – Potential Error Messages

This is not an exhaustive list of errors, but common ones. If an error occurs repeatedly, please contact your Omeda representative.

Failed POST submission – Potential Error Codes

Status

Description

Status

Description

400 Bad Request

Typically, this error occurs when the request does not follow the specifications.

403 Forbidden

Typically, this error occurs when the credentials are erroneous. Potentially, an incorrect x-omeda-appid.

404 Not Found

Typically, this error occurs with a malformed URL or the resource that is searched for is not found.

405 Method Not Allowed

Typically, this error occurs when the resource accessed is not allowed by the HTTP Method utilized. Make sure you employ the correct HTTP Method (POST) for this request.

JSON Example

In the rare case that there is a server-side problem, an HTTP 500 (server error) will be returned. This generally indicates a problem of a more serious nature, and submitting additional requests may not be advisable. Please contact Omeda Account Representative.