Paypal API
  1. Manage Accounts
Paypal API
  • Authorization
    • Generate access_token
      POST
    • Terminate access_token
      POST
    • User Info
      GET
    • Generate client_token
      POST
  • Orders
    • Create order
      POST
    • Show order details
      GET
    • Update order
      PATCH
    • Authorize payment for order
      POST
    • Capture payment for order
      POST
  • Payments
    • Show details for authorized payment
      GET
    • Reauthorize authorized payment
      POST
    • Void authorized payment
      POST
    • Capture authorized payment
      POST
    • Show captured payment details
      GET
    • Refund captured payment
      POST
    • Show refund details
      GET
  • Invoices
    • Invoices
      • Generate invoice number
      • Create draft invoice
      • Show invoice details
      • List invoices
      • Generate QR code
      • Fully update invoice
      • Send invoice
      • Send invoice reminder
      • Cancel sent invoice
      • Delete invoice
      • Search for invoices
      • Record payment for invoice
      • Delete external payment
      • Record refund for invoice
      • Delete external refund
    • Templates
      • List templates
      • Create template
      • Show template details
      • Fully update template
      • Delete template
  • Subscriptions
    • Catalog Products
      • Create product
      • List products
      • Show product details
      • Update product
    • Plans
      • Create plan
      • List plans
      • Show plan details
      • Update plan
      • Deactivate plan
      • Activate plan
      • Update pricing
    • Subscriptions
      • Create subscription
      • Show subscription details
      • Update subscription
      • Revise plan or quantity of subscription
      • Suspend subscription
      • Activate subscription
      • Cancel subscription
      • Capture authorized payment on subscription
      • List transactions for subscription
  • Payouts
    • Create batch payout
    • Show payout batch details
    • Show payout item details
    • Cancel unclaimed payout item
  • Webhooks
    • List available events
    • Create webhook
    • List webhooks
    • Show webhook details
    • List event notifications
    • List event subscriptions for webhook
    • Show event notification details
    • Trigger a sample event
    • Verify webhook signature
    • Resend event notification
    • Simulate webhook event
    • Update webhook
    • Delete webhook
  • Shipment Tracking
    • Add tracking information for multiple PayPal transactions
    • Show tracking information
    • Update or cancel tracking information for PayPal transaction
  • Transaction Search
    • List transactions
    • List all balances
  • 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)
    • Manage Accounts
      • Create managed account
        POST
      • Search managed account through external id
        GET
      • Search managed account by Seller Id
        GET
      • Partially updates information for a managed account
        PATCH
      • Shows collection of registered wallet domains
        GET
  1. Manage Accounts

Partially updates information for a managed account

PATCH
/v3/customer/managed-accounts/{id}
Partially updates information for a managed account, by account ID. For information about the paths where you can replace, add, or delete information.
The fields and endpoint description can be found on PayPal Developer Portal under Managed Accounts.

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数

Header 参数

Body 参数application/json

示例
[
    {
        "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": "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
上一页
Search managed account by Seller Id
下一页
Shows collection of registered wallet domains
Built with