Skip to content

Methods of payment

Allows you to view the list of payment methods used by payku.

Base URL: https://app.payku.cl/ (Default server) · https://des.payku.cl/ (Sandbox server)
GET/api/paymentmethods

This method allows you to obtain a list of payment methods on payku.

curl -X GET \
https://BASE-URL/api/paymentmethods \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/json' \
-H 'Host: BASE-URL' \

Responses

200
{
"status": "success",
"payment_methods": [
{
"currency": "CLP",
"payment": 1,
"name": "Webpay",
"description": "Visa, Mastercard, Magna, American, Diners y Redcompra."
}
]
}
Response fields
ParameterTypeDescription
status string

Status of the endpoint. The possible statuses that can be obtained are the following:

  • success
Example: success
payment_methods array of objects
Example: [{"currency":"CLP","payment":1,"name":"Webpay","description":"Visa, Mastercard, Magna, American, Diners y Redcompra."}]
description string

Brief description of payment method.

Example: Use your bank, simplify your transfers.
payment number

Code belonging to the payment method.

Example: 17
name string

Name of payment method.

Example: Vepuy
currency string

Currency

Get list of payment methods by currency type

Section titled “Get list of payment methods by currency type”
GET/api/paymentmethods?currency=clp

This method allows you to get a list of payment methods in payku. To filter by currency, you have to add the query params currency with the currency value.

curl -X GET \
https://BASE-URL/api/paymentmethods?currency=clp \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/json' \
-H 'Host: BASE-URL' \

Responses

200
{
"status": "success",
"payment_methods": [
{
"currency": "CLP",
"payment": 1,
"name": "Webpay",
"description": "Visa, Mastercard, Magna, American, Diners y Redcompra."
},
{
"currency": "CLP",
"payment": 9,
"name": "MACH",
"description": "Paga en comercios online internacionales y nacionales"
}
]
}
Response fields
ParameterTypeDescription
status string

Status of the endpoint. The possible statuses that can be obtained are the following:

  • success
Example: success
payment_methods array of objects
Example: [{"currency":"CLP","payment":1,"name":"Webpay","description":"Visa, Mastercard, Magna, American, Diners y Redcompra."},{"currency":"CLP","payment":9,"name":"MACH","description":"Paga en comercios online internacionales y nacionales"}]
code string

Code of the bank to which the bank account belongs.

Example: Banco de Chile
name string

Name of bank.

Example: Banco de Chile
currency string

Currency