API Definition to Partner interact with Prana platform
Prana Partner API (1.0)
https://api.prana.software/api/v1/partner/subscription/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.prana.software/api/v1/partner/subscription/{id}'Response
application/json
{ "id": 1, "createdOn": "2025-10-01T12:05:36.930615+02:00", "modifiedOn": "2025-10-01T12:05:36.930615+02:00", "partner": { "id": 1, "commercialName": "Clave Informática S.L.", "cif": "B12345678", "name": "Clavei", "email": "info@acme.es", "marginOne": 10, "marginTwo": 10, "logo": "https://www.acme.es/logo.png", "status": "ACTIVE", "externalCode": "Code customer", "subscriptionLimit": 100 }, "company": { "id": 1, "companyName": "Clavei", "companyType": "SELF_EMPLOYED", "companyStatus": "ACTIVE", "employees": "ONE", "fullName": "Clave Informática S.L.", "active": true, "country": { … }, "phone": "+34600111222" }, "commercialName": "Clave Informática S.L.", "cif": "B12345678", "name": "Clavei", "discount": 10, "web": "https://www.acme.es", "logo": "https://www.acme.es/logo.png", "contactPerson": "Juan Pérez", "firstPhoneNumber": "+34600111222", "secondPhoneNumber": "+34600333444", "email": "info@acme.es", "country": { "id": 1, "code": "ES", "description": "Spain", "isoCode": "ES" }, "state": { "id": 1, "code": "ES", "description": "Spain", "isoCode": "012", "country": { … } }, "address": "Av. de la Estación, 5", "postalCode": "03001", "city": "Alicante", "active": true, "invitationCode": "string", "invitationSentOn": "2025-10-01T12:05:36.930615+02:00", "invitationAcceptedOn": "2025-10-01T12:05:36.930615+02:00", "plan": { "id": 1, "description": "PLAN Integral", "suggested": true }, "period": { "id": 1, "description": "Anual", "months": 12 }, "status": "ACTIVE", "externalCode": "Code customer", "newsletter": true, "lastAccess": "2025-10-01T12:05:36.930615+02:00" }
Bodyapplication/jsonrequired
Commercial name of the subscription.
Example: "Clave Informática S.L."
Postal address of the customer.
Example: "Av. de la Estación, 5"
https://api.prana.software/api/v1/partner/subscription/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://api.prana.software/api/v1/partner/subscription/{id}' \
-H 'Content-Type: application/json' \
-d '{
"commercialName": "Clave Informática S.L.",
"cif": "B12345678",
"name": "Clavei",
"discount": 10,
"web": "https://www.acme.es",
"logo": "https://www.acme.es/logo.png",
"contactPerson": "Juan Pérez",
"firstPhoneNumber": "+34600111222",
"secondPhoneNumber": "+34600333444",
"email": "info@acme.es",
"country": 1,
"state": 1,
"address": "Av. de la Estación, 5",
"postalCode": "03001",
"city": "Alicante",
"externalCode": "Code customer",
"newsletter": true,
"plan": 1,
"period": 1
}'Response
application/json
{ "id": 1, "createdOn": "2025-10-01T12:05:36.930615+02:00", "modifiedOn": "2025-10-01T12:05:36.930615+02:00", "partner": { "id": 1, "commercialName": "Clave Informática S.L.", "cif": "B12345678", "name": "Clavei", "email": "info@acme.es", "marginOne": 10, "marginTwo": 10, "logo": "https://www.acme.es/logo.png", "status": "ACTIVE", "externalCode": "Code customer", "subscriptionLimit": 100 }, "company": { "id": 1, "companyName": "Clavei", "companyType": "SELF_EMPLOYED", "companyStatus": "ACTIVE", "employees": "ONE", "fullName": "Clave Informática S.L.", "active": true, "country": { … }, "phone": "+34600111222" }, "commercialName": "Clave Informática S.L.", "cif": "B12345678", "name": "Clavei", "discount": 10, "web": "https://www.acme.es", "logo": "https://www.acme.es/logo.png", "contactPerson": "Juan Pérez", "firstPhoneNumber": "+34600111222", "secondPhoneNumber": "+34600333444", "email": "info@acme.es", "country": { "id": 1, "code": "ES", "description": "Spain", "isoCode": "ES" }, "state": { "id": 1, "code": "ES", "description": "Spain", "isoCode": "012", "country": { … } }, "address": "Av. de la Estación, 5", "postalCode": "03001", "city": "Alicante", "active": true, "invitationCode": "string", "invitationSentOn": "2025-10-01T12:05:36.930615+02:00", "invitationAcceptedOn": "2025-10-01T12:05:36.930615+02:00", "plan": { "id": 1, "description": "PLAN Integral", "suggested": true }, "period": { "id": 1, "description": "Anual", "months": 12 }, "status": "ACTIVE", "externalCode": "Code customer", "newsletter": true, "lastAccess": "2025-10-01T12:05:36.930615+02:00" }
https://api.prana.software/api/v1/partner/subscription/activate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://api.prana.software/api/v1/partner/subscription/activate \
-H 'Content-Type: application/json' \
-d '{
"ids": [
0
],
"activate": true
}'Bodyapplication/jsonrequired
Commercial name of the subscription.
Example: "Clave Informática S.L."
Postal address of the customer.
Example: "Av. de la Estación, 5"
https://api.prana.software/api/v1/partner/subscription
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/partner/subscription \
-H 'Content-Type: application/json' \
-d '{
"commercialName": "Clave Informática S.L.",
"cif": "B12345678",
"name": "Clavei",
"discount": 10,
"web": "https://www.acme.es",
"logo": "https://www.acme.es/logo.png",
"contactPerson": "Juan Pérez",
"firstPhoneNumber": "+34600111222",
"secondPhoneNumber": "+34600333444",
"email": "info@acme.es",
"country": 1,
"state": 1,
"address": "Av. de la Estación, 5",
"postalCode": "03001",
"city": "Alicante",
"externalCode": "Code customer",
"newsletter": true,
"plan": 1,
"period": 1
}'Response
application/json
{ "id": 1, "createdOn": "2025-10-01T12:05:36.930615+02:00", "modifiedOn": "2025-10-01T12:05:36.930615+02:00", "partner": { "id": 1, "commercialName": "Clave Informática S.L.", "cif": "B12345678", "name": "Clavei", "email": "info@acme.es", "marginOne": 10, "marginTwo": 10, "logo": "https://www.acme.es/logo.png", "status": "ACTIVE", "externalCode": "Code customer", "subscriptionLimit": 100 }, "company": { "id": 1, "companyName": "Clavei", "companyType": "SELF_EMPLOYED", "companyStatus": "ACTIVE", "employees": "ONE", "fullName": "Clave Informática S.L.", "active": true, "country": { … }, "phone": "+34600111222" }, "commercialName": "Clave Informática S.L.", "cif": "B12345678", "name": "Clavei", "discount": 10, "web": "https://www.acme.es", "logo": "https://www.acme.es/logo.png", "contactPerson": "Juan Pérez", "firstPhoneNumber": "+34600111222", "secondPhoneNumber": "+34600333444", "email": "info@acme.es", "country": { "id": 1, "code": "ES", "description": "Spain", "isoCode": "ES" }, "state": { "id": 1, "code": "ES", "description": "Spain", "isoCode": "012", "country": { … } }, "address": "Av. de la Estación, 5", "postalCode": "03001", "city": "Alicante", "active": true, "invitationCode": "string", "invitationSentOn": "2025-10-01T12:05:36.930615+02:00", "invitationAcceptedOn": "2025-10-01T12:05:36.930615+02:00", "plan": { "id": 1, "description": "PLAN Integral", "suggested": true }, "period": { "id": 1, "description": "Anual", "months": 12 }, "status": "ACTIVE", "externalCode": "Code customer", "newsletter": true, "lastAccess": "2025-10-01T12:05:36.930615+02:00" }
https://api.prana.software/api/v1/partner/subscription/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.prana.software/api/v1/partner/subscription/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
}'OK
List of data items for the current page
Invitation sending date.
Example: "2025-10-01T12:05:36.930615+02:00"
Accepted invitation date.
Example: "2025-10-01T12:05:36.930615+02:00"
Subscription creation date.
Example: "2025-10-01T12:05:36.930615+02:00"
Subscription cancellation date.
Example: "2025-10-01T12:05:36.930615+02:00"
Subscription cancellation reason.
Example: "Creation of new company"
Response
application/json
{ "data": [ { … } ], "page": 0, "total": 150, "pages": 14, "size": 10 }