Public API
  • Overview
  • Authentication
    • Create a developer account
    • Generate account access token
    • Refresh access token
  • Store management
    • Countries
    • Create store
    • User stores
  • Integration management
    • Information of delivery integrations
    • Enable delivery integration
    • Disable delivery integration
  • Delivery Orders For POS
    • Webhook management
    • Webhook Content
    • Retreive Delivery Orders
    • Successful order creation
    • Order Creation failed
  • Menu Management
    • Upload menu to delivery app
  • Third Party Market Apps
    • Third Party Webhook Management
    • Third Party Send Order
    • Third Party Webhooks Content
  • Inventory
    • Inventory system management
    • POS sync inventory
  • Logistic
    • Logistic integrations management
    • POS integrations management
    • Available services
Powered by GitBook
On this page
  • Set up webhook
  • Update webhook
  • Delete webhook
  • Get user webhooks

Was this helpful?

  1. Delivery Orders For POS

Webhook management

This public API includes webhook for the following cases: 1.Incoming orders(type="ORDER"), is the webhook where our service will send new orders.

2.Get Menu(type="Menu"), is the webhook where our service will get POS menu.

The URLs that will receive the requests must be configured with the following endpoint.

When you set a Menu type webhook, our service will send to you the store_id as a body parameter.

Set up webhook

POST https://integrations.mipos.shop/api/v1/integration/webhook/create

Headers

Name
Type
Description

Authorization

string

Bearer {access_token}

Content-Type

string

application/json

Request Body

Name
Type
Description

type

string

Webhook type, by default is "ORDER"

url

string

Webhook URL

{
    "message": "Webhook successfully created",
    "data": null
}
"Unauthorized."
{
    "message": [
        "User not authenticated.",
        "User not found.",
        "This webhook already exists",
        "Unable to set up the webhook URL."
    ],
    "data": null
}
{
    "url": [
        "The url field is required."
    ]
}

Update webhook

POST https://integrations.mipos.shop/api/v1/integration/webhook/update

Headers

Name
Type
Description

Authorization

string

Bearer {access_token}

Content-Type

string

application/jsonc

Request Body

Name
Type
Description

current_url

string

Current webhook URL

new_url

string

New webhook URL

{
    "message": "Webhook successfully updated",
    "data": null
}
"Unauthorized."
{
    "message": [
        "User not authenticated.",
        "User not found.",
        "This webhook does not exist",
        "This new webhook already exists",
        "Unable to update the webhook URL."
    ],
    "data": null
}
{
    "current_url": [
        "The current url field is required."
    ],
    "new_url": [
        "The new url field is required."
    ]
}

Delete webhook

POST https://integrations.mipos.shop/api/v1/integration/webhook/delete

Headers

Name
Type
Description

Authorization

string

Bearer {access_token}

Content-Type

string

application/json

Request Body

Name
Type
Description

url

string

Webhook URL

{
    "message": "Webhook successfully removed",
    "data": null
}
"Unauthorized."
{
    "message": [
        "User not authenticated.",
        "User not found.",
        "This webhook does not exist",
        "Unable to remove the webhook URL."
    ],
    "data": null
}
{
    "url": [
        "The url field is required."
    ]
}

Get user webhooks

GET https://integrations.mipos.shop/api/v1/integration/webhooks

Headers

Name
Type
Description

Authorization

string

Bearer {token}

[
    {
        "url": "https://urlwebhook1.test"
    },
    {
        "url": "https://urlwebhook2.test"
    },
    {
        "url": "https://urlwebhook3.test"
    }
]
"Unauthorized."
{
    "message": [
        "User not authenticated.",
        "User not found."
    ],
    "data": null
}
PreviousDisable delivery integrationNextWebhook Content

Last updated 4 years ago

Was this helpful?