Create Order API

This is a Server-to-Server API that takes order parameters as an input and creates an order in the Juspay system and fetches the corresponding client_auth_token.


Amount and order id are the mandatory fields, the contact details like email, phone number, customer id's are conditional and depends on the underlying payment gateway/ aggregator used.

'UDF' is used to pass any additional information that is required to be stored at Juspay for any analysis or other operations. In some cases, these UDFs are passed to the downstream gateways as well.

Juspay supports 10 UDFs (UDF1 to UDF10). The values passed in UDFs are reflected back in the order status response and in webhooks back to the merchant. If there are any special characters that need to be passed in UDF values, please use UDF 6 to 10 for passing the same. UDF 1 to 5 can be used to pass values which do not have any special characters.

‘Metadata’ is used to send custom params to the payment aggregators, irrespective of default parameters, The supported parameters

Note: Auth api key should be Base64 encoded.

Scroll inside to view more
Payment Gateways
Fields
PG1
metadata.PG1:promo_code
PG2
metadata.PG2:AdditionalInfo3
PG3
metadata.PG3:campaignCode
PG4
metadata.PG4:OrderInfo
PAYPAL
metadata.PAYPAL:landing_page
PAYPAL
metadata.PAYPAL:phone_number
PAYPAL
metadata.PAYPAL:country_code
PAYPAL
metadata.PAYPAL:first_name
PAYPAL
metadata.PAYPAL:last_name
PAYPAL
metadata.PAYPAL:experience_id
PAYPAL
metadata.PAYPAL:brand_name
PAYPAL
metadata.PAYPAL:additional_data

Payment Links
Order create response will contain payment links for web, mobile & iFrame. These links can directly be emailed or messaged to your customers. If you wish to use your own branding, then you can embed the iframe link into your page. Note that, these links are not valid perpetually. As soon as your order expires (this can be changed via our dashboardlink icon, the link will cease to work.

API Endpoints
Production Link
POST
https://api.juspay.in/orders
Authorization Header
Headers
Body
200 : Success
400 : Invalid Input data
Last updated 1 year ago