Commercial Platform -> Make a Partner Referrals API call -> 400 VALIDATION_ERROR

Paul9812
New Community Member

Hi there,

I have got an error - 400 Bad Request POST https://api.sandbox.paypal.com/v1/customer/partner-referrals,  what's going on? I have taken code from API REFERENCE.

REQUEST BODY:
{
"customer_data": {
"customer_type": "MERCHANT",
"person_details": {
"email_address": "myEmail",
"name": {
"prefix": "Mr.",
"given_name": "Shashank",
"surname": "<removed>",
"middle_name": "<removed>"
},
"phone_contacts": [
{
"phone_number_details": {
"country_code": "91",
"national_number": "<removed>"
},
"phone_type": "HOME"
}
],
"home_address": {
"line1": "<removed>",
"state": "<removed>",
"city": "<removed>",
"country_code": "IN",
"postal_code": "<removed>"
},
"date_of_birth": {
"event_type": "BIRTH",
"event_date": "<removed>"
},
"nationality_country_code": "IN",
"identity_documents": [
{
"type": "SOCIAL_SECURITY_NUMBER",
"value": "<removed>",
"partial_value": false,
"issuer_country_code": "US"
}
]
},
"business_details": {
"phone_contacts": [
{
"phone_number_details": {
"country_code": "91",
"national_number": "<removed>"
},
"phone_type": "FAX"
}
],
"business_address": {
"line1": "<removed>",
"state": "<removed>",
"city": "<removed>",
"country_code": "IN",
"postal_code": "560103"
},
"business_type": "PROPRIETORSHIP",
"category": "1004",
"sub_category": "2025",
"merchant_category_code": "8931",
"names": [
{
"type": "LEGAL",
"name": "SHASHANK STORE"
}
],
"business_description": "Arts and handicrafts",
"event_dates": [
{
"event_type": "ESTABLISHED",
"event_date": "2009-01-31T13:59:45Z"
}
],
"website_urls": [
"https://example.com/mystore/"
],
"annual_sales_volume_range": {
"minimum_amount": {
"currency": "USD",
"value": "2000"
},
"maximum_amount": {
"currency": "USD",
"value": "3000"
}
},
"average_monthly_volume_range": {},
"identity_documents": [
{
"type": "TAX_IDENTIFICATION_NUMBER",
"value": "<removed>",
"partial_value": false,
"issuer_country_code": "US"
}
],
"email_contacts": [
{
"email_address": "....",
"role": "CUSTOMER_SERVICE"
}
]
},
"financial_instrument_data": {
"bank_details": [
{
"nick_name": "Bank of America",
"account_number": "<removed>",
"account_type": "CHECKING",
"currency_code": "USD",
"identifiers": [
{
"type": "ROUTING_NUMBER_1",
"value": "<removed>"
}
]
}
]
},
"preferred_language_code": "en_US",
"primary_currency_code": "USD",
"referral_user_payer_id": {
"type": "PAYER_ID",
"value": "<removed>"
},
"partner_specific_identifiers": [
{
"type": "TRACKING_ID",
"value": "<removed>"
}
]
},
"requested_capabilities": [
{
"capability": "BANK_ADDITION"
}
],
"web_experience_preference": {
"partner_logo_url": "https://example.com/logo/",
"return_url": "http://localhost:63342/ppcp/index.html?_ijt=r6jgdauamgcutnk5mpb6fb16he/",
"action_renewal_url": "https://example.com/renew/"
},
"collected_consents": [
{
"type": "SHARE_DATA_CONSENT",
"granted": true
}
],
"products": [
"EXPRESS_CHECKOUT"
]
}

RESPONSE BODY:
{
"name": "VALIDATION_ERROR",
"message": "Input Validation Error",
"debug_id": "b0787c1e541cc",
"details": [
{
"field": "#/customer_data/business_details/average_monthly_volume_range/minimum_amount",
"value": "",
"issue": "may not be null"
},
{
"field": "#/customer_data/business_details/average_monthly_volume_range/maximum_amount",
"value": "",
"issue": "may not be null"
}
]
}

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.