Skip to content

Identities(2)

?This API is currently not supported by our SDK

The System for Cross-domain Identity Management (SCIM) specification is designed to make managing user identities in cloud-based applications and services easier

Background: The standards of the SCIM 2.0 API are defined and released as RFC7642, RFC7643 and RFC7644 under IETF. Please refer - https://scim.cloud/#Specification.

operation/users.create Create user

post/v2/scim/Users

Try it

Creates a user in the client's namespace.

SecurityOauth2

Request

Request Body schema: application/jsonmultipart/relatedmultipart/form-datamultipart/mixedapplication/scim+jsonapplication/json required

The SCIM user information.

schemas
required
Array of strings<uri>[ 1 .. 10 ] items
An array of identified schemas.
externalIdstring[ 1 .. 128 ] characters^.*$
A String that is an identifier for the resource as defined by the external or 3rd party client. The pattern is not provided because the value is defined by an external party.
userName
required
string[ 1 .. 254 ] characters^(?![0-9]*$)[a-zA-Z0-9]{8,16}$
Unique identifier for the User, typically used by the user to directly authenticate to the service provider. Each User MUST include a non-empty userName value. This identifier MUST be unique across the service provider's entire set of Users. The pattern is not provided because the value is defined by an external party.
nameobject (ScimName)
The components of the user's real name.
emailsArray of objects (ScimEmail) [ 1 .. 10 ] items
Email addresses for the user. The value SHOULD be specified according to [RFC5321]. The value SHOULD be canonicalized by the service provider, e.g., ' bjensen@example.com' instead of ' bjensen@EXAMPLE.COM'. Canonical type values of 'work', 'home', and 'other'.
phoneNumbersArray of objects (ScimPhone) [ 1 .. 10 ] items
Phone numbers for the User. The value SHOULD be specified according to the format defined in [RFC3966], e.g.,'tel:+1-201-555-0123'. Canonical type values of 'work', 'home', 'mobile', 'fax', 'pager', and 'other'.
addressesArray of objects (ScimAddress) [ 1 .. 10 ] items
Addresses for the User defined following the RFC 7643 specification.
entitlementsArray of objects (ScimEntitlement) [ 1 .. 10000 ] items
A list of entitlements for the User that represent a thing the User has.
metaobject (ScimMeta)
Metadata about the resource such as type, time create, etc.
preferredLanguagestring<ppaas_common_language_v3> (language) [ 2 .. 10 ] characters^[a-z]{2}(?:-[A-Z][a-z]{3})?(?😦?:[A-Z]{2}|...Show pattern
The [language tag for the language in which to localize the error-related strings, such as messages, issues, and suggested actions. The tag is made up of the ISO 639-2 language code, the optional ISO-15924 script tag, and the ISO-3166 alpha-2 country code or M49 region code.
timezonestring<ppaas_time_zone_v3> (time_zone) [ 1 .. 127 ] characters
The time zone, in Internet Assigned Numbers Authority (IANA) time zone (tz) database format. A valid value is America/New_York or Etc/UTC. Do not use ambiguous, non-qualified tz database values, such as EST or GB. Before you include this type in your interface, consider whether it is appropriate to convey time zone information with your type. At the time of display to the user, transform this value from UTC. Typically, this type is associated with user-preference APIs.
\
Responses\
\
201\
A successful request returns the HTTP 201 Created status code and a JSON response body that shows the SCIM user information.\
\
Request samples\
\
  • Payload

    application/jsonmultipart/relatedmultipart/form-datamultipart/mixedapplication/scim+jsonapplication/json

    Copy

    Expand allCollapse all

    {"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"\ \ ],\ \ "userName": "sydneyml531",\ \ "name": {"givenName": "Sydney",\ \ "familyName": "McLaughlin"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ]\ \ }

    Response samples
    \
  • 201

    application/scim+json

    Sample 1 - 201 - Create a Staff User under a business accountSample 1 - 201 - Create a Staff User under a business account

    Copy

    Expand allCollapse all

    {"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"\ \ ],\ \ "userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account-AMQC5GRBUC2J6-ROLE-VIEW_PROFILE"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ }
    \

