Type | Description |
---|---|
API Keys | The API keys as headers in the request. The most common version is ‘bearer tokens’. |
Basic Auth | HTTP Basic Auth, where you provide a username and password. |
OAuth 2.0 | OAuth 2.0 Auth, where you can set the Authorization endpoint and parameters, the HTTP method, a client ID, and a client secret. |
Header name
and Value
(e.g. Header name: x-stedi-noauth
and Value: dummy
). Since the receiving API isn’t authenticating the call, it will ignore these values and accept the request.
POST
, PUT
, GET
, PATCH
, DELETE
).
Destinations are scoped to a single auth. However, you might have multiple destinations for a single system integration, each with a different endpoint. For example, one endpoint for creating Sales Orders and another for Item Fulfillments.
transaction.processed.v2
and fragment.processed.v2
events.transaction.processed.v2
event binding to send processed transaction data to external APIs. If the transaction set uses fragments to split the payload into smaller chunks, you can also configure an event binding for fragment.processed.v2
events.
You can optionally add a Stedi mapping to both types of event bindings to transform the payload shape before sending it to the destination.
transaction.processed.v2
event each time it processes a transaction. An EDI file can contain multiple transactions, so a single EDI file can produce multiple events that each invoke the configured destination webhook. When you use a transaction.processed.v2
event to trigger a destination, Stedi includes the Guide JSON transaction in the payload along with the event data.
The transaction itself is only included as part of the event if the whole response (payload + event) is < 1MB. Otherwise, the event will contain a section that specifies the transaction was too big to be included and you can retrieve the actual transaction by making a request to the transaction
artifact.
When fragments are enabled, the transaction.processed.v2
payload includes an empty array in place of the fragmented segment. Stedi then emits one fragment.processed.v2
event for each fragment within the processed transaction. The event contains a link you can use to retrieve the fragment data as well as information about the original transaction, such as the ISA
and GS
headers.
Refer to Events for complete details and examples.
transaction.processed.v2
or fragment.processed.v2
as the Event detail-type and complete the following fields:
005010
850 Purchase Orders from two different retailers, and those retailers have different guides. Since the transaction payloads will differ, you may want to send them to different API endpoints within your system.005010
850 Purchase Orders from two different retailers, and those retailers have different guides. Since the transaction payloads will differ, you can choose a mapping to convert the 850s to your API shape.
source
.