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#

Click below to jump to the topics:

In order to test your integration, you’ll need to:#

  1. Have a test user

    You must share with your Account Manager an email address you have access to, but that does not already exist in PedidosYa. This email will be used to create a test user so you can view your test store from the PedidosYa mobile app.

  2. Have a test store

    Your Account Manager must provide you with the ID, name, and address of your test store.

  3. Have access to the test store in Partner Portal

    Your Account Manager must ensure that you have access to the test store in Partner Portal.

  4. Validate your integration

    You can test the different functionalities you develop in your test store and see their impact in Partner Portal or in the PedidosYa app.

How do I perform E2E testing?#

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 PedidosYa's 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 PedidosYa's 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. You can schedule a meeting here with our Integrations Support team to certify your integration.


SFTPUse CasesSFTPFAQ