On this page
No Headings
Oauth 2.0 authentication
Client CredentialsToken URLhttps://api-m.paypal.com/v1/oauth2/tokenInheaderScopes
https://uri.paypal.com/services/customer/partner-referrals/readwriteapplication/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api-m.paypal.com/v2/customer/v2/customer/partner-referrals" \ -H "Content-Type: application/json" \ -d '{}'{
"links": [
{
"href": "string",
"rel": "string",
"method": "GET"
}
]
}{
"name": "INVALID_REQUEST",
"message": "Request is not well-formed, syntactically incorrect, or violates schema.",
"debug_id": "string",
"links": [],
"details": [
{
"issue": "INVALID_STRING_LENGTH",
"description": "the value of a field is either too short or too long"
}
]
}{
"name": "AUTHENTICATION_FAILURE",
"message": "Authentication failed due to missing authorization header, or invalid authentication credentials.",
"debug_id": "string",
"links": [],
"details": [
{
"issue": "AUTHORIZATION_ERROR",
"description": "This API call is not authorized"
}
]
}{
"name": "NOT_AUTHORIZED",
"message": "Authorization failed due to insufficient permissions.",
"debug_id": "string",
"links": [],
"details": [
{
"issue": "PERMISSION_DENIED",
"description": "You do not have permission to access or perform operations on this resource."
}
]
}{
"name": "UNPROCESSABLE_ENTITY",
"message": "The requested action could not be performed, semantically incorrect, or failed business validation.",
"debug_id": "string",
"links": [],
"details": [
{
"issue": "USER_NOT_FOUND",
"description": "Account for this Partner ID does not exist."
}
]
}{
"name": "INTERNAL_SERVER_ERROR",
"message": "An internal server error occurred.",
"debug_id": "90957fca61718",
"links": [
{
"href": "https://developer.paypal.com/api/orders/v2/#error-INTERNAL_SERVER_ERROR",
"rel": "information_link"
}
]
}{
"name": "INVALID_REQUEST",
"message": "Request is not well-formed, syntactically incorrect, or violates schema.",
"details": [
{
"field": "string",
"value": "string",
"location": "body",
"issue": "string",
"description": "string"
}
],
"debug_id": "string",
"links": []
}List of owners in the account. There should be only one primary account owner which is mentioned in their role_type.
0 <= items <= 2Business entity of the account.
The internationalized email address.Note: Up to 64 characters are allowed before and 255 characters are allowed after the @ sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted @ sign exists.
^.+@[^"\-].+$ppaas_common_email_address_v23 <= length <= 254The preferred locale code to use in the onboarding flow for the customer.
^[a-z]{2}(?:-[A-Z][a-z]{3})?(?:-(?:[A-Z]{2}))?$ppaas_common_language_v32 <= length <= 10The partner's unique identifier for this customer in their system which can be used to track user in PayPal.
1 <= length <= 127The configuration property that the partner intends to override for this onboarding request.
Array of financial instruments attached to the customer's account.
An array of operations to perform for the customer while they share their data.
1 <= items <= 5An array of PayPal products to which the partner wants to onboard the customer.
1 <= items <= 5An array of capabilities which the partner wants to enable for the selected products. Supported only when products are specified.
1 <= items <= 5An array of dependent processes.
1 <= items <= 5An array of all consents that the partner has received from this seller. If SHARE_DATA_CONSENT is not granted, PayPal does not store customer data.
1 <= items <= 5Payout specific attributes.
The incorporation country code.
^([A-Z]{2}|C2)$ppaas_common_country_code_v22 <= length <= 2