Skip to main content

Overview

Yuno provides a public Postman workspace with pre-built collections covering the full API surface. Use these collections to explore the API, test payment flows, and prototype integrations without writing code.

Forking the Yuno Workspace

1

Open the Yuno Postman workspace

Navigate to Yuno’s public Postman workspace and browse the available collections.
2

Fork the collection

Click the Fork icon on the collection you want to use. Forking creates a personal copy in your Postman workspace that stays linked to the original for updates.
  • Enter a label for your fork (e.g., “My Yuno Integration”)
  • Select your target workspace
  • Click Fork Collection
3

Fork the environment

Fork the Yuno Sbx - Postman environment alongside the collection. This environment contains the variable structure you need for authentication and request configuration.
Forking rather than exporting keeps your copy linked to the original. When Yuno updates the collection, you can pull changes into your fork.

Environment Setup

The Yuno Sbx - Postman environment provides pre-configured variables for sandbox testing. After forking, update the following variables with your credentials:
VariableDescriptionWhere to Find
public-api-keyClient side API key. Sent as an HTTP header.Dashboard > Developers
private-secret-keyServer side secret key. Sent as an HTTP header.Dashboard > Developers
account_idMerchant account identifier. Sent inside request bodies on endpoints that take it, not as a header.Dashboard > Developers

Configuring Variables

  1. In Postman, click Environments in the sidebar
  2. Select Yuno Sbx - Postman
  3. Enter your values in the Current Value column for each variable
  4. Click Save
Never share your private-secret-key or commit Postman environments with real credentials to version control. Use Postman’s “Current Value” field, which is local to your machine and not synced to shared workspaces.

Additional Environment Variables

The collection uses these auto-populated variables for request chaining:
VariableDescriptionAuto-populated
checkout-session-idID from Create Checkout Session responseYes
payment-idID from Create Payment responseYes
customer-idID from Create Customer responseYes
base-urlYuno API base URLPre-configured

Collection Structure

The Yuno Postman collection is organized by API resource:
FolderEndpointsDescription
Checkout SessionsCreate, retrieve, listManage checkout session lifecycle
PaymentsCreate, capture, cancel, refundFull payment operations
CustomersCreate, update, retrieveCustomer profile management
Payment MethodsList, retrieveQuery available payment methods
ProvidersList connectionsView configured provider connections
WebhooksTest deliverySimulate webhook events
Each request includes:
  • Pre-configured headers (authorization, content-type)
  • Example request body with documented fields
  • Test scripts that auto-save response IDs to environment variables

Running Your First Request

1

Select the environment

In the top-right corner of Postman, select Yuno Sbx - Postman from the environment dropdown.
2

Open Create Checkout Session

Navigate to Checkout Sessions > Create Checkout Session in the collection sidebar.
3

Review the request body

The request body is pre-populated with a valid example. Review and modify fields as needed:
{
  "amount": {
    "currency": "BRL",
    "value": 100
  },
  "country": "BR",
  "merchant_order_id": "order-test-001",
  "payment_description": "Test payment"
}
4

Send the request

Click Send. A successful response returns a 201 status with the checkout session object. The checkout_session_id is automatically saved to your environment variables.
5

Continue the flow

Use the saved checkout_session_id in subsequent requests like Create Payment to complete the payment flow.

Request Chaining

The collection uses Postman test scripts to chain requests automatically. When you run a request, the response ID is saved to an environment variable and referenced by the next request in the flow:
Create Checkout Session → saves checkout-session-id

Create Payment → uses checkout-session-id, saves payment-id

Capture Payment → uses payment-id
This allows you to run a complete payment flow sequentially without manually copying IDs between requests.

Testing with Different Payment Methods

The collection includes example request bodies for common payment methods:
Payment MethodCountryKey Fields
CardMultiplecard.number, card.cvv, card.expiration_month/year
PIXBRcustomer.document (CPF/CNPJ)
OXXOMXcustomer.email
Bank TransferCOcustomer.document, customer.phone
Switch between payment method examples by selecting the corresponding request variant within each folder.
Sandbox test credentials and card numbers are documented in the request descriptions. Use the provided test values for consistent results.

Sharing with Your Team

Share your configured collection with team members:
  1. Postman Team Workspace: Move your fork to a team workspace so all members have access
  2. Environment management: Create a shared environment with non-sensitive variables (account_id, base-url) and instruct members to add their own private-secret-key locally
  3. Collection updates: When Yuno updates the source collection, pull changes into your fork via Pull Changes in the fork menu
Shared Postman workspaces sync environment variables. Ensure private-secret-key is set only in the Current Value column (local, not synced) and not in the Initial Value column (synced to workspace).

Best Practices

  • Keep your fork updated. Regularly pull changes from the Yuno source collection to get new endpoints and fixes.
  • Use environment variables for all dynamic values. Avoid hardcoding IDs, keys, or tokens in request bodies.
  • Run requests in sequence for payment flows. The chaining scripts depend on running requests in the correct order.
  • Review test scripts. The collection includes assertions that validate response structure. Run them as part of your testing to catch integration issues early.
  • Create separate environments for sandbox and production. Duplicate the environment, update credentials, and switch between them using the environment selector.