Get Started with REST APIs

Start building by implementing our Backend REST API and Pricing API. The following diagram shows the simplified architecture of the Cleverbridge platform.

flowchart LR

    A[Modules ]:::mainColor <--> B[Cleverbridge REST API]:::mainColor 
    B <--> C[Client Server ]:::mainColor
    C <--> D[Storefront UI]:::mainColor
    C <--> E[Reseller Portal]:::mainColor
classDef mainColor fill:#ffffff,color:#96C34B,stroke:#0F967D,stroke-width:2px

BACKEND REST API

Some common scenarios for implementing Backend REST API:

Subscriptions

URL Generator

Cart

Purchase



npx run command
This is the response
inputs start with a dollar sign
outputs start with no prefix
and can be multiline

CodeStatusDescriptionMessage
APIKEY_EMPTYUnauthorizedAn API key was not supplied.You must pass in an API key.
APIKEY_MISMATCHForbiddenThe API key doesn't match the project.The API key doesn't match the project.
APIKEY_NOTFOUNDUnauthorizedThe API key couldn't be located.We couldn't find your API key.
API_ACCESS_REVOKEDForbiddenYour ReadMe API access has been revoked.Your ReadMe API access has been revoked.
API_ACCESS_UNAVAILABLEForbiddenYour ReadMe project does not have access to this API. Please reach out to [email protected].Your ReadMe project does not have access to this API. Please reach out to [email protected].
APPLY_INVALID_EMAILBad RequestYou need to provide a valid email.You need to provide a valid email.

Troubleshooting

For common errors, refer to Troubleshoot Backend REST APIs.