API changes - paymentagent_list

Dear developers,

We’ll be making changes to the paymentagent_list API response in the week beginning 13 June.

We’ll remove the following fields in the paymentagent_list response:

paymentagent_list/list/supported_banks
paymentagent_list/list/telephone
paymentagent_list/list/url

You may use the following fields as replacements:

paymentagent_list/list/supported_payment_methods
paymentagent_list/list/phone_numbers
paymentagent_list/list/urls

Before the change
"paymentagent_list":

{
    "available_countries": ...
    "list": [
        {
            "currencies": ...,
            "deposit_commission": ...,
            "email": ...,
            "further_information": ...,
            "max_withdrawal": ...,
            "min_withdrawal": ...,
            "name": "...",
            "paymentagent_loginid": ...,
            "phone_numbers": [
                {
                    "phone_number": "+1 00001111"
                },
                {
                    "phone_number": "+1 00002222"
                }
            ],
            "summary": ...,,
            "supported_banks": "bank1,bank2",
            "supported_payment_methods": [
                {
                    "payment_method": "bank1"
                },
                {
                    "payment_method": "bank2"
                }
            ],
            "telephone": "+1 00001111,+1 00002222",
            "url": "http://site1.com,http://site2.com",
            "urls": [
                {
                    "url": "http://site1"
                },
                {
                    "url": "http://site2"
                }          
            ],
            "withdrawal_commission": ...
        }
    ]
}

After the change

"paymentagent_list":

{
    "available_countries": ...
    "list": [
        {
            "currencies": ...,
            "deposit_commission": ...,
            "email": ...,
            "further_information": ...,
            "max_withdrawal": ...,
            "min_withdrawal": ...,
            "name": "...",
            "paymentagent_loginid": ...,
            "phone_numbers": [
                {
                    "phone_number": "+1 00001111"
                },
                {
                    "phone_number": "+1 00002222"
                }
            ],
            "summary": ...,,
            "supported_payment_methods": [
                {
                    "payment_method": "bank1"
                },
                {
                    "payment_method": "bank2"
                }
            ],
            "urls": [
                {
                    "url": "http://site1"
                },
                {
                    "url": "http://site2"
                }          
            ],
            "withdrawal_commission": ...
        }
    ]
}

Please make the necessary changes to your code.
If you have any questions, contact us at api-support@deriv.com.
Thank you.

Sign In or Register to comment.