operation/users.list List users\


get/v2/scim/Users

Try it

Lists users. You can specify query parameters to filter the users that appear in the list.

SecurityOauth2

Request
\

query Parameters\


| | |
| --- | --- |
| filter | string
Filters the users in the response list by a key, in the format key eq value, where key is userName. |
| startIndex | integer[ 1 .. 100000 ]
Default:1
A non-zero integer representing the start index of the results. |
| count | integer[ 0 .. 100 ]
Default:50
A non-zero integer representing the number of results to be returned at a time. Count parameter values of 100 and above will automatically be evaluated as 100 and first 100 results will be returned. |
\

Request Body schema: application/jsonmultipart/relatedmultipart/form-datamultipart/mixedapplication/json\


any

Responses

200
A successful request returns the HTTP 200 OK status code and a JSON response body that lists users that match the search criteria.

Request samples
\

  • Payload\
  • cURL\
  • Node.js\
  • Java\
  • Python

    application/jsonmultipart/relatedmultipart/form-datamultipart/mixedapplication/json

    Copy

    { }

    Response samples
    \
  • 200

    application/scim+json

    Sample 1 - 200 - Search a staff users under a business account with startIndex and count filter.Sample 1 - 200 - Search a staff users under a business account with startIndex and count filter.

    Copy

    Expand allCollapse all

    {"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"\ \ ],\ \ "startIndex": 1,\ \ "itemsPerPage": 10,\ \ "totalResults": 200,\ \ "Resources": [{"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ },\ \ {"userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ }\ \ ]\ \ }
    \

operation/users.update Update user\


patch/v2/scim/Users/{id}

Try it

Updates the information for a user, by user ID.

SecurityOauth2

Request
\

path Parameters\


| | |
| --- | --- |
| id
required | string<ppaas_payer_id_v3>= 13 characters^[2-9A-HJ-NP-Z]{13}$
The ID of the user for which to update the information. |
\

Request Body schema: application/scim+json required\


The SCIM Patch request.

| | |
| --- | --- |
| schemas | Array of strings<uri>[ 1 .. 10 ] items |
| Operations | Array of objects[ 1 .. 100 ] items
List of patch operations |

Responses

200
A successful request returns the HTTP 200 OK response code and the entire resource within the response body.

