Delivery Integration
4 API calls in this section.
Get Delivery Integration Settings
/restaurant/delivery-integrationRead how the restaurant connects to its delivery service.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/delivery-integration" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"Response examples
No saved response example. Use Try it to inspect a staging response.
Upsert Delivery Integration Settings
/restaurant/delivery-integrationSave delivery integration mode, connection settings, retry behavior and default service.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
Body parameters
| Parameter | Type | Description |
|---|---|---|
mode | string | — |
status | string | — |
external_base_url | string | — |
external_api_key | string | — |
webhook_secret | null | — |
timeout_ms | number | — |
retries | number | — |
default_delivery_service_id | string | — |
1curl --globoff --request PUT "https://staging-api.ondi.io/functions/v1/restaurant/delivery-integration" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3 --header "Content-Type: application/json" \4 --data-raw '{5 "mode": "external",6 "status": "draft",7 "external_base_url": "https://external-tenant-edge-url",8 "external_api_key": "od_xxx",9 "webhook_secret": null,10 "timeout_ms": 15000,11 "retries": 3,12 "default_delivery_service_id": "{{delivery_service_id}}"13}'Replace {{placeholders}} with your own values before sending.
Response examples
No saved response example. Use Try it to inspect a staging response.
Test & Activate External Delivery Integration
/restaurant/delivery-integration/testCheck the supplied external delivery connection and activate a successful integration.
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
Body parameters
| Parameter | Type | Description |
|---|---|---|
mode | string | — |
external_base_url | string | — |
external_api_key | string | — |
default_delivery_service_id | string | — |
timeout_ms | number | — |
retries | number | — |
1curl --globoff --request POST "https://staging-api.ondi.io/functions/v1/restaurant/delivery-integration/test" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}" \3 --header "Content-Type: application/json" \4 --data-raw '{5 "mode": "external",6 "external_base_url": "https://external-tenant-edge-url",7 "external_api_key": "od_xxx",8 "default_delivery_service_id": "{{delivery_service_id}}",9 "timeout_ms": 15000,10 "retries": 311}'Replace {{placeholders}} with your own values before sending.
Response examples
No saved response example. Use Try it to inspect a staging response.
List External Delivery Services (via Restaurant)
/restaurant/delivery-integration/servicesBrowse delivery services exposed through the restaurant’s external integration.
Query parameters
| Parameter | Type | Description |
|---|---|---|
delivery_type_code | string | Example: |
active | string | Example: |
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization | string | Example: |
1curl --globoff --request GET "https://staging-api.ondi.io/functions/v1/restaurant/delivery-integration/services?delivery_type_code=ondemand&active=true" \2 --header "Authorization: Bearer ${ONDI_ACCESS_TOKEN}"Response examples
No saved response example. Use Try it to inspect a staging response.