VyaFac is a powerful and secure payment gateway API designed to streamline transaction processing. Developers can leverage OpenAPI specifications to manage products, pricing options with tax plans, and customer accounts along with their payment methods. The API also enables the creation and management of subscriptions and payment links, providing a seamless and efficient payment experience.
- Update pricing option
List pricing options
Create pricing option
Get pricing option
Delete pricing option
Update pricing option
VyaFac API (1.0.0)
Download OpenAPI description
Languages
Servers
Mock server
https://docs.vyafac.com/_mock/openapi/
- Mock server
https://docs.vyafac.com/_mock/openapi/products/{productId}/pricing-options
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.vyafac.com/_mock/openapi/products/pro_1xUyaVQeGpQY0pyFHzXJxpZo/pricing-options?limit=50' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "status": "success", "message": "List pricing options retrieved successfully", "data": [ { … } ], "code": 200, "timestamp": "2025-02-27T12:00:00+00:00", "version": "1.0.0" }
- Mock server
https://docs.vyafac.com/_mock/openapi/products/{productId}/pricing-options
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.vyafac.com/_mock/openapi/products/pro_1xUyaVQeGpQY0pyFHzXJxpZo/pricing-options \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"default": 1,
"price": 15.7,
"payment_type": "recurring",
"billing_frequency": 1,
"billing_interval_type": "months"
}'Response
application/json
{ "status": "success", "message": "Pricing option created successfully", "data": { "id": "price_nT5EUArglpqiY8D7TVyeWNmi", "default": 1, "price": 15.7, "payment_type": "recurring", "billing_frequency": 1, "billing_interval_type": "months" }, "code": 200, "timestamp": "2025-02-27T12:05:00+00:00", "version": "1.0.0" }
- Mock server
https://docs.vyafac.com/_mock/openapi/products/{productId}/pricing-options/{pricingOptionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.vyafac.com/_mock/openapi/products/pro_1xUyaVQeGpQY0pyFHzXJxpZo/pricing-options/price_1xUyaVQeGpQY0pyFHzXJxpZo \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "status": "success", "message": "Pricing option details retrieved successfully", "data": { "id": "price_nT5EUArglpqiY8D7TVyeWNmi", "default": true, "price": 15.7, "payment_type": "recurring", "billing_frequency": 1, "billing_interval_type": "months" }, "code": 200, "timestamp": "2025-02-27T12:10:00+00:00", "version": "1.0.0" }
Bodyapplication/jsonrequired
- Mock server
https://docs.vyafac.com/_mock/openapi/products/{productId}/pricing-options/{pricingOptionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.vyafac.com/_mock/openapi/products/pro_1xUyaVQeGpQY0pyFHzXJxpZo/pricing-options/price_1xUyaVQeGpQY0pyFHzXJxpZo \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"default": 1,
"price": 10.5,
"payment_type": "recurring",
"billing_frequency": 3,
"billing_interval_type": "years"
}'Response
application/json
{ "status": "success", "message": "Pricing option updated successfully", "data": { "id": "price_nT5EUArglpqiY8D7TVyeWNmi", "default": 1, "price": 10.5, "payment_type": "recurring", "billing_frequency": 3, "billing_interval_type": "years" }, "code": 200, "timestamp": "2025-02-27T12:15:00+00:00", "version": "1.0.0" }
- Mock server
https://docs.vyafac.com/_mock/openapi/products/{productId}/pricing-options/{pricingOptionId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.vyafac.com/_mock/openapi/products/pro_1xUyaVQeGpQY0pyFHzXJxpZo/pricing-options/price_1xUyaVQeGpQY0pyFHzXJxpZo \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Response
application/json
{ "status": "success", "message": "Pricing option deleted successfully", "data": null, "code": 200, "timestamp": "2025-02-27T12:20:00+00:00", "version": "1.0.0" }