Request samples
\

  • Payload\
  • cURL\
  • Node.js\
  • Java\
  • Python

    application/scim+json

    Sample 1 - 200 - Update a Staff User under a business accountSample 1 - 200 - Update a Staff User under a business account

    Copy

    Expand allCollapse all

    {"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"\ \ ],\ \ "Operations": [{"op": "add",\ \ "path": "entitlements",\ \ "value": [{"value": "account|AMQC5GRBUC2J6|ROLE|MASS_PAY"\ \ }\ \ ]\ \ }\ \ ]\ \ }

    Response samples
    \
  • 200

    application/scim+json

    Sample 1 - 200 - Update a Staff User under a business accountSample 1 - 200 - Update a Staff User under a business account

    Copy

    Expand allCollapse all

    {"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"\ \ ],\ \ "userName": "sydneyml531",\ \ "name": {"familyName": "McLaughlin",\ \ "givenName": "Sydney"\ \ },\ \ "emails": [{"value": "sydneyml@shop.com",\ \ "primary": true\ \ }\ \ ],\ \ "entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|GENERAL_SECONDARY_LOGIN"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|MASS_PAY"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\ \ },\ \ {"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\ \ }\ \ ],\ \ "id": "7XRNGHV24HQL4",\ \ "externalId": "sydneyml531",\ \ "meta": {"resourceType": "User",\ \ "created": "2022-12-29T14:05:46Z",\ \ "location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\ \ }\ \ }
    \

operation/users.get Show user details\


get/v2/scim/Users/{id}

Try it

Shows details for a user, by ID.

SecurityOauth2

Request
\

path Parameters\


| | |
| --- | --- |
| id
required | string<ppaas_payer_id_v3>= 13 characters^[2-9A-HJ-NP-Z]{13}$
The ID of the user for which to show details. |

Responses

200
A successful request returns the HTTP 200 OK status code and a JSON response body that shows user details.

Request samples
\

  • cURL\
  • Node.js\
  • Java\
  • Python

    Copy
    \
\
curl -v -X GET https://api-m.sandbox.paypal.com/v2/scim/Users/7XRNGHV24HQL4 \\
-H 'Content-Type: application/scim+json' \\
-H 'Authorization: Bearer <Access-Token>'\
```\
\
Response samples\
\
- 200\
\
application/scim+json\
\
Sample 1 - 200 - Get a Staff User under a business accountSample 1 - 200 - Get a Staff User under a business account\
\
Copy\
\
Expand allCollapse all\
\
`{"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"\
\
],\
\
"userName": "sydneyml531",\
\
"name": {"familyName": "McLaughlin",\
\
"givenName": "Sydney"\
\
},\
\
"emails": [{"value": "sydneyml@shop.com",\
\
"primary": true\
\
}\
\
],\
\
"entitlements": [{"value": "account|AMQC5GRBUC2J6|ROLE|GENERAL_SECONDARY_LOGIN"\
\
},\
\
{"value": "account|AMQC5GRBUC2J6|ROLE|VIEW_USER_AUDIT"\
\
},\
\
{"value": "account|AMQC5GRBUC2J6|ROLE|ADD_FUNDS"\
\
},\
\
{"value": "account|AMQC5GRBUC2J6|ROLE|AUTH_SETTLE"\
\
},\
\
{"value": "account|AMQC5GRBUC2J6|ROLE|CANCEL_PAYMENTS"\
\
},\
\
{"value": "account|AMQC5GRBUC2J6|ROLE|CUSTOMIZE_REPORTS"\
\
}\
\
],\
\
"id": "7XRNGHV24HQL4",\
\
"externalId": "sydneyml531",\
\
"meta": {"resourceType": "User",\
\
"created": "2022-12-29T14:05:46Z",\
\
"location": "https://api.paypal.com/v2/scim/Users/7XRNGHV24HQL4"\
\
}\
\
}`\
\
## operation/users.delete Delete user\
\
delete/v2/scim/Users/{id}\
\
Try it\
\
Delete the information for a user, by ID.\
\
Security**Oauth2**\
\
Request\
\
##### path Parameters\
\
|     |     |\
| --- | --- |\
| id<br>required | string<ppaas\_payer\_id\_v3>= 13 characters^\[2-9A-HJ-NP-Z\]{13}$<br>The ID of the user for which to delete the user. |\
\
# tag/Definitions Definitions\
\
## schema/account_id account\_id\
\
The PayPal payer ID, which is a publicly-sharable of the PayPal account number intended for use with third parties.\
\
string<ppaas\_payer\_id\_v3> (account\_id) = 13 characters^\[2-9A-HJ-NP-Z\]{13}$\
\
The PayPal payer ID, which is a publicly-sharable of the PayPal account number intended for use with third parties.\
\
Copy\
\
`"stringstrings"`\
\
## schema/country_code country\_code\
\
The 2-character ISO 3166-1 code that identifies the country or region.\
\
> **Note:** The country code for Great Britain is `GB` and not `UK` as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.\
\
string<ppaas\_common\_country\_code\_v2> (country\_code) = 2 characters^(\[A-Z\]{2}\|C2)$\
\
The 2-character ISO 3166-1 code that identifies the country or region.\
\
> **Note:** The country code for Great Britain is `GB` and not `UK` as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.\
\
Copy\
\
`"st"`\
\
## schema/date_time date\_time\
\
The date and time, in Internet date and time format. Seconds are required while fractional seconds are optional.\
\
> **Note:** The regular expression provides guidance but does not reject all invalid dates.\
\
string<ppaas\_date\_time\_v3> (date\_time) \[ 20 .. 64 \] characters^\[0-9\]{4}-(0\[1-9\]\|1\[0-2\])-(0\[1-9\]\|\[1-2\]\[0-9\]\|...Show pattern\
\
The date and time, in Internet date and time format. Seconds are required while fractional seconds are optional.\
\
> **Note:** The regular expression provides guidance but does not reject all invalid dates.\
\
Copy\
\
`"stringstringstringst"`\
\
## schema/email_address email\_address\
\
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.\
\
string<ppaas\_common\_email\_address\_v2> (email\_address) \[ 3 .. 254 \] characters^.+@\[^"\\-\].+$\
\
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.\
\
Copy\
\
`"string"`\
\
## schema/language language\
\
The language tag for the language in which to localize the error-related strings, such as messages, issues, and suggested actions. The tag is made up of the ISO 639-2 language code, the optional ISO-15924 script tag, and the ISO-3166 alpha-2 country code or M49 region code.\
\
string<ppaas\_common\_language\_v3> (language) \[ 2 .. 10 \] characters^\[a-z\]{2}(?:-\[A-Z\]\[a-z\]{3})?(?:-(?:\[A-Z\]{2}\|\...Show pattern\
\
The [language tag for the language in which to localize the error-related strings, such as messages, issues, and suggested actions. The tag is made up of the ISO 639-2 language code, the optional ISO-15924 script tag, and the ISO-3166 alpha-2 country code or M49 region code.\
\
Copy\
\
`"string"`\
\
## schema/scim_address ScimAddress\
\
Address for the User defined following the RFC 7643 specification.\
\
| streetAddress | string\[ 1 .. 300 \] characters^.\*$<br>The full street address component, which may include house number, street name, P.O. box, and multi-line extended street address information. This attribute MAY contain newlines. The pattern is not provided because this property supports Unicode. |\
| locality | string\[ 1 .. 300 \] characters^.\*$<br>The city or locality component. The pattern is not provided because this property supports Unicode. |\
| region | string\[ 1 .. 300 \] characters^.\*$<br>The state or region component. The pattern is not provided because this property supports Unicode. |\
| postalCode | string\[ 1 .. 60 \] characters^.\*$<br>The zip code or postal code component. |\
| type | string\[ 1 .. 255 \] characters^\[A-Za-z\]+$\
\
A label indicating the attribute's function, e.g., 'work' or 'home'.\
\
| Enum Value | **Description** |\
| --- | --- |\
| work | Work address. |\
| home | Home address. | |\
| country<br>required | string<ppaas\_common\_country\_code\_v2> (country\_code) = 2 characters^(\[A-Z\]{2}\|C2)$<br>The 2-character ISO 3166-1 code that identifies the country or region.<br>> **Note:** The country code for Great Britain is `GB` and not `UK` as used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions. |\
\
Copy\
\
`{"streetAddress": "string",\
\
"locality": "string",\
\
"region": "string",\
\
"postalCode": "string",\
\
"type": "work",\
\
"country": "string"\
\
}`\
\
## schema/scim_email ScimEmail\
\
Email address for the user. The value SHOULD be specified according to \[RFC5321\]. The value SHOULD be canonicalized by the service provider, e.g., ' [bjensen@example.com](mailto:bjensen@example.com)' instead of ' [bjensen@EXAMPLE.COM](mailto:bjensen@EXAMPLE.COM)'. Canonical type values of 'work', 'home', and 'other'.\
\
| type | string\[ 1 .. 255 \] characters^\[A-Za-z\]+$\
\
A label indicating the attribute's function, e.g., 'work' or 'home'.\
\
| Enum Value | **Description** |\
| --- | --- |\
| work | Work email. |\
| home | Home email. |\
| other | Other email. | |\
| primary | boolean<br>A Boolean value indicating the 'primary' or preferred attribute value for this attribute, e.g., the preferred primary email address. The primary attribute value 'true' MUST appear no more than once. |\
| value<br>required | string<ppaas\_common\_email\_address\_v2> (email\_address) \[ 3 .. 254 \] characters^.+@\[^"\\-\].+$<br>The internationalized email address.<br>> **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. |\
\
Copy\
\
`{"type": "work",\
\
"primary": true,\
\
"value": "string"\
\
}`\
\
## schema/scim_entitlement ScimEntitlement\
\
An entitlement for the User that represent a thing the User has.\
\
|     |     |\
| --- | --- |\
| value<br>required | string\[ 1 .. 300 \] characters^\[A-Za-z\].+$<br>The value of an entitlement, SCIM server will use this attribute with information encoded into the string using a delimiter. The structure of the encoded string must be as follows: 'ResourceType\|ResourceId\|ROLE\|RoleKey' where ResourceType values can be 'ACCOUNT' or 'NODE', ResourceId values can be Node identifier - Absolute path of node for NODE ResourceType or payerId of account for ACCOUNT ResourceType, RoleKey value is Role Identifier. |\
\
Copy\
\
`{"value": "string"\
\
}`\
\
## schema/scim_error ScimError\
\
Error schema as defined by SCIM 2.0 .\
\
| schemas<br>required | Array of strings&lt;uri&gt;\[ 1 .. 10 \] items<br>Error responses following the identified schemas. |\
| status<br>required | string= 3 characters^\[1-5\]{1}\[0-9\]{2}$<br>The HTTP status code (see Section 6 of \[RFC7231\]) expressed as a JSON string. |\
| scimType | string\[ 2 .. 20 \] characters^\[A-Za-z\]+$\
\
A SCIM detail error keyword.\
\
| Enum Value | **Description** |\
| --- | --- |\
| invalidFilter | The specified filter syntax was invalid. |\
| tooMany | The specified filter yields many more results than the server is willing to process. |\
| uniqueness | One or more of the attribute values are already in use or are reserved. |\
| mutability | The attempted modification is not compatible with the target attribute's mutability or current state. |\
| invalidSyntax | The request body message structure was invalid or did not conform to the request schema. |\
| invalidPath | The "path" attribute was invalid or malformed. |\
| noTarget | The specified "path" did not yield an attribute or attribute value that could be operated on. |\
| invalidValue | A required value was missing, or the value specified was not compatible with the operation or attribute type. |\
| invalidVers | The specified SCIM protocol version is not supported. |\
| sensitive | The specified request cannot be completed, due to the passing of sensitive information in a request URI. | |\
| detail | string\[ 2 .. 128 \] characters^\[A-Za-z\].+$<br>A detailed human-readable message. |\
\
Copy\
\
Expand allCollapse all\
\
`{"schemas": ["http://example.com"\
\
],\
\
"status": "str",\
\
"scimType": "invalidFilter",\
\
"detail": "string"\
\
}`\
\
## schema/scim_meta ScimMeta\
\
Metadata about the resource such as type, time create, etc.\
\
| resourceType | string\[ 1 .. 20 \] characters^\[A-Za-z\]+$\
\
The name of the resource type of the resource: User, Group, etc.\
\
| Value | **Description** |\
| --- | --- |\
| User | User Resource | |\
| location | string&lt;uri&gt;non-empty<br>The complete target URL. To make the related call, combine the method with this link, in URI template format. Include the `$`, `(`, and `)` characters for pre-processing. The `href` is the key HATEOAS component that links a completed call with a subsequent call. |\
| created | string<ppaas\_date\_time\_v3> (date\_time) \[ 20 .. 64 \] characters^\[0-9\]{4}-(0\[1-9\]\|1\[0-2\])-(0\[1-9\]\|\[1-2\]\[0-9\]\|...Show pattern<br>The date and time, in Internet date and time format. Seconds are required while fractional seconds are optional.<br>> **Note:** The regular expression provides guidance but does not reject all invalid dates. |\
| lastModified | string<ppaas\_date\_time\_v3> (date\_time) \[ 20 .. 64 \] characters^\[0-9\]{4}-(0\[1-9\]\|1\[0-2\])-(0\[1-9\]\|\[1-2\]\[0-9\]\|...Show pattern<br>The date and time, in Internet date and time format. Seconds are required while fractional seconds are optional.<br>> **Note:** The regular expression provides guidance but does not reject all invalid dates. |\
\
Copy\
\
`{"resourceType": "User",\
\
"location": "http://example.com",\
\
"created": "string",\
\
"lastModified": "string"\
\
}`\
\
## schema/scim_name ScimName\
\
The components of the user's real name.\
\
|     |     |\
| --- | --- |\
| familyName | string\[ 1 .. 140 \] characters^.\*$<br>The family name of the User, or last name in most Western languages. The pattern is not provided because this property supports Unicode. |\
| givenName | string\[ 1 .. 140 \] characters^.\*$<br>The given name of the User, or first name in most Western languages. The pattern is not provided because this property supports Unicode. |\
| middleName | string\[ 1 .. 140 \] characters^.\*$<br>The middle name(s) of the User. The pattern is not provided because this property supports Unicode. |\
| honorificPrefix | string\[ 1 .. 140 \] characters^.\*$<br>The honorific prefix(es) of the User, or title in most Western languages (e.g., 'Ms.' given the full name 'Ms. Barbara J Jensen, III'). The pattern is not provided because this property supports Unicode. |\
| honorificSuffix | string\[ 1 .. 140 \] characters^.\*$<br>The honorific suffix(es) of the User, or suffix in most Western languages (e.g., 'III' given the full name 'Ms. Barbara J Jensen, III'). The pattern is not provided because this property supports Unicode. |\
\
Copy\
\
`{"familyName": "string",\
\
"givenName": "string",\
\
"middleName": "string",\
\
"honorificPrefix": "string",\
\
"honorificSuffix": "string"\
\
}`\
\
## schema/scim_patch ScimPatch\
\
Patch request schema as defined by SCIM 2.0\
\
|     |     |\
| --- | --- |\
| schemas | Array of strings&lt;uri&gt;\[ 1 .. 10 \] items |\
| Operations | Array of objects\[ 1 .. 100 \] items<br>List of patch operations |\
\
Copy\
\
Expand allCollapse all\
\
`{"schemas": ["http://example.com"\
\
],\
\
"Operations": [{"op": "string",\
\
"path": "string",\
\
"value": null\
\
}\
\
]\
\
}`\
\
## schema/scim_phone ScimPhone\
\
Phone number for the User. The value SHOULD be specified according to the format defined in \[RFC3966\], e.g.,'tel:+1-201-555-0123'. Canonical type values of 'work', 'home', 'mobile', 'fax', 'pager', and 'other'.\
\
| value<br>required | string\[ 1 .. 37 \] characters^tel:\\+(\[0-9\\-\]\*)$<br>Phone number of the User defined in \[RFC3966\]. |\
| type | string\[ 1 .. 255 \] characters^\[A-Za-z\]+$\
\
A label indicating the attribute's function, e.g., 'work', 'home', 'mobile'.\
\
| Enum Value | **Description** |\
| --- | --- |\
| work | Work phone number. |\
| home | Home phone number. |\
| mobile | Mobile phone number. |\
| fax | Fax number. |\
| other | Other phone number. | |\
| primary | boolean<br>A Boolean value indicating the 'primary' or preferred attribute value for this attribute, e.g., the preferred primary email address. The primary attribute value 'true' MUST appear no more than once. |\
\
Copy\
\
`{"value": "string",\
\
"type": "work",\
\
"primary": true\
\
}`\
\
## schema/scim_search_results ScimSearchResults\
\
Search results returned by SCIM service.\
\
|     |     |\
| --- | --- |\
| schemas<br>required | Array of strings&lt;uri&gt;\[ 1 .. 10 \] items<br>Search responses following the identified schemas. |\
| startIndex | integer\[ 1 .. 4999 \]<br>The 1-based index of the first result in the current set of query results. |\
| itemsPerPage | integer\[ 1 .. 50 \]<br>The number of resources returned in a list response page. |\
| totalResults<br>required | integer\[ 0 .. 5000 \]<br>Count of resources that matches the search filter. |\
| Resources | Array of objects (ScimUser) \[ 1 .. 50 \] items<br>Resources that matches the search filter. |\
\
Copy\
\
Expand allCollapse all\
\
`{"schemas": ["http://example.com"\
\
],\
\
"startIndex": 1,\
\
"itemsPerPage": 1,\
\
"totalResults": 5000,\
\
"Resources": [{"schemas": ["http://example.com"\
\
],\
\
"externalId": "string",\
\
"userName": "string",\
\
"name": {"familyName": "string",\
\
"givenName": "string",\
\
"middleName": "string",\
\
"honorificPrefix": "string",\
\
"honorificSuffix": "string"\
\
},\
\
"active": true,\
\
"emails": [{"type": "work",\
\
"primary": true,\
\
"value": "string"\
\
}\
\
],\
\
"phoneNumbers": [{"value": "string",\
\
"type": "work",\
\
"primary": true\
\
}\
\
],\
\
"addresses": [{"streetAddress": "string",\
\
"locality": "string",\
\
"region": "string",\
\
"postalCode": "string",\
\
"type": "work",\
\
"country": "string"\
\
}\
\
],\
\
"entitlements": [{"value": "string"\
\
}\
\
],\
\
"id": "string",\
\
"meta": {"resourceType": "User",\
\
"location": "http://example.com",\
\
"created": "string",\
\
"lastModified": "string"\
\
},\
\
"preferredLanguage": "string",\
\
"timezone": "string"\
\
}\
\
]\
\
}`\
\
## schema/scim_user ScimUser\
\
User schema as defined by SCIM 2.0 .\
\
|     |     |\
| --- | --- |\
| schemas<br>required | Array of strings&lt;uri&gt;\[ 1 .. 10 \] items<br>An array of identified schemas. |\
| externalId | string\[ 1 .. 128 \] characters^.\*$<br>A String that is an identifier for the resource as defined by the external or 3rd party client. The pattern is not provided because the value is defined by an external party. |\
| userName<br>required | string\[ 1 .. 254 \] characters^(?!\[0-9\]\*$)\[a-zA-Z0-9\]{8,16}$<br>Unique identifier for the User, typically used by the user to directly authenticate to the service provider. Each User MUST include a non-empty userName value. This identifier MUST be unique across the service provider's entire set of Users. The pattern is not provided because the value is defined by an external party. |\
| name | object (ScimName) <br>The components of the user's real name. |\
| active | boolean<br>A Boolean value indicating the User's administrative status. |\
| emails | Array of objects (ScimEmail) \[ 1 .. 10 \] items<br>Email addresses for the user. The value SHOULD be specified according to \[RFC5321\]. The value SHOULD be canonicalized by the service provider, e.g., ' [bjensen@example.com](mailto:bjensen@example.com)' instead of ' [bjensen@EXAMPLE.COM](mailto:bjensen@EXAMPLE.COM)'. Canonical type values of 'work', 'home', and 'other'. |\
| phoneNumbers | Array of objects (ScimPhone) \[ 1 .. 10 \] items<br>Phone numbers for the User. The value SHOULD be specified according to the format defined in \[RFC3966\], e.g.,'tel:+1-201-555-0123'. Canonical type values of 'work', 'home', 'mobile', 'fax', 'pager', and 'other'. |\
| addresses | Array of objects (ScimAddress) \[ 1 .. 10 \] items<br>Addresses for the User defined following the RFC 7643 specification. |\
| entitlements | Array of objects (ScimEntitlement) \[ 1 .. 10000 \] items<br>A list of entitlements for the User that represent a thing the User has. |\
| id | string<ppaas\_payer\_id\_v3> (account\_id) = 13 characters^\[2-9A-HJ-NP-Z\]{13}$<br>The PayPal payer ID, which is a publicly-sharable of the PayPal account number intended for use with third parties. |\
| meta | object (ScimMeta) <br>Metadata about the resource such as type, time create, etc. |\
| preferredLanguage | string<ppaas\_common\_language\_v3> (language) \[ 2 .. 10 \] characters^\[a-z\]{2}(?:-\[A-Z\]\[a-z\]{3})?(?:-(?:\[A-Z\]{2}\|\...Show pattern<br>The [language tag for the language in which to localize the error-related strings, such as messages, issues, and suggested actions. The tag is made up of the ISO 639-2 language code, the optional ISO-15924 script tag, and the ISO-3166 alpha-2 country code or M49 region code. |\
| timezone | string<ppaas\_time\_zone\_v3> (time\_zone) \[ 1 .. 127 \] characters<br>The time zone, in Internet Assigned Numbers Authority (IANA) time zone (tz) database format. A valid value is `America/New_York` or `Etc/UTC`. Do not use ambiguous, non-qualified tz database values, such as `EST` or `GB`. Before you include this type in your interface, consider whether it is appropriate to convey time zone information with your type. At the time of display to the user, transform this value from UTC. Typically, this type is associated with user-preference APIs. |\
\
Copy\
\
Expand allCollapse all\
\
`{"schemas": ["http://example.com"\
\
],\
\
"externalId": "string",\
\
"userName": "string",\
\
"name": {"familyName": "string",\
\
"givenName": "string",\
\
"middleName": "string",\
\
"honorificPrefix": "string",\
\
"honorificSuffix": "string"\
\
},\
\
"active": true,\
\
"emails": [{"type": "work",\
\
"primary": true,\
\
"value": "string"\
\
}\
\
],\
\
"phoneNumbers": [{"value": "string",\
\
"type": "work",\
\
"primary": true\
\
}\
\
],\
\
"addresses": [{"streetAddress": "string",\
\
"locality": "string",\
\
"region": "string",\
\
"postalCode": "string",\
\
"type": "work",\
\
"country": "string"\
\
}\
\
],\
\
"entitlements": [{"value": "string"\
\
}\
\
],\
\
"id": "string",\
\
"meta": {"resourceType": "User",\
\
"location": "http://example.com",\
\
"created": "string",\
\
"lastModified": "string"\
\
},\
\
"preferredLanguage": "string",\
\
"timezone": "string"\
\
}`\
\
## schema/time_zone time\_zone\
\
The time zone, in Internet Assigned Numbers Authority (IANA) time zone (tz) database format. A valid value is `America/New_York` or `Etc/UTC`. Do not use ambiguous, non-qualified tz database values, such as `EST` or `GB`. Before you include this type in your interface, consider whether it is appropriate to convey time zone information with your type. At the time of display to the user, transform this value from UTC. Typically, this type is associated with user-preference APIs.\
\
string<ppaas\_time\_zone\_v3> (time\_zone) \[ 1 .. 127 \] characters\
\
The time zone, in Internet Assigned Numbers Authority (IANA) time zone (tz) database format. A valid value is `America/New_York` or `Etc/UTC`. Do not use ambiguous, non-qualified tz database values, such as `EST` or `GB`. Before you include this type in your interface, consider whether it is appropriate to convey time zone information with your type. At the time of display to the user, transform this value from UTC. Typically, this type is associated with user-preference APIs.\
\
Copy\
\
`"string"`\
\

Self-contained PayPal REST API documentation reference. Updated 2026-05-18.