How RivetOptimize Works
RivetOptimize adds a real-time optimization step before your payment data reaches your gateway or processor. Your application sends Rivet a tokenized transaction payload, RivetOptimize enriches the payload with processor-ready payment details, and your application submits the optimized payload through your existing payment flow.
This lets you improve transaction qualification, reduce avoidable interchange downgrades, and keep your gateway integration intact.
Payment flow
Without RivetOptimize, your server sends transaction data directly to your payment gateway.
Before RivetOptimize
flowchart LR A[Consumer makes purchase] --> B[Your API Server] B --> C[Payment Gateway] C --> D[Credit Card Networks]
With RivetOptimize, your server calls Rivet before sending the transaction to your gateway. Rivet returns an optimized payload that your server can pass along to the processor.
With RivetOptimize
flowchart LR A[Consumer makes purchase] --> B[Your API Server] B -- OPTIMIZE_SALE Request --> X[RivetOptimize API] X -- Optimized Payload --> B B --> C[Payment Gateway] C --> D[Credit Card Networks]
Optimization request
To optimize a payment, send your transaction payload data to Rivet's API with the OPTIMIZE_SALE action. See the Submit Transaction Payload reference for the full endpoint details.
Rivet returns an optimized_payload together with a _metadata object that indicates whether optimizations were applied. Your application can use the optimized payload with your existing payment processor integration.
Implementation pattern
A typical RivetOptimize integration adds one server-side API call before your existing payment processor call:
- Build your tokenized payment payload. Use the payment data your server already prepares for the gateway.
- Send the payload to RivetOptimize. Call Rivet with the
OPTIMIZE_SALEaction. - Use the optimized payload. If Rivet returns an optimized payload, send that payload to your payment processor.
- Process the transaction normally. Your gateway remains the system that authorizes and captures the payment.
Next steps
Start with Authentication, then review the Submit Transaction Payload API reference.