API
Manage Incoming Orders
Manage your Catalog of products
SFTP
Manage your Catalog of products
Manage your Promotions
On this page
Can I generate API tokens myself?
How many tokens can I generate?
Which account details required to establish API communication?
If an existing chain wants to onboard new outlets or scale, what is the process to integration?
How do I find my Foodpanda Vendor/store ID?
What If I already have internal storeID and I don’t want to use Platform storeID?
Which order statuses are sent to the webhook for Partner Picking Integrations ?
How do I get the best out of the Partner picking integration using my webhook?
What are the limitations of the Partner Picking Integration ?
What are the fields in the order payload and how can I use them?
Should I validate the client details provided in the order payload?
What is the difference between "order_id", "external_order_id" and "order_code" and which one shall the Partner use for reconciliation purposes?
What is the difference between "sub_total" and "order_total" ? Which is the final order total Partner should consider?
What if the item has weight-based pricing?
How to identify the items with finite quantity and items with KG / weighted quantities in order payload?
How can I tell if an order was actually picked up after being cancelled? I need to know whether it should be treated as a final sale.
How do I validate order cancellation? Should I use the same webhook or a different endpoint?
What happens if my webhook service is not reachable does pelican picking integration support retries to our webhook?
What are different way for testing the integrations?
How can I use a Sandbox environment for order management integrations?
How End to End live testing performed?
What is Partner Portal and how do I get access?
How do I access the Shops Integrations Plugin?
Where can I go for further support?
FAQ#
Click below to jump to the topics:
Access to Integrations & Credentials
Order payload fields and schema
Which order statuses are sent to the webhook for Partner Picking Integrations ?
How do I get the best out of the Partner picking integration using my webhook?
What are the limitations of the Partner picking integrations?
What are the fields in the order payload and how can I use them?
Should I validate the client details provided in the order payload?
How do I validate order cancellation? Should I use the same webhook or a different endpoint?
Testing Integrations
Access to Partner Portal
Integrations Access & Credentials#
Can I generate API tokens myself?#
Yes, you can generate tokens on your own. You are required to have access to the Shop Integrations plug-in in Partner Portal.
How many tokens can I generate?#
You can generate up to 11 API tokens in the Partner Portal. These are bearer tokens which don’t have an expiry date and are applicable at the chain level, meaning a single API key can manage all outlets in a chain
Which account details required to establish API communication?#
Ensure that you have access to Partner Portal with Integration plugin, check with Account Manager to get access to required users
Post which API token can be generated and can be used to communicate with our API (Prerequisite: POS integrations to be enabled in Catalog & webhook should be configured in Partner Portal )
If an existing chain wants to onboard new outlets or scale, what is the process to integration?#
To scale the integration at chain level, following things are to be considered from your side
Verify access to your new stores in Partner Portal and review webhook configurations
(Optional) If you have any internal mapping for your store, it is possible for you to configure directly from the Shop Integrations plug-in. Use the new configured store-id or vendor id in your API requests
How do I find my Foodpanda Vendor/store ID?#
You can get it directly Partner Portal>Shop Integrations>Settings>Vendor Identifier section or please check with your Account manager.
What If I already have internal storeID and I don’t want to use Platform storeID?#
You can configure your internal storeID in Partner Portal>Shop Integrations>Settings>Vendor Identifier section. Please note to use the newly mapped storeID in your API requests.
Order payload fields and schema#
Which order statuses are sent to the webhook for Partner Picking Integrations ?#
For Partner Picking Integrations, the webhook receives notifications for the following order statuses:
RECEIVED: This is the initial status of an order, indicating that order processing by the partner has not yet started. It is sent by Delivery Hero automation to the vendor's webhook when an order is received.
READY_FOR_PICKUP: This status signifies that order picking and packing has been completed by the partner, and the order is ready for pickup by a delivery rider. This status is set by the vendor using a PUT endpoint.
DISPATCHED: The order has been dispatched. For Platform Delivery, this status is sent by Delivery Hero automation to partner webhooks when riders pick up the order from the store.
CANCELLED: An order is marked as CANCELLED if the order is canceled by the customer, delivery rider, or you. No webhook will be sent on cancellations originating from the Partner Picking solution.
How do I get the best out of the Partner picking integration using my webhook?#
RECEIVED
READY_FOR_PICKUP
DISPATCHED
andCANCELLED
order statuses are to be consumed by your webhookConfigurations: To secure your webhook configurations in Partner Portal, secrets can be utilised for the purpose it can be any string, we also accommodate basic authentication mechanism.
For example, if the webhook service uses
partner
as the username andrandompassword
as the password, then the value in Base64 encoding ofpartner: *randompassword
, iscmFuZG9tcGFzc3dvcmQ=
Then the Authorization header field will appear as:
Basic cmFuZG9tcGFzc3dvcmQ=
(this needs to be added to the secret field in the Partner Portal)\NoteSecuring your webhook using secret is mandatory
Leveraging PUT endpoint, ensure that you have covered below use cases with your own picking solution
Complete order fulfilment
Partial order fulfilment
Item replacements
Item additions
Cart updates
Fulfil order containing weighted items i.e
pricing_type: "KG"
Modify order quantity on items with
pricing_type: "UNIT"
(price adjustments are possible to a lower value on either of the fieldsunit_pice
ortotal_price
but not both)Order cancellation including appropriate cancellation reasons
What are the limitations of the Partner Picking Integration ?#
Price modifications are not allowed on weighted items i.e
pricing_type: "KG"
Platform
external_order_id
doesn’t work to retrieve the order, while using the get endpoint to retrive single order, you should use theorder_id
(type uuid) from the order payload.Kindly ensure that your API requests(GET or PUT) to our service do not exceed 60 requests per minute.
What are the fields in the order payload and how can I use them?#
{order_id: "807c225f-ac6d-445d-a074-ea960c892ca7",// used in GET endpointexternal_order_id: "qktu-ul1p", // visible on pelicanorder_code: "546",client: { //contains store informationid: "22438",chain_id: "0aa64dc1-280b-4d1c-972a-28a15a14382a",name: "qktu - chainname",country_code: "tw",store_id: "qktu",external_partner_config_id: "462" //internal mapping for your stores},customer: { // customer information is masked_id: "twxqg33o",national_id: "",tax_id: "",first_name: "于**",last_name: "**",phone_number: "+88693****651",delivery_address: {country: "",city: "",street: "",number: "",latitude: 0,longitude: 0,company: "",block: "",building: "",apartment: "",entrance: "",intercom: "",floor: "",suburb: "",zipcode: "",instructions: "",formattedAddress: ""}},comment: "",items: [ // item level information{_id: "796ee50e-2cb5-41ec-8a06-4208fe15dcb3",sku: "222316",barcode: [4710036604597],name: "#222316 | 靠得住冰爽棉28cm | 15 片 | #4710036604597",pricing: { // contains information of fulfilled itemspricing_type: "UNIT",unit_price: 85,vat_percent: 0,total_price: 170,quantity: 2,min_quantity: 0,max_quantity: 2},original_pricing: { // contain information of item at order placementpricing_type: "UNIT", // fo UNIT quatity hold information of any changesunit_price: 85,vat_percent: 0,total_price: 170,quantity: 2,min_quantity: 0,max_quantity: 2},container_deposit: 0,discount: 0,instructions: "",status: "NOT_PROCESSED" // item level status},{_id: "a5e42c90-351f-4c64-be7a-7dace4b96033",sku: "146344",barcode: [4710098163773],name: "#146344 | 77脆可穀麥巧克力 | 36 g | #4710098163773",pricing: {pricing_type: "KG",–> // when pricing type is KG, weight field is availble in the pricing object, qunatity defualts to 1unit_price: 7,vat_percent: 0,total_price: 14,weight: 2.0,quantity: 1,min_quantity: 0,max_quantity: 1},original_pricing: {pricing_type: "KG",unit_price: 7,vat_percent: 0,total_price: 14,weight: 2.0,quantity: 1,min_quantity: 0,max_quantity: 2},container_deposit: 0,discount: 0,instructions: "",status: "NOT_PROCESSED" // item level status}],order_type: "DELIVERY",transport_type: "LOGISTICS_DELIVERY", // type delivery flowpayment: {sub_total: 184, // sum of total itemsorder_total: 177, // amount paid by the customer contains fees,discountsdelivery_fee: 0,service_fee: 2.39,difference_to_minimum: 0,discounts: [{name: "vh8o1buy",value: -9.2}],discount: -9.2,container_charge: 0,total_taxes: 8.32,additional_fees: {PriorityDeliveryFee: 0},type: "PAID"},cancellation: {reason: "",cancelled_by: "",post_pickup: true // only visible for cancelled orders post order fulfilment},status: "CANCELLED", // order statussys: {created_at: "2023-09-01T07:41:17.733Z",created_by: "Order Fulfilment",updated_at: "2023-09-01T07:45:45.863Z",updated_by: "Order Fulfilment",webhook_status: ""},promised_for: "2023-09-01T08:06:11Z",isPreorder: false}
Should I validate the client details provided in the order payload?#
Depending on how you intend to route orders to a specific store, you can use the following field information to accurately identify and validate the store.
store_id
: xxxx
, – Identifier of the store on Platform systems
external_partner_config_id
: xxxx
– if the Partner store/outlet has any internal identifier it must be mapped to this field.
Depending on how you want to direct the orders to specific store you can use below field information to validate the store
If you have SFTP integration, changing this configuration might affect SFTP updates, review from AM is required
What is the difference between "order_id", "external_order_id" and "order_code" and which one shall the Partner use for reconciliation purposes?#
order_id
: 7384a9e4-c4e1-4820-873e-2cc637acec78
– Unique identifier for order used in our backend services. If you want to query a single order using the GET endpoint you should use order_id
external_order_id
: mxuv-2439-9sa5
– platform order id, shown on Pelican device, external_order_id
could be used in your reconciliation process
order_code
: its an incremental value(resets after 9999) on orders used by riders for picking orders from store
What is the difference between "sub_total" and "order_total" ? Which is the final order total Partner should consider?#
sub_total
:Refers to the total value of the order items, including item-level taxes but excluding any order-level discounts (such as coupon codes or discounts applied at the overall order level). You should usesub_total
when you want to validate the cumulative value of all items in the orderorder_total
: This is the final amount paid by the customer for the order. It includes all item prices, delivery fees, and discounts(such as coupon codes or discounts applied at the overall order level)
What if the item has weight-based pricing?#
When an item has weight-based pricing, pricing_type will be "KG" at item level in the order payload. For such items, the quantity field will always have a default value of 1, and a weight field will be present with a decimal value to indicate the item's weight.
How to identify the items with finite quantity and items with KG / weighted quantities in order payload?#
Each item in the order has
pricing
andoriginal_pricing
objects, & both objects havequantity
fieldpricing
object contain picked quantity (adjusted by the picker) refer to the fieldItems.pricing.quantity
original_pricing
object contains ordered quantity by the customer, refer to the fieldItems.original_pricing.quantity
For items with finite quantity,
pricing_type
will beUNIT
, sharing both pricing andoriginal_pricing
objects. The pricing object contains the picked quantity by the picker.Items.pricing.quantity
{"pricing": {"pricing_type": "UNIT","unit_price": 0.69,"vat_percent": 0,"total_price": 0.69,"quantity": 1,"min_quantity": 0,"max_quantity": 2},"original_pricing": {"pricing_type": "UNIT","unit_price": 0.69,"vat_percent": 0,"total_price": 1.38,"quantity": 2,"min_quantity": 0,"max_quantity": 2},}
For items with weight
, pricing_type
will be KG, sharing both pricing
and original_pricing
objects. The pricing object contains the actual picked/fulfilled weight(decimal value) by the picker i.e Items.pricing.weight
. We also share quantity for weighted items however this will be default value 1 (can be ignored if you find it not useful)
{"pricing": {"pricing_type": "KG","unit_price": 0.69,"vat_percent": 0,"total_price": 0.69,"quantity": 1,"weight": 1.0,"min_quantity": 0,"max_quantity": 2},"original_pricing": {"pricing_type": "KG","unit_price": 0.69,"vat_percent": 0,"total_price": 0.69,"quantity": 1,"weight": 1.0,"min_quantity": 0,"max_quantity": 2}}
How can I tell if an order was actually picked up after being cancelled? I need to know whether it should be treated as a final sale.#
Request to Account Manager to enable the post_pick_up
field. This is an addition to the existing cancellation object specific to the usecase– order cancellation after rider pickup. For all other cancelations scenarios– NO CHANGE, post_pick_up field is not visible.
Scenario: order cancelation after rider pickup:…"cancellation": {"reason": "TECHNICAL_PROBLEM","cancelled_by": "CUSTOMER","post_picked_up": true},..For other cancelation scenarios:…"cancellation": {"reason": "TECHNICAL_PROBLEM","cancelled_by": "CUSTOMER",},
How do I validate order cancellation? Should I use the same webhook or a different endpoint?#
Cancellation can occur from customer, vendor and logistics. When the cancellation event occurs during the life cycle of order. CANCELLED
status will be sent to the same webhook configured in the Partner Portal.
What happens if my webhook service is not reachable does pelican picking integration support retries to our webhook?#
We support retry mechanisms in cases where your webhook service does not respond within 10 seconds. The system will attempt up to 5 retries, each spaced 10 seconds apart. It is important that you implement appropriate handling on your end to manage potential duplicate order payloads, so that repeated webhook deliveries don't result in processing the same order multiple times.
Testing Integrations#
What are different way for testing the integrations?#
Sandbox testing: During development stage Partner can utilise this environment to test directly from Partner Portal. To be used only for testing the communication between Partner API and your webhook
E2E testing: After Partner completes the development they can perform live End to End integration testing coordinating with Platform teams. We have list of test cases which can be covered.
NoteBoth of the above tests are performed in a production environment, meaning a test store must be created or identified under the chain
How can I use a Sandbox environment for order management integrations?#
We have a sandbox environment which will be enabled automatically when a webhook is configured in the Partner Portal(Prerequisite: store POS integrations to be enabled & webhook should be configured in Partner Portal ).
Orders created from the sandbox environment can also be modified via PUT endpoint.
You can support the AM by identifying a test store or onboarding a new test store that can be utilised for testing purposes before going Live.
The Sandbox environment will push simulated statues i.e. expect to receive
RECEIVED
,READY_FOR_PICKUP
,CANCELLED
andDISPATCHED
statuses.However in E2E testing you are expected to receive order statuses
RECEIVED
READY_FOR_PICKUP
DISPATCHED
andCANCELLED
to your webhook
How End to End live testing performed?#
In order to perform E2E live integration testing, you’ll need to do the following:
Identify a test store and enable the integration configurations
Coordinate with KAIT, AM & Partner teams, to place an new order on platform and fulfill it from Pelican picking device
Follow the Integration Test cases document to test the integration usecases
Access to Partner Portal#
What is Partner Portal and how do I get access?#
Partner Portal is a back office tool by which you can manage your stores. When you are onboarded to our platform our Account Management team will be providing you the access. Depending on your use privileges you can also manage the webhook and token configurations.
Following activities can be managed from Partner portal:
Integration configurations
How do I access the Shops Integrations Plugin?#
All current Shops Partners of any size can access the Shops Integrations plugin in Partner Portal, you will be given access by your Account Manager or during registration with us.
It is advised to limit the access to Shops plugins in Partner Portal to only those who need to perform a function for your business - this is because Partner Portal can contain sensitive information i.e webhook configurations
Please reach out to your account manager if you do not know how to gain access to Partner Portal
Where can I go for further support?#
If you have any questions regarding the integration or if you are facing errors, please contact your Account Manager or drop an email to Key Account integration Team: keyaccountsQC@deliveryhero.com
Can I generate API tokens myself?
How many tokens can I generate?
Which account details required to establish API communication?
If an existing chain wants to onboard new outlets or scale, what is the process to integration?
How do I find my Foodpanda Vendor/store ID?
What If I already have internal storeID and I don’t want to use Platform storeID?
Which order statuses are sent to the webhook for Partner Picking Integrations ?
How do I get the best out of the Partner picking integration using my webhook?
What are the limitations of the Partner Picking Integration ?
What are the fields in the order payload and how can I use them?
Should I validate the client details provided in the order payload?
What is the difference between "order_id", "external_order_id" and "order_code" and which one shall the Partner use for reconciliation purposes?
What is the difference between "sub_total" and "order_total" ? Which is the final order total Partner should consider?
What if the item has weight-based pricing?
How to identify the items with finite quantity and items with KG / weighted quantities in order payload?
How can I tell if an order was actually picked up after being cancelled? I need to know whether it should be treated as a final sale.
How do I validate order cancellation? Should I use the same webhook or a different endpoint?
What happens if my webhook service is not reachable does pelican picking integration support retries to our webhook?
What are different way for testing the integrations?
How can I use a Sandbox environment for order management integrations?
How End to End live testing performed?
What is Partner Portal and how do I get access?
How do I access the Shops Integrations Plugin?
Where can I go for further support?