POST
/
webhook
/
retry
curl --request POST \
  --url https://prod01.oms.fabric.inc/api/v2/webhook/retry \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-site-context: <x-site-context>' \
  --data '{
  "orderNumber": "oms_234322",
  "channel": "WHBM",
  "tenant": "5ef879t578f89",
  "apiVersion": "1.0.0",
  "event": "ORDER_CREATED",
  "payload": "{\n       \"orderId\":\"4fr4g45frew-24f54vre-3fre\"\n    }",
  "eventRequestId": "5ef879t5-78f89"
}'
[
  "{\n\n        \"statusCodeValue\": 200,\n        \"statusCode\": \"OK\"\n    }"
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Example:

"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"

Body

application/json
channel
string
required

channel

Example:

"WHBM"

tenant
string
required

tenantId

Example:

"5ef879t578f89"

event
string
required

name of the event that needs to be triggered

Example:

"ORDER_CREATED"

payload
object
required
Example:

"{\n \"orderId\":\"4fr4g45frew-24f54vre-3fre\"\n }"

eventRequestId
string
required

unique identifier of the request

Example:

"5ef879t5-78f89"

orderNumber
string

Order number

Example:

"oms_234322"

apiVersion
string

api version

Example:

"1.0.0"

Response

200
application/json
OK

The response is of type object[].