The Payment Methods API allows you to manage payment processing options in the Venddor platform. This documentation outlines the available endpoints and their supported HTTP methods.
https://www.venddor.com.br/api
This endpoint allows you to retrieve all payment methods or create a new payment method.
| Method | Description | Usage |
|---|---|---|
| GET | Retrieve all payment methods | Returns a list of all available payment methods |
| POST | Create a new payment method | Requires a JSON body with payment method details |
{
"payment_name": "Credit Card - Mastercard",
"processor": "stripe",
"processor_params": {
"api_key": "pk_test_TYooMQauvdEDq54NiTphI7jx",
"currency": "BRL",
"payment_method_types": ["card"]
},
"instructions": "Enter your credit card details to complete the payment",
"min_order_amount": 10.00,
"max_order_amount": 10000.00,
"position": 10,
"status": "A",
"icon": "mastercard.png"
}
{
"payments": [
{
"payment_id": 1,
"payment_name": "Credit Card - Mastercard",
"processor": "stripe",
"min_order_amount": 10.00,
"max_order_amount": 10000.00,
"position": 10,
"status": "A"
},
{
"payment_id": 2,
"payment_name": "Credit Card - Visa",
"processor": "stripe",
"min_order_amount": 10.00,
"max_order_amount": 10000.00,
"position": 20,
"status": "A"
},
{
"payment_id": 3,
"payment_name": "Boleto Bancário",
"processor": "pagseguro",
"min_order_amount": 5.00,
"max_order_amount": 5000.00,
"position": 30,
"status": "A"
}
]
}
This endpoint allows you to work with a specific payment method identified by its ID.
| Parameter | Type | Description |
|---|---|---|
| id* | integer | The unique identifier of the payment method |
| Method | Description | Usage |
|---|---|---|
| GET | Retrieve a specific payment method | Returns detailed information about the specified payment method |
| PUT | Update a payment method | Requires a JSON body with fields to update |
| DELETE | Delete a payment method | Permanently removes the payment method from the system |
{
"status": "D",
"processor_params": {
"api_key": "pk_live_TYooMQauvdEDq54NiTphI7jx"
},
"instructions": "Enter your Mastercard credit card details to complete the payment"
}
{
"payment_id": 1,
"payment_name": "Credit Card - Mastercard",
"processor": "stripe",
"processor_params": {
"api_key": "pk_live_TYooMQauvdEDq54NiTphI7jx",
"currency": "BRL",
"payment_method_types": ["card"]
},
"instructions": "Enter your Mastercard credit card details to complete the payment",
"min_order_amount": 10.00,
"max_order_amount": 10000.00,
"position": 10,
"status": "D",
"icon": "mastercard.png",
"last_modified": "2025-04-16T10:25:32Z"
}
| Status | Description |
|---|---|
A |
Active - Payment method is available for customer selection |
H |
Hidden - Payment method exists but is not visible to customers |
D |
Disabled - Payment method is temporarily disabled |
| Processor | Description |
|---|---|
stripe |
Stripe payment gateway for credit card processing |
pagseguro |
PagSeguro payment gateway for Brazilian payment methods |
paypal |
PayPal payment gateway for PayPal accounts |
mercadopago |
Mercado Pago payment gateway for Latin American payment methods |
custom |
Custom payment method for offline payments or manual processing |