Save default phone
Save a default phone number for this connection. Include country if it differs from your workspace default. Saving the number does not verify its owner. Payment requests still require phone_number and customer consent.
Save a default phone number for this connection. Include country if it differs from your workspace default. Saving the number does not verify its owner. Payment requests still require phone_number and customer consent.
Required API key scope: authorize.
Request example
PATCH /api/deriv/connections/conn_example_01/default-phone HTTP/1.1Host: api.edgepro.siteX-API-Key: <your-api-key>X-Deripay-API-Version: 2Accept: application/jsonContent-Type: application/json{ "phone_number": "254712345678", "country": "KE"}partnerAPIKeyX-API-Key<token>connection_id*stringX-API-Key*stringYour API key. Send requests from your server.
X-Deripay-API-Version*stringSelects the response and error format documented here. Without it, the same URL returns the original format.
Accept?stringapplication/json- body
country?stringphone_number*string[key: string]?anySuccessful request.
application/json- response
success*booleanmessage*stringdata*curl -X PATCH 'https://api.edgepro.site/api/deriv/connections/conn_example_01/default-phone' \ -H 'X-API-Key: <your-api-key>' \ -H 'X-Deripay-API-Version: 2' \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -d '{ "phone_number": "254712345678", "country": "KE"}'{ "success": true, "message": "Default phone number saved", "data": { "connection_id": "conn_example_01", "external_customer_id": "customer-1001", "id": "customer_example_01", "email": "customer@example.com", "name": "Example Customer", "first_name": "Example", "last_name": "Customer", "profile_completed": true, "role": "user", "default_phone_number": "254712345678", "payment_methods": [], "deriv_account": { "client_id": "your-registered-client-id", "user_id": 123456, "fullname": "Example Customer", "country": "ke", "primary_login_id": "CR123456", "selected_account": "CR123456", "account_count": 1, "accounts": [ { "login_id": "CR123456", "currency": "USD", "is_virtual": false } ], "token_expires_at": "2026-10-12T10:00:00Z", "authorization_status": "active" } }}Get connection GET
Get customer details and linked Deriv accounts. Check authorization_status before requesting payments. The payment_methods array is normally empty for partner connections.
Get balances GET
Get the Wallet balance and, when available, the Options balance. Withdrawals use the Wallet balance. This response represents amounts as JSON numbers.