- Authorization
- Orders
- Payments
- Invoices
- Invoices
- Templates
- Subscriptions
- Catalog Products
- Plans
- Subscriptions
- Payouts
- Webhooks
- Shipment Tracking
- Transaction Search
- Disputes
- List disputes
- Show dispute details
- Accept claim
- Appeal dispute
- Settle dispute
- Update dispute status
- Make offer to resolve dispute
- Provide evidence
- Acknowledge returned item
- Provide supporting information for dispute
- Escalate dispute to claim
- Accept offer to resolve dispute
- Send message about dispute to other party
- Deny offer to resolve dispute
- Partially update dispute
- Onboarding (Limited Release)
Partially updates information for a managed account
PATCH
/v3/customer/managed-accounts/{id}
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
id
string
必需
示例值:
{{managed_path_account_id}}
Header 参数
Content-Type
string
必需
示例值:
application/json
Accept
string
必需
示例值:
application/json
Prefer
string
必需
示例值:
views=process_view
Body 参数application/json
array of:
op
string
可选
path
string
可选
value
array [object {2}]
可选
name
string
可选
value
string
可选
示例
[
{
"op": "add",
"path": "/attributes",
"value": [
{
"name": "SELF_CERTIFICATION",
"value": "true"
}
]
}
]
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request PATCH 'https://api-m.sandbox.paypal.com/v3/customer/managed-accounts/{{managed_path_account_id}}' \
--header 'Accept: application/json' \
--header 'Prefer: views=process_view' \
--header 'Content-Type: application/json' \
--data-raw '[
{
"op": "add",
"path": "/attributes",
"value": [
{
"name": "SELF_CERTIFICATION",
"value": "true"
}
]
}
]'
返回响应
🟢200200 - Add a New Phone Number
application/json
Body
account_id
string
必需
legal_country_code
string
必需
individual_owners
array [object {5}]
必需
id
string
可选
names
array [object {4}]
可选
primary_residence
object
可选
phone_numbers
array [object {4}]
可选
identification_documents
array [object {4}]
可选
business_entity
object
必需
type
string
必需
incorporation_details
object
必需
names
array [object {3}]
必需
registered_business_address
object
必需
phone_numbers
array [object {4}]
必需
beneficial_owners
object
必需
office_bearers
array [object {7}]
必需
declarations
array [object {2}]
必需
agreements
array [object {2}]
必需
type
string
必需
accepted_time
string
必需
external_id
string
必需
user_id
string
必需
primary_currency_code
string
必需
soft_descriptor
string
必需
capabilities
array [object {3}]
必需
name
string
必需
status
string
必需
limits
array [object {4}]
可选
links
array [object {3}]
必需
href
string
必需
rel
string
必需
method
string
必需
示例
{
"account_id": "TSGG44MKNFGXU",
"legal_country_code": "US",
"individual_owners": [
{
"id": "TSGG44MKNFGXU",
"names": [
{
"given_name": "TONYAPPROVED",
"surname": "STARKAPPROVED",
"id": "PPMTPAH9QN9WN",
"type": "LEGAL"
}
],
"primary_residence": {
"address_line_1": "APPROVED 100",
"admin_area_2": "100",
"postal_code": "95014",
"country_code": "US"
},
"phone_numbers": [
{
"country_code": "1",
"national_number": "6156666",
"id": "GH7ERWRLQLY3G",
"type": "MOBILE"
},
{
"country_code": "1",
"national_number": "6151173",
"id": "9QYGRBQL2GSUS",
"type": "MOBILE"
}
],
"identification_documents": [
{
"id": "E9V2SFKQXACDJ",
"identification_number": "****",
"issuing_country_code": "US",
"type": "SOCIAL_SECURITY_NUMBER"
}
]
}
],
"business_entity": {
"type": "CORPORATION",
"incorporation_details": {},
"names": [
{
"business_name": "STARK INDUSTRY.",
"id": "DELE8Q247BFB4",
"type": "LEGAL"
}
],
"registered_business_address": {
"address_line_1": "APPROVED 100",
"admin_area_2": "100",
"postal_code": "95014",
"country_code": "US"
},
"phone_numbers": [
{
"country_code": "1",
"national_number": "1",
"id": "DRYHXJMFA3T24",
"type": "BUSINESS"
}
],
"beneficial_owners": {
"individuals": [
{
"id": "CZVGML4J6F7V8",
"names": [
{
"given_name": "APPROVED",
"surname": "NormanAPPROVED",
"id": "X7VBTTB9A9JNG",
"type": "LEGAL"
}
],
"citizenship": "US",
"addresses": [
{
"address_line_1": "APPROVED 100",
"admin_area_2": "100",
"postal_code": "95148",
"country_code": "US",
"id": "5K83QYFCB3MAY",
"type": "HOME"
}
],
"birth_details": {
"date_of_birth": "1960-01-01"
},
"identification_documents": [
{
"id": "9K284PJYDMYG6",
"identification_number": "****",
"issuing_country_code": "US",
"type": "SOCIAL_SECURITY_NUMBER"
}
],
"percentage_of_ownership": "26",
"controlling_influence": false
},
{
"id": "TW73L8XUHM4GW",
"names": [
{
"given_name": "APPROVED",
"surname": "SmothAPPROVED",
"id": "WTU2VNTF8BCGU",
"type": "LEGAL"
}
],
"citizenship": "US",
"addresses": [
{
"address_line_1": "APPROVED 100",
"admin_area_2": "100",
"postal_code": "95148",
"country_code": "US",
"id": "8WLRCHMFFYL3G",
"type": "HOME"
}
],
"birth_details": {
"date_of_birth": "1960-01-01"
},
"identification_documents": [
{
"id": "R452LBZZENUM2",
"identification_number": "****",
"issuing_country_code": "US",
"type": "SOCIAL_SECURITY_NUMBER"
}
],
"percentage_of_ownership": "35",
"controlling_influence": false
}
]
},
"office_bearers": [
{
"id": "V8H2VCB2H3NNW",
"names": [
{
"given_name": "APPROVED",
"surname": "CollinsAPPROVED",
"id": "GBNNG7KPV7NPE",
"type": "LEGAL"
}
],
"citizenship": "US",
"addresses": [
{
"address_line_1": "100",
"admin_area_2": "100",
"postal_code": "22903",
"country_code": "US",
"id": "JA4Q8GYDWVVZ6",
"type": "HOME"
}
],
"birth_details": {
"date_of_birth": "1990-01-01"
},
"role": "CHAIRMAN"
},
{
"id": "E9RSWUZXK3Y34",
"names": [
{
"given_name": "APPROVED",
"surname": "TREASWILLIAMSONAPPROVED",
"id": "KSZECFVEYTQ34",
"type": "LEGAL"
}
],
"citizenship": "US",
"addresses": [
{
"address_line_1": "APPROVED 100",
"admin_area_2": "100",
"postal_code": "29212",
"country_code": "US",
"id": "ERFYT43B3ATMA",
"type": "HOME"
}
],
"birth_details": {
"date_of_birth": "1991-05-30"
},
"identification_documents": [
{
"id": "82LB389H9PVHN",
"identification_number": "****",
"issuing_country_code": "US",
"type": "SOCIAL_SECURITY_NUMBER"
}
]
}
],
"declarations": [
{
"name": "TWENTY_FIVE_PERCENT_BENEFICIAL_OWNER",
"value": "YES"
}
]
},
"agreements": [
{
"type": "TERMS_ACCEPTED",
"accepted_time": "2022-09-10T00:00:00Z"
},
{
"type": "PERSONAL_INFORMATION_COLLECTION_CONSENT",
"accepted_time": "2022-09-10T00:00:00Z"
}
],
"external_id": "EXT-1681438586",
"user_id": "1681438586",
"primary_currency_code": "USD",
"soft_descriptor": "STARKINDUST",
"capabilities": [
{
"name": "RECEIVE_MONEY",
"status": "ACTIVE"
},
{
"name": "WITHDRAW_MONEY",
"limits": [
{
"type": "AMOUNT",
"unit": "USD",
"value": "500.00",
"remaining_value": "500.00"
}
],
"status": "ACTIVE"
}
],
"links": [
{
"href": "https://api-m.sandbox.paypal.com/v3/customer/managed-accounts/TSGG44MKNFGXU",
"rel": "self",
"method": "GET"
},
{
"href": "https://api-m.sandbox.paypal.com/v3/customer/managed-accounts/TSGG44MKNFGXU",
"rel": "edit",
"method": "PATCH"
}
]
}
🟢200200 - Add Office Bearers
🟢200200 - Add Phone List
🟢200200 - Add Self Certification
🟢200200 - Add Wallet Domain
🟢200200 - Add Website
🟢200200 - Remove a Phone Number
🟢200200 - Replace a Phone Number
🟢200200 - Return With Typical Response
🟢200200 - Return with Detailed Response
🟢200200 - Update Primary Residence
🟢200200 - [US] Request to Update identification
🟢204204 - Return with Minimal Response
🟢204204 - Remove One of Benificial Owner
🟠403403 Forbidden - Invalid Token
🟠404404 Not Found - Seller Id Not Found
🟠422422 Unprocessable Entity - No Benificial Owner ID
🟠422422 Unprocessable Entity - Patch Field Not Supported
修改于 2023-08-16 07:18:59