Query Partner Policy
POST/api/entry/policy
Through this API, institutions can query the current effective commission policy of a registered partner (agent), including the policy method (Buy Rate or Revenue Share), the revenue share allocation between the partner and the institution, the policy template information, and the fee rates of each payment product grouped by payment channel.
Precautions for Using This API:
- The query is scoped to the institution identified by
institution_no. The partner identified bypartner_nomust belong to the same institution, otherwise the request will be rejected.policy_methodindicates the commercial model between the partner and the institution:1- Buy Rate (the partner purchases payment services at the defined sale price);2- Revenue Share (revenue is split between the partner and the institution by the configured ratio).- When
policy_method = 1(Buy Rate),partner_share_percentandinstitution_share_percentare returned asnull. Whenpolicy_method = 2(Revenue Share), the two values are percentage numbers that always add up to 100 (for example60.00+40.00).- Fee rates are returned in a three-level structure:
pay_channel_infos(payment channels) →product_infos(payment products under the channel) →rate_infos(fee rate rows of the product). Multiple rows may exist under one product to describe rates for different card types and issuer regions (for example domestic Visa debit vs. international Visa credit).fee_rateis a percentage string (for example"3.6"means 3.6%).flat_feeis an additional fixed fee charged per transaction on top of the rate (a decimal number with up to 4 decimal places). The charged fee is bounded byfee_min(floor) andfee_capping(capping) when they are configured.pay_mode_nameis a localized JSON string keyed by locale (for example{"en-US":"Visa","zh-CN":"Visa"}). Parse it as JSON and pick the value by the desired locale.- Products without any configured rate row return
fee_type = 0and an emptyrate_infosarray.- If the partner has no effective policy version yet, the request fails with error code
E02710.- The HTTP path is a gateway alias for display purposes. The actual business routing is determined by
method=partner.policy.inquiryin the request body together with the configured service_url.
Here is a Java code example
// Build the request with the PayCloud OpenAPI SDK
PartnerPolicyQueryRequest request = new PartnerPolicyQueryRequest();
request.setInstitution_no("100012278");
request.setPartner_no("A2200000184");
// Execute the request through the OpenAPI client; the client fills in the
// gateway envelope (app_id, format, charset, sign_type, sign, version,
// timestamp, method) and verifies the response signature automatically.
// PartnerPolicyQueryResponse response = client.execute(request);
Request
Responses
- 200
success