Skip to content
Pitch2SaleDevelopers
Open the app
Early access: these pages are being written and reviewed. Facts in the header boxes come straight from the product.

Create a Razorpay order for an invoice

POST
/api/v1/invoices/{id}/razorpay/order
curl --request POST \
--url https://api.pitch2sale.com/api/v1/invoices/example/razorpay/order \
--header 'Authorization: Bearer <token>'
id
required
string

The order to open Razorpay Checkout with

Media typeapplication/json
object
order_id
required
string
key_id
required
string
amount
required
number
currency
required
string
Examplegenerated
{
"order_id": "example",
"key_id": "example",
"amount": 1,
"currency": "example"
}

Authentication required or token invalid

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}

Role permission or token scope missing

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}

Rate limit exceeded

Media typeapplication/json
object
error
required
string
code
string
message
string
details
Array<object>
object
field
required
string
message
required
string
code
required
string
Examplegenerated
{
"error": "example",
"code": "example",
"message": "example",
"details": [
{
"field": "example",
"message": "example",
"code": "example"
}
]
}