API Definition to interact with Prana platform
Prana API (1.0)
https://api.prana.software/api/v1/supplier/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/supplier/{id}'Response
application/json
{ "id": 1, "code": 0, "cif": "string", "commercialName": "string", "vat": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "name": "string", "address": "string", "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "state": { "id": 1, "code": "string", "description": "string", "country": { … }, "isoCode": "string" }, "postalCode": "string", "city": "string", "phone1": "string", "phone2": "string", "replacementTime": 0, "language": { "id": 1, "code": "ES", "description": "Spanish", "isoCode": "EN" }, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "manufacturer": true, "importer": true, "active": true, "notCreateOrder": true, "observation": "string", "geographicalLocation": "NATIONAL", "creationDate": "2019-08-24", "inactiveDate": "2019-08-24", "accountingAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customer": { "id": 10001, "code": 10001, "name": "Acme S.A.", "commercialName": "Acme España", "cif": "B12345678", "address": "Av. de la Estación, 5", "firstPhoneNumber": "+34600111222", "secondPhoneNumber": "+34600333444", "postalCode": "03001", "countryDescription": "Spain", "stateDescription": "Alicante", "email": "info@acme.es", "city": "Alicante", "activity": "Wholesale Trade", "brand": "Acme", "brandId": 100, "creationDate": "2020-01-01", "isActive": true, "inactiveDate": "2023-08-07", "paymentMethodId": 1, "paymentMethod": "Bank Transfer", "paymentMethodServeFullPrePaid": false, "rateCode": "RATE-001", "account": "ES9820385778983000760236", "vatDescription": "General", "discount1": 5, "currencyCode": "EUR", "currencyDescription": "Euro", "modifiedOn": "2024-08-07T12:30:00", "bankName": "Santander", "contactPerson": "Juan Pérez", "web": "https://www.acme.es", "picture": "https://www.acme.es/logo.png", "pictureToken": "xyz-token-241235", "tags": [ … ] }, "operator": { "id": 1, "code": 0, "name": "string" }, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "email": "string", "paymentMethod": { "id": 1, "code": 1, "description": "Transferencia bancaria", "document": "Contrato", "firstTerm": 30, "terms": 3, "daysTerms": 30, "remittance": true, "addToCustomerBase": true, "serveFullPrePaid": false, "observations": "Requiere verificación bancaria", "icon": "fa-credit-card", "facturaECode": "01" }, "terms": 0, "daysFirstTerm": 0, "daysBetweenTerms": 0, "discount1": 0, "discount2": 0, "discountPp": 0, "proximityType": "NEARBY", "paymentDay1": 0, "paymentDay2": 0, "paymentDay3": 0, "weekday": "MONDAY", "paymentMethodObservation": { "id": 1, "code": "string", "type": "CLASSIFICATION", "description": "string", "blockOrder": true }, "paymentMethodObservationDescription": "string", "account": "string", "swift": "string", "bic": "string", "agency": { "id": 1, "code": "AG001", "name": "Fast Transport Agency" }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "ropoCode": "string", "ropoExpireDate": "2019-08-24", "tags": [ "string" ], "irpfType": "LEASES", "bankName": "string", "contactPerson": "string", "picture": "string", "pictureToken": "string", "incomeTaxRate": 0, "web": "string", "modifiedOn": "2019-08-24T14:15:22Z", "observations": [ { … } ], "files": [ { … } ] }
https://api.prana.software/api/v1/supplier/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/supplier/{id}' \
-H 'Content-Type: application/json' \
-d '{
"code": 0,
"cif": "string",
"commercialName": "string",
"name": "string",
"address": "string",
"country": 0,
"vat": 0,
"state": 0,
"postalCode": "string",
"city": "string",
"phone1": "string",
"phone2": "string",
"replacementTime": 0,
"language": 0,
"currency": 0,
"manufacturer": true,
"importer": true,
"active": true,
"notCreateOrder": true,
"observation": "string",
"geographicalLocation": "NATIONAL",
"creationDate": "2019-08-24",
"inactiveDate": "2019-08-24",
"accountingAccount": 0,
"customer": 0,
"operator": 0,
"warehouse": 0,
"email": "string",
"paymentMethod": 0,
"terms": 0,
"daysFirstTerm": 0,
"daysBetweenTerms": 0,
"discount1": 0,
"discount2": 0,
"discountPp": 0,
"proximityType": "NEARBY",
"paymentDay1": 0,
"paymentDay2": 0,
"paymentDay3": 0,
"weekday": "MONDAY",
"paymentMethodObservation": 0,
"paymentMethodObservationDescription": "string",
"account": "string",
"swift": "string",
"bic": "string",
"agency": 0,
"shippingTerm": 0,
"ropoCode": "string",
"ropoExpireDate": "2019-08-24",
"irpfType": "LEASES",
"picture": "string",
"bankName": "string",
"contactPerson": "string",
"incomeTaxRate": 0,
"web": "string",
"tags": [
"string"
],
"observations": [
{
"id": 0,
"title": "string",
"description": "string"
}
],
"files": [
{
"id": 0,
"token": "string",
"fileName": "string",
"fileExtension": "string",
"fileSize": 0
}
]
}'Response
application/json
{ "id": 1, "code": 0, "cif": "string", "commercialName": "string", "vat": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "name": "string", "address": "string", "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "state": { "id": 1, "code": "string", "description": "string", "country": { … }, "isoCode": "string" }, "postalCode": "string", "city": "string", "phone1": "string", "phone2": "string", "replacementTime": 0, "language": { "id": 1, "code": "ES", "description": "Spanish", "isoCode": "EN" }, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "manufacturer": true, "importer": true, "active": true, "notCreateOrder": true, "observation": "string", "geographicalLocation": "NATIONAL", "creationDate": "2019-08-24", "inactiveDate": "2019-08-24", "accountingAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customer": { "id": 10001, "code": 10001, "name": "Acme S.A.", "commercialName": "Acme España", "cif": "B12345678", "address": "Av. de la Estación, 5", "firstPhoneNumber": "+34600111222", "secondPhoneNumber": "+34600333444", "postalCode": "03001", "countryDescription": "Spain", "stateDescription": "Alicante", "email": "info@acme.es", "city": "Alicante", "activity": "Wholesale Trade", "brand": "Acme", "brandId": 100, "creationDate": "2020-01-01", "isActive": true, "inactiveDate": "2023-08-07", "paymentMethodId": 1, "paymentMethod": "Bank Transfer", "paymentMethodServeFullPrePaid": false, "rateCode": "RATE-001", "account": "ES9820385778983000760236", "vatDescription": "General", "discount1": 5, "currencyCode": "EUR", "currencyDescription": "Euro", "modifiedOn": "2024-08-07T12:30:00", "bankName": "Santander", "contactPerson": "Juan Pérez", "web": "https://www.acme.es", "picture": "https://www.acme.es/logo.png", "pictureToken": "xyz-token-241235", "tags": [ … ] }, "operator": { "id": 1, "code": 0, "name": "string" }, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "email": "string", "paymentMethod": { "id": 1, "code": 1, "description": "Transferencia bancaria", "document": "Contrato", "firstTerm": 30, "terms": 3, "daysTerms": 30, "remittance": true, "addToCustomerBase": true, "serveFullPrePaid": false, "observations": "Requiere verificación bancaria", "icon": "fa-credit-card", "facturaECode": "01" }, "terms": 0, "daysFirstTerm": 0, "daysBetweenTerms": 0, "discount1": 0, "discount2": 0, "discountPp": 0, "proximityType": "NEARBY", "paymentDay1": 0, "paymentDay2": 0, "paymentDay3": 0, "weekday": "MONDAY", "paymentMethodObservation": { "id": 1, "code": "string", "type": "CLASSIFICATION", "description": "string", "blockOrder": true }, "paymentMethodObservationDescription": "string", "account": "string", "swift": "string", "bic": "string", "agency": { "id": 1, "code": "AG001", "name": "Fast Transport Agency" }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "ropoCode": "string", "ropoExpireDate": "2019-08-24", "tags": [ "string" ], "irpfType": "LEASES", "bankName": "string", "contactPerson": "string", "picture": "string", "pictureToken": "string", "incomeTaxRate": 0, "web": "string", "modifiedOn": "2019-08-24T14:15:22Z", "observations": [ { … } ], "files": [ { … } ] }
https://api.prana.software/api/v1/supplier
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/supplier \
-H 'Content-Type: application/json' \
-d '{
"code": 0,
"cif": "string",
"commercialName": "string",
"name": "string",
"address": "string",
"country": 0,
"vat": 0,
"state": 0,
"postalCode": "string",
"city": "string",
"phone1": "string",
"phone2": "string",
"replacementTime": 0,
"language": 0,
"currency": 0,
"manufacturer": true,
"importer": true,
"active": true,
"notCreateOrder": true,
"observation": "string",
"geographicalLocation": "NATIONAL",
"creationDate": "2019-08-24",
"inactiveDate": "2019-08-24",
"accountingAccount": 0,
"customer": 0,
"operator": 0,
"warehouse": 0,
"email": "string",
"paymentMethod": 0,
"terms": 0,
"daysFirstTerm": 0,
"daysBetweenTerms": 0,
"discount1": 0,
"discount2": 0,
"discountPp": 0,
"proximityType": "NEARBY",
"paymentDay1": 0,
"paymentDay2": 0,
"paymentDay3": 0,
"weekday": "MONDAY",
"paymentMethodObservation": 0,
"paymentMethodObservationDescription": "string",
"account": "string",
"swift": "string",
"bic": "string",
"agency": 0,
"shippingTerm": 0,
"ropoCode": "string",
"ropoExpireDate": "2019-08-24",
"irpfType": "LEASES",
"picture": "string",
"bankName": "string",
"contactPerson": "string",
"incomeTaxRate": 0,
"web": "string",
"tags": [
"string"
],
"observations": [
{
"id": 0,
"title": "string",
"description": "string"
}
],
"files": [
{
"id": 0,
"token": "string",
"fileName": "string",
"fileExtension": "string",
"fileSize": 0
}
]
}'Response
application/json
{ "id": 1, "code": 0, "cif": "string", "commercialName": "string", "vat": { "id": 1, "code": "GENERAL", "description": "General VAT type" }, "name": "string", "address": "string", "country": { "id": 1, "code": 724, "description": "Spain", "isoCode": "US", "customerVatType": "GENERAL", "geographicalLocation": "NATIONAL" }, "state": { "id": 1, "code": "string", "description": "string", "country": { … }, "isoCode": "string" }, "postalCode": "string", "city": "string", "phone1": "string", "phone2": "string", "replacementTime": 0, "language": { "id": 1, "code": "ES", "description": "Spanish", "isoCode": "EN" }, "currency": { "id": 1, "code": "strin", "description": "string", "nomenclature": "strin", "isoCode": "USD", "changeValue": 0, "significantDecimalsDocuments": 0, "intermediateDecimalsDocuments": 0, "decimalsCalculatePrices": 0, "decimalsCalculateCosts": 0 }, "manufacturer": true, "importer": true, "active": true, "notCreateOrder": true, "observation": "string", "geographicalLocation": "NATIONAL", "creationDate": "2019-08-24", "inactiveDate": "2019-08-24", "accountingAccount": { "id": 1, "code": 1000, "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": 100, "parentDescription": "Assets" }, "customer": { "id": 10001, "code": 10001, "name": "Acme S.A.", "commercialName": "Acme España", "cif": "B12345678", "address": "Av. de la Estación, 5", "firstPhoneNumber": "+34600111222", "secondPhoneNumber": "+34600333444", "postalCode": "03001", "countryDescription": "Spain", "stateDescription": "Alicante", "email": "info@acme.es", "city": "Alicante", "activity": "Wholesale Trade", "brand": "Acme", "brandId": 100, "creationDate": "2020-01-01", "isActive": true, "inactiveDate": "2023-08-07", "paymentMethodId": 1, "paymentMethod": "Bank Transfer", "paymentMethodServeFullPrePaid": false, "rateCode": "RATE-001", "account": "ES9820385778983000760236", "vatDescription": "General", "discount1": 5, "currencyCode": "EUR", "currencyDescription": "Euro", "modifiedOn": "2024-08-07T12:30:00", "bankName": "Santander", "contactPerson": "Juan Pérez", "web": "https://www.acme.es", "picture": "https://www.acme.es/logo.png", "pictureToken": "xyz-token-241235", "tags": [ … ] }, "operator": { "id": 1, "code": 0, "name": "string" }, "warehouse": { "id": 1, "code": "ALM01", "description": "Central warehouse" }, "email": "string", "paymentMethod": { "id": 1, "code": 1, "description": "Transferencia bancaria", "document": "Contrato", "firstTerm": 30, "terms": 3, "daysTerms": 30, "remittance": true, "addToCustomerBase": true, "serveFullPrePaid": false, "observations": "Requiere verificación bancaria", "icon": "fa-credit-card", "facturaECode": "01" }, "terms": 0, "daysFirstTerm": 0, "daysBetweenTerms": 0, "discount1": 0, "discount2": 0, "discountPp": 0, "proximityType": "NEARBY", "paymentDay1": 0, "paymentDay2": 0, "paymentDay3": 0, "weekday": "MONDAY", "paymentMethodObservation": { "id": 1, "code": "string", "type": "CLASSIFICATION", "description": "string", "blockOrder": true }, "paymentMethodObservationDescription": "string", "account": "string", "swift": "string", "bic": "string", "agency": { "id": 1, "code": "AG001", "name": "Fast Transport Agency" }, "shippingTerm": { "id": 1, "code": "string", "customerPays": true, "intrastatCode": "string" }, "ropoCode": "string", "ropoExpireDate": "2019-08-24", "tags": [ "string" ], "irpfType": "LEASES", "bankName": "string", "contactPerson": "string", "picture": "string", "pictureToken": "string", "incomeTaxRate": 0, "web": "string", "modifiedOn": "2019-08-24T14:15:22Z", "observations": [ { … } ], "files": [ { … } ] }
https://api.prana.software/api/v1/supplier/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/supplier/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 }