Register Partner
POST/api/entry/addpartner
Register a new partner for an institution.
Precautions for Using This API:
- partner_name is unique within an institution. Leading and trailing spaces are removed before the uniqueness check.
- This API only creates partners. Repeating a successful request with the same institution_no and partner_name returns a duplicate-name error instead of updating the existing partner.
- template_id is the source partner policy template. PayCloud creates an initial policy version for the new partner from this template.
- When is_create_superadmin is 1, contact_name, contact_phone and contact_email are all required. contact_phone and contact_email are sensitive data and are hashed (SHA-256) before storage. contact_email doubles as the login-account email of the created Partner Portal super administrator.
- settlement_info is required when allow_settlement_service is 1. It must be sent as a JSON string that parses to a non-empty object containing settlement_params (settlement account fields keyed by the institution template, e.g. account_no / account_holder / account_branch / immediate_payment) and an optional settlement_currency (defaults to ZAR; only ZAR is currently accepted). acc_template_params is generated server-side from the trusted institution template; caller-supplied values with this name are ignored.
- Sensitive settlement_params fields flagged by the account template (encrypt_type > 0) must pass the template validation rules and are then transport-encrypted; submit them in the encrypted form required by PayCloud.
- fee_vat defaults to the institution configuration partner.vat.default.enable (falls back to 0 when not configured). settlement_cycle defaults to M004 when omitted.
- The HTTP path is a documentation-friendly gateway alias. Business routing is determined by method=partner.register and the configured service_url.
Request
Responses
- 200
success