foodpanda logo
DocumentationAPI specification
Introduction
API

SFTP
On this page

1. Prepare the Promotions File
2. Test Promotion Creation
3. Test Promotion Deactivation
4. Final Review & Go Live

Testing the Integration#

In order to make sure that the integration is correctly set, it is important to go through the end-to-end testing process. To ensure a smooth integration, you need to test various scenarios by following these steps:

1. Prepare the Promotions File#

  • Create an SFTP file that includes the following data:
    • Product Identifier (SKU or Barcode)
    • Promotion Start and End Dates
    • Discounted Price (must be lower than the original price)
    • Campaign Name
    • Reason
  • Name the File correctly, otherwise the file will fail :
    • <prefix>_vendorID.csv for single vendor updates
    • <prefix>.csv for multivendor updates

2. Test Promotion Creation#

  • Add a promotion for one or two products, ensuring that the price difference is minimal (e.g., a few cents would be enough) but still discounted.
  • Push the file to the central server via SFTP.
  • Verify the promotion details in Shops Promotions Plugin in our Partner Portal to check:
    • If the promotion was created correctly.
    • The scheduled start and end dates.
    • The reason and SKUs associated with the promotion.
  • Cross-check in the Platform App to confirm that the discounted prices appear correctly.

3. Test Promotion Deactivation#

  • Modify the same file used for activation but set campaign status = 0.
  • Ensure that all other data remains unchanged; otherwise, the deactivation will not work.
  • Push the updated file to the Central Server via SFTP.
  • Verify in the Partner Portal and Platform App to confirm that:
    • The promotion has been removed.
    • The products are back to their original prices.

4. Final Review & Go Live#

  • If all scenarios (promotion activation and deactivation) are successfully tested, the integration is ready to go live.

SFTPUse CasesSFTPFAQ