Installment Requests
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
school_namestring · min: 2 · max: 50RequiredExample:
The school name
مدارس جيل النموذجيةResponses
200
The installment request is created successfully
*/*
400
- INST-REQ-006: Customer phone number is already registered with another national ID
- INST-REQ-008: Request can't be created because the user has a CUSTOMER_APPROVED request that needs to be completed.
- INST-REQ-013: User has past due claims on a current plan, past due claims must all be paid before creating a new installment request
- INST-REQ-014: Entity: {ID} doesn't belong to group: {ID}
- INST-REQ-015: The entity: {ID} doesn't have an active contract
- INST-REQ-016: The contract: {ID} doesn't have open balances
- INST-REQ-017: The entity: {ID} balance is consumed
- INST-REQ-018: Group has no entities
*/*
401
- Access-001: Access is denied
- Access-003: Invalid token
*/*
404
- BR-002: Group {id} wasn't found
- BR-002: Entity {id} wasn't found
*/*
406
Validation Errors
*/*
500
- ERR-005: Unexpected Technical Runtime Error.
*/*
post
/v2/installment-requestsAuthorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
mobileNumberstringRequiredPattern:
^(5)([0-9]{8})$costnumber · doubleRequired
Responses
200
OK
*/*
401
- Access-001: Access is denied
- Access-003: Invalid token
*/*
406
BR-001: Input Validation
*/*
500
- ERR-005: Unexpected Technical Runtime Error.
*/*
post
/v1/installment-requests/cost-calculationAuthorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
Responses
200
OK
*/*
401
- Access-001: Access is denied
- Access-003: Invalid token
*/*
403
The user is not the installment request's owner
*/*
404
BR-002: Installment request not found
*/*
get
/v1/installment-requests/{id}Last updated