Create Order with Payments

This API supports parameters from both the Create Order API and the Payments API.

  • To include Create Order API parameters, prefix them with order.

    • Example: order.metadata.JUSPAY:gateway_reference_id

  • Parameters from the Payments API can be used directly as defined

Note

If you are a PCI-compliant merchant, you can combine the Create Order API and the Payments API into a single API request.

Refer to the sample request and response below for implementation details.

API Endpoints
Sandbox Link
POST
https://sandbox.juspay.in/txns
Production Link
POST
https://api.juspay.in/txns
Authorization Header
Headers
Body
200 : Success
400 : Invalid Input data

API Latency Guidelines

What is API Latency?

Time taken by the server to respond to the API request.

  • TP50 (s): This represents the median latency, meaning 50% of all requests are completed in this time or less. It indicates the typical performance experienced by the majority of users.

  • TP90 (s): This value shows that 90% of requests are completed within this time, leaving 10% of requests that take longer. It gives insight into the performance for a broader set of users, beyond the median.

  • TP99 (s): This value indicates that 99% of requests finish within this time, with only 1% of requests taking longer. It helps identify outlier cases where latency may become an issue for a small group of users.

  • TP99.9 (s): This metric captures extreme latency outliers, where only 0.1% of requests take longer than this value. It's useful for understanding edge cases where performance degrades for very few users.

  • TP99.99 (s): This measures the most rare and severe performance outliers, where just 0.01% of requests exceed this time. Monitoring this helps in addressing the rarest and most critical latency issues that may impact user experience in exceptional scenarios.

    Scroll inside to view more
    Transaction Percentile
    Latency (s)
    TP50 (s)em
    0.0198
    TP90 (s)
    0.290
    TP99 (s)
    0.429
    TP99.9 (s)
    0.429
Last updated 1 month ago