Esempla
  • Lista metodelor
  • Description
  • FAQ
  • SSO
    • Description
    • API
    • API Admin
    • FAQ
    • API Partner
  • Invoicing
    • Description
    • API
    • FAQ
  • SNS
    • Description
    • API
    • API Partner
    • API Admin
    • FAQ
  • VOIP
    • Untitled
Powered by GitBook
On this page
  • Activarea Provaiderilor unui proect
  • Crearea Organizatiei
  • Crearea Proectului

Was this helpful?

  1. SSO

API Admin

Descrierea metodelor

Activarea Provaiderilor unui proect

POST https://sso.esempla.systems/api/v1/assignProvider

Headers

Name
Type
Description

partnerid

string

Identificatorul Provaiderului

Request Body

Name
Type
Description

project_id

string

id -ul proectului

provider_id

string

id -ul provaiderului care va fi activat

provaiderul a fost activat
{
    "status": true
}


eroarea apare cin project_id sau provider_id sunt indicate incorect
{
    "status": false,
    "errors": "Incorrect project_id or provider_id"
}
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/assignProvide\".",
        "code": 0
    }
}

Crearea Organizatiei

POST https://sso.esempla.systems/api/v1/createOrganization

Headers

Name
Type
Description

partnerid

string

Identificatorul Provaiderului

Request Body

Name
Type
Description

name

string

denumirea Organizatiei

idno

string

status_id

string

indicam cifra " 1 ", indica statutul activ

description

string

descrierea Organizatiei

Organizaria a fost creata
{
    "status": true,
    "organization_id": 3,
    "secret_name": "Gm0ofdKWtRCA-3QjEgtECwNATp495zbB",
    "organization": "test123"
}


status_id a fost indicat incorect
{
    "status": false,
    "errors": {
        "status_id": [
            "Status ID is invalid."
        ]
    }
}
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/createOrganizatio\".",
        "code": 0
    }
}

Crearea Proectului

POST https://sso.esempla.systems/api/v1/createProject

Headers

Name
Type
Description

partnerid

string

Identificatorul Provaiderului

Request Body

Name
Type
Description

name

string

denumirea Proectului

organization_id

string

id -ul organizatiei care va apartinea acestui proect

status_id

string

indicam cifra " 1 ", statutul va fi activ

description

string

descrierea provaiderului

Proectul a fost creat
{
    "status": true,
    "project_id": 3,
    "project": "test123",
    "secret_token": "tA7wpJUu8Wk6vsVLPD0jhfDNjeqRE-zC"
}


status_id a fost indicat incorect
{
    "status": false,
    "errors": {
        "status_id": [
            "Status ID is invalid."
        ]
    }
}


organization_id a fost indicat incorect
{
    "status": false,
    "errors": {
        "organization_id": [
            "Organization ID is invalid."
        ]
    }
}
{
    "name": "Forbidden",
    "message": "",
    "code": 0,
    "status": 403
}
{
    "name": "Not Found",
    "message": "Page not found.",
    "code": 0,
    "status": 404,
    "previous": {
        "name": "Invalid Route",
        "message": "Unable to resolve the request \"v1/createProjec\".",
        "code": 0
    }
}

PreviousAPINextFAQ

Last updated 6 years ago

Was this helpful?