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

NameTypeDescription

Authorization

string

Bearer {access_token}

Content-Type

string

application/json

Request Body

NameTypeDescription

type

string

Webhook type, by default is "ORDER"

url

string

Webhook URL

{
    "message": "Webhook successfully created",
    "data": null
}

Update webhook

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

Headers

NameTypeDescription

Authorization

string

Bearer {access_token}

Content-Type

string

application/jsonc

Request Body

NameTypeDescription

current_url

string

Current webhook URL

new_url

string

New webhook URL

{
    "message": "Webhook successfully updated",
    "data": null
}

Delete webhook

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

Headers

NameTypeDescription

Authorization

string

Bearer {access_token}

Content-Type

string

application/json

Request Body

NameTypeDescription

url

string

Webhook URL

{
    "message": "Webhook successfully removed",
    "data": null
}

Get user webhooks

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

Headers

NameTypeDescription

Authorization

string

Bearer {token}

[
    {
        "url": "https://urlwebhook1.test"
    },
    {
        "url": "https://urlwebhook2.test"
    },
    {
        "url": "https://urlwebhook3.test"
    }
]

Last updated