Skip to main content
Version: 1.0

Contract Management API Documentation

The Contract Management API provides operations to manage contracts efficiently. Key features include:

  • Create or Update Contracts: Add or modify contract details.
  • List Contracts: Retrieve a comprehensive list of all contracts.
  • Get Contract Details: Access detailed information about specific contracts.

The OTP Management API provides operations to send and verify One-Time Passwords (OTPs). Key features include:

  • Send OTP: Send a one-time password to a specified user for verification.
  • Verify OTP: Verify the provided OTP to ensure it's valid and matches the sent one.

Error Codes:

Below is a table listing the possible error codes and their descriptions:

System Errors
Error CodeDescription
ERR_GENERAL_0001An internal service error occurred.
ERR_GENERAL_0002Invalid data format.
ERR_GENERAL_0003Argument type mismatch.
ERR_GENERAL_0004The requested resource was not found.
ERR_GENERAL_0005An unexpected error occurred. Please try again later.
ERR_GENERAL_0006One or more fields contain invalid data.
ERR_GENERAL_0007Missing required attribute(s) : %s
ERR_GENERAL_0008Validation failed for one or more fields.
ERR_GENERAL_0009User with profile '%s' is not authorized to access this endpoint

Contract Errors
Error CodeDescription
ERR_CTR_0001An error occurred while creating the contract. Please try again later.
ERR_CTR_0002The chosen segment is invalid. Please select a valid segment.
ERR_CTR_0003The radical already exists. Please choose a different one.
ERR_CTR_0004The accounts provided are invalid. Please check the account details.
ERR_CTR_0005The currency specified for the account is invalid. Please select a valid currency.
ERR_CTR_0006One or more cards are invalid. Please check the card details.
ERR_CTR_0007The client does not exist. Please check the client ID or create a new client.
ERR_CTR_0008The account list is empty.
ERR_CTR_0009The billing account provided is incorrect.
ERR_CTR_0010The subscriber has the same ID card.
ERR_CTR_0011The subscriber has the same phone number.
ERR_CTR_0012The contract was not created successfully.
ERR_CTR_0013Unable to attach subscriber to the contract.
ERR_CTR_0014An error occurred while updating the contract. Please try again later.
ERR_CTR_0015The contract is currently under validation and cannot be modified.
ERR_CTR_0016The specified contract could not be found.
ERR_CTR_0017The form submitted is invalid. Please check the input values and try again.
ERR_CTR_0018This user with this profile is not authorized to access this endpoint
ERR_CTR_0019Unauthorized to view the contract.
ERR_CTR_0020You must select a valid Commercial Offer. The following product codes are invalid: %s .
ERR_CTR_0021Invalid RIB(s) found: %s. You should provide valid RIBs for these beneficiaries.
ERR_CTR_0022No subscribers found for the given contract.
ERR_CTR_0023Request context not found.
ERR_CTR_0024Failed to activate the subscriber. Please try again.
ERR_CTR_0025The default account manager is either not specified or incorrect. Please try again.

OTP Errors
Error CodeDescription
ERR_OTP_0001Failed to send OTP. Please try again.
ERR_OTP_0002OTP verification failed. Please check the OTP and try again.
ERR_OTP_0003The OTP has expired. Please request a new one.
ERR_OTP_0004The OTP is invalid. Please enter the correct OTP.

Authentication

Security Scheme Type:

http

HTTP Authorization Scheme:

bearer

Bearer format:

JWT