Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.zupy.com/llms.txt

Use this file to discover all available pages before exploring further.

Download our Postman collection and environment template to explore the entire Zupy Partner API v2 without writing any code.
What’s included: 22 pre-configured requests across 8 categories, with example responses, auto-capture scripts, and an end-to-end test flow.

Download Files

Postman Collection

All 22 partner API endpoints organized by category

Environment Template

Pre-configured variables for the production environment

Setup Instructions

1

Import the collection

Open Postman, click Import, and drag in zupy-partner-api.postman_collection.json.You’ll see the Zupy Partner API v2 collection with 9 folders:
  • Authentication (OTP)
  • Customers
  • Loyalty Programs
  • Rewards
  • Coupons
  • Z$ Tokens
  • Wallet
  • Webhooks
  • Company
2

Import the environment

Click Import again and drag in zupy-production.postman_environment.json.Select Zupy Production as your active environment in the top-right dropdown.
3

Set your API key

Click the eye icon next to the environment selector, then click Edit.Set the api_key variable to your actual API key (format: zupy_pk_*).
Don’t have an API key yet? Contact webmaster@zupy.com.br to start the onboarding process.
4

Start testing

Run requests in order — the collection includes test scripts that auto-populate environment variables as you go.

Suggested Test Flow

Run the requests in this order for a complete end-to-end test:
StepRequestWhat Happens
1Send Order Data (Webhooks)Creates a customer and assigns points
2Search Customers (Customers)Finds the customer, auto-sets customer_id
3Add Points (Customers)Manually adds extra points
4List Programs (Loyalty)Gets program info, auto-sets program_id
5Browse Reward Catalog (Rewards)Shows available rewards, auto-sets reward_id
6Redeem Reward (Rewards)Creates a coupon, auto-sets coupon_code
7List Customer Coupons (Coupons)Shows the new coupon, auto-sets coupon_id
8Validate Coupon (Coupons)Marks the coupon as used
9**Get ZBalance(Z Balance** (Z Tokens)Checks on-chain token balance

Auto-Capture Scripts

Key requests include test scripts that automatically save response values to your environment:
RequestAuto-Captured Variables
Verify OTPotp_session, customer_id
Search Customerscustomer_id
List Programsprogram_id
Browse Reward Catalogreward_id
Redeem Rewardcoupon_code
List Customer Couponscoupon_id
Create Loyalty Passpass_id
This means you can run requests sequentially without manually copying IDs between requests.

Environment Variables

VariableDefaultDescription
base_urlhttps://api.zupy.comAPI base URL
api_keyzupy_pk_YOUR_API_KEY_HEREYour partner API key
phone5511987654321Test phone number
partner_slugrepediuYour integration partner slug
customer_id(auto-populated)Customer KSUID
reward_id(auto-populated)Reward KSUID
coupon_id(auto-populated)Coupon KSUID
coupon_code(auto-populated)Coupon code string
program_id(auto-populated)Loyalty program KSUID
pass_id(auto-populated)Wallet pass KSUID
otp_session(auto-populated)OTP session token

Collection Authentication

All requests inherit the X-API-Key header from the collection-level authentication. You don’t need to set the header on individual requests. For OTP-protected endpoints, add the X-OTP-Session header manually or use the auto-captured otp_session variable after verifying an OTP.

Next Steps

Getting Started

Follow the quickstart guide with code examples in cURL, Python, and JavaScript

API Reference

Browse all endpoints with full request/response schemas