```
```

2. Webhook Create

With this service, you can set up a webhook structure for your order packages.

  • You need to use "storeFrontCode" as the Header Parameter.

  • The ID value returned as a service response is the ID value of the webhook structure you have installed, and must be used in update and delete operations.

  • Requests to be sent to integration services must be authorized with the basic authentication method "basic authentication".

    • SellerId, API KEY and API SECRET KEY information used for Basic Authentication must be obtained from the "Integration Information" page in the "My Account Information" section of the seller panel.
  • If your service expects api key in the header, it will be sent as "x-api-key".

POST createWebhook

Input Parameters

FieldDefinitionType
urlWebhook Service URL Informationstring
usernameUsername to be used for Basic Authenticationstring
countryCodesCountry code in order to create webhook for getting related countries's orders. It is optional. You can use Storefront Code list here. This field allows you to manage orders by specific countries. If this field is not added in the request body, you will continue to receive orders from all active countries.string
passwordThe password to be used for Basic Authenticationstring
authenticationTypeCould be "BASIC_AUTHENTICATION" or "API_KEY"string
apiKeyapiKey information which will be used for Authorizationstring
subscribedStatusesStatu list for the order informationarray

The statuses you can enter for the "subscribedStatuses" field are as follows:

If the "subscribedStatuses" field is sent empty, all the statuses specified below are automatically assigned. If a new status is added to the list below, the added status is defined in the same way for your current webhookID.

  • "CREATED"
  • "PICKING"
  • "INVOICED"
  • "SHIPPED"
  • "CANCELLED"
  • "DELIVERED"
  • "UNDELIVERED"
  • "RETURNED"
  • "UNSUPPLIED"
  • "AWAITING"
  • "UNPACKED"
  • "AT_COLLECTION_POINT"
  • "VERIFIED"

Sample Service Request

{
    "url": "https://testwebhook.com",
    "countryCodes": [
        "SA",
        "AE"
    ],
    "username": "user",
    "password": "password",
    "authenticationType": "API_KEY",
    "apiKey": "123456",
    "subscribedStatuses": [
        "CREATED",
        "PICKING"
    ]
}

Sample Service Response

{
  "id": "string"
}

Did this page help you?