System/Admin
7 API calls in this section.
System • List Payment Method Types
/payment/system/method-typesLists active payment method types.
1curl --request GET "$ONDI_BASE_URL/payment/system/method-types" \2 --header "Authorization: Bearer {{access_token}}"Headers
AuthorizationOptionalBearer {{access_token}}
JWT token (system admin)
Responses
No response example is available for this endpoint yet.
System • List System Gateway Configs
/payment/system/gateway-configsRetrieves all system gateway configurations (e.g., NASS).
1curl --request GET "$ONDI_BASE_URL/payment/system/gateway-configs" \2 --header "Authorization: Bearer {{access_token}}"Headers
AuthorizationOptionalBearer {{access_token}}
JWT token (system admin)
Responses
No response example is available for this endpoint yet.
System • List System Gateway Configs (safe)
/payment/system/gateway-configsLists system gateway configs with secrets redacted.
1curl --request GET "$ONDI_BASE_URL/payment/system/gateway-configs" \2 --header "Authorization: Bearer {{access_token}}"Headers
AuthorizationOptionalBearer {{access_token}}
JWT token (system admin)
Responses
No response example is available for this endpoint yet.
System • Upsert System Gateway Config (NASS)
/payment/system/gateway-configsCreate or update the system NASS configuration (system scope).
1curl --request POST "$ONDI_BASE_URL/payment/system/gateway-configs" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "provider_code": "nass",7 "display_name": "Nass (System)",8 "api_keys": {9 "username": "merchant_username",10 "password": "merchant_password"11 },12 "base_url": "https://uat-gateway.nass.iq:9746",13 "webhook_secret": "wh_secret",14 "is_active": true15}'1{2 "provider_code": "nass",3 "display_name": "Nass (System)",4 "api_keys": {5 "username": "merchant_username",6 "password": "merchant_password"7 },8 "base_url": "https://uat-gateway.nass.iq:9746",9 "webhook_secret": "wh_secret",10 "is_active": true11}Request body fields
provider_codeExampleExample field from the request body.
display_nameExampleExample field from the request body.
api_keysExampleExample field from the request body.
api_keys.usernameExampleExample field from the request body.
api_keys.passwordExampleExample field from the request body.
base_urlExampleExample field from the request body.
webhook_secretExampleExample field from the request body.
is_activeExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
JWT token (system admin)
Content-TypeOptionalapplication/json
Responses
No response example is available for this endpoint yet.
Admin • List Payment Methods
/payment/admin/payment-methodsReturns payment method types with commission and activation flags.
1curl --request GET "$ONDI_BASE_URL/payment/admin/payment-methods" \2 --header "Authorization: Bearer {{access_token}}"Headers
AuthorizationOptionalBearer {{access_token}}
JWT token (system admin)
Responses
No response example is available for this endpoint yet.
Admin • Update Payment Method
/payment/admin/payment-methods/:pm_idUpdates payment method type fields (commission_percent, is_active). If provided, also merges partial provider system configuration for the related gateway (by payment method's gateway_code): - system_gateway_config.api_keys.username/password are individually optional and merged into existing credentials (others unchanged). - base_url, webhook_secret, display_name, is_active update only if present.
1curl --request PUT "$ONDI_BASE_URL/payment/admin/payment-methods/:pm_id" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "commission_percent": 2.5,7 "is_active": true,8 "icon_url": "https://cdn.example.com/icons/nass.png",9 "system_gateway_config": {10 "api_keys": {11 "username": "new_username_optional",12 "password": "new_password_optional"13 },14 "base_url": "https://gateway.example.com",15 "webhook_secret": "wh_secret_optional",16 "display_name": {17 "en": "NASS Gateway",18 "ar": "بوابة ناس"19 },20 "is_active": true21 }22}'1{2 "commission_percent": 2.5,3 "is_active": true,4 "icon_url": "https://cdn.example.com/icons/nass.png",5 "system_gateway_config": {6 "api_keys": {7 "username": "new_username_optional",8 "password": "new_password_optional"9 },10 "base_url": "https://gateway.example.com",11 "webhook_secret": "wh_secret_optional",12 "display_name": {13 "en": "NASS Gateway",14 "ar": "بوابة ناس"15 },16 "is_active": true17 }18}Path parameters
pm_idRequired<payment_method_type_uuid>
Request body fields
commission_percentExampleExample field from the request body.
is_activeExampleExample field from the request body.
icon_urlExampleExample field from the request body.
system_gateway_configExampleExample field from the request body.
system_gateway_config.api_keysExampleExample field from the request body.
system_gateway_config.api_keys.usernameExampleExample field from the request body.
system_gateway_config.api_keys.passwordExampleExample field from the request body.
system_gateway_config.base_urlExampleExample field from the request body.
system_gateway_config.webhook_secretExampleExample field from the request body.
system_gateway_config.display_nameExampleExample field from the request body.
system_gateway_config.display_name.enExampleExample field from the request body.
system_gateway_config.display_name.arExampleExample field from the request body.
system_gateway_config.is_activeExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
JWT token (system admin)
Content-TypeOptionalapplication/json
Responses
No response example is available for this endpoint yet.
Admin • Create System Gateway Config
/payment/admin/system-gateway-configsCreates a system-level gateway configuration (separate from system scope upsert).
1curl --request POST "$ONDI_BASE_URL/payment/admin/system-gateway-configs" \2 --header "Authorization: Bearer {{access_token}}" \3 --header "Content-Type: application/json" \4 --header "Content-Type: application/json" \5 --data '{6 "provider_code": "nass",7 "display_name": "Nass (Ondi)",8 "api_keys": {9 "username": "u",10 "password": "p"11 },12 "base_url": "https://uat-gateway.nass.iq:9746",13 "webhook_secret": "wh_secret",14 "is_active": true15}'1{2 "provider_code": "nass",3 "display_name": "Nass (Ondi)",4 "api_keys": {5 "username": "u",6 "password": "p"7 },8 "base_url": "https://uat-gateway.nass.iq:9746",9 "webhook_secret": "wh_secret",10 "is_active": true11}Request body fields
provider_codeExampleExample field from the request body.
display_nameExampleExample field from the request body.
api_keysExampleExample field from the request body.
api_keys.usernameExampleExample field from the request body.
api_keys.passwordExampleExample field from the request body.
base_urlExampleExample field from the request body.
webhook_secretExampleExample field from the request body.
is_activeExampleExample field from the request body.
Headers
AuthorizationOptionalBearer {{access_token}}
JWT token (system admin)
Content-TypeOptionalapplication/json
Responses
No response example is available for this endpoint yet.