API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/payment/method/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/payment/method/{id}'Response
application/json
{ "id": 1, "code": 0, "description": "string", "document": "string", "firstTerm": 0, "terms": 0, "daysTerms": 0, "remittance": true, "addToCustomerBase": true, "notCountedAsPaymentForecast": true, "serveFullPrePaid": true, "paymentAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "discountAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customerAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "saleAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "billCode": "string", "fdiCode": "string", "facturaECode": "01", "observations": "string", "prestashopModule": "string", "languages": { "property1": "string", "property2": "string" }, "icon": "string" }
Bodyapplication/jsonrequired
Description of the payment method.
Example: "Bank transfer"
Indicates if payment is not counted as forecast.
Example: false
Enum"NOT_SPECIFIED""CASH""DOMICILED_RECEIPT""RECEIPT""TRANSFER""ACCEPTED_LETTER""LETTER_OF_CREDIT""CONTRACT_AWARD""BILL_OF_EXCHANGE""PROMISORY_NOTE_IN_ORDER"
Example: "TRANSFERENCIA"
Additional observations about the payment method.
Example: "Requires confirmation"
Name of the Prestashop module associated.
Example: "ps_bankwire"
https://api.prana.software/api/v1/payment/method/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/payment/method/{id}' \
-H 'Content-Type: application/json' \
-d '{
"code": 10,
"description": "Bank transfer",
"document": "DOC01",
"firstTerm": 30,
"terms": 3,
"daysTerms": 90,
"remittance": true,
"addToCustomerBase": true,
"notCountedAsPaymentForecast": false,
"serveFullPrePaid": false,
"paymentAccount": 410,
"discountAccount": 411,
"customerAccount": 430,
"saleAccount": 700,
"billCode": "BILL01",
"fdiCode": "A",
"facturaECode": "01",
"observations": "Requires confirmation",
"prestashopModule": "ps_bankwire",
"languages": {
"property1": "string",
"property2": "string"
},
"icon": "icon-bank.png"
}'Response
application/json
{ "id": 1, "code": 0, "description": "string", "document": "string", "firstTerm": 0, "terms": 0, "daysTerms": 0, "remittance": true, "addToCustomerBase": true, "notCountedAsPaymentForecast": true, "serveFullPrePaid": true, "paymentAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "discountAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customerAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "saleAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "billCode": "string", "fdiCode": "string", "facturaECode": "01", "observations": "string", "prestashopModule": "string", "languages": { "property1": "string", "property2": "string" }, "icon": "string" }
Bodyapplication/jsonrequired
Description of the payment method.
Example: "Bank transfer"
Indicates if payment is not counted as forecast.
Example: false
Enum"NOT_SPECIFIED""CASH""DOMICILED_RECEIPT""RECEIPT""TRANSFER""ACCEPTED_LETTER""LETTER_OF_CREDIT""CONTRACT_AWARD""BILL_OF_EXCHANGE""PROMISORY_NOTE_IN_ORDER"
Example: "TRANSFERENCIA"
Additional observations about the payment method.
Example: "Requires confirmation"
Name of the Prestashop module associated.
Example: "ps_bankwire"
https://api.prana.software/api/v1/payment/method
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/payment/method \
-H 'Content-Type: application/json' \
-d '{
"code": 10,
"description": "Bank transfer",
"document": "DOC01",
"firstTerm": 30,
"terms": 3,
"daysTerms": 90,
"remittance": true,
"addToCustomerBase": true,
"notCountedAsPaymentForecast": false,
"serveFullPrePaid": false,
"paymentAccount": 410,
"discountAccount": 411,
"customerAccount": 430,
"saleAccount": 700,
"billCode": "BILL01",
"fdiCode": "A",
"facturaECode": "01",
"observations": "Requires confirmation",
"prestashopModule": "ps_bankwire",
"languages": {
"property1": "string",
"property2": "string"
},
"icon": "icon-bank.png"
}'Response
application/json
{ "id": 1, "code": 0, "description": "string", "document": "string", "firstTerm": 0, "terms": 0, "daysTerms": 0, "remittance": true, "addToCustomerBase": true, "notCountedAsPaymentForecast": true, "serveFullPrePaid": true, "paymentAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "discountAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customerAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "saleAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "billCode": "string", "fdiCode": "string", "facturaECode": "01", "observations": "string", "prestashopModule": "string", "languages": { "property1": "string", "property2": "string" }, "icon": "string" }
https://api.prana.software/api/v1/payment/method/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/payment/method/search \
-H 'Content-Type: application/json' \
-d '{
"condition": {
"field": "name",
"value": "Example Value",
"type": "EQ",
"endValue": 100,
"innerConditions": [
{}
],
"conditionType": "AND",
"empty": false,
"compareFields": false
},
"sortCriteria": [
{
"sortField": "name",
"sortDirection": "ASC"
}
],
"pageNumber": 0,
"pageSize": 20
}'Response
application/json
{ "data": [ { … } ], "page": 0, "total": 150, "pages": 14, "size": 10 }