This endpoint requires permission from WePay. The POST /accounts/{id}/capabilities call allows your platform to update an account's capabilities. The accounts resource allows your platform to create a new merchant account for each distinct business purpose.
object Specify the capability being updated. | |
object Specify the capability being updated. |
INVALID_PARAMS
NOT_AUTHORIZED
UNEXPECTED_ERROR
{- "payouts": {
- "application_block": {
- "is_blocked": true,
- "reason": "This is a sham!"
}
}
}
{- "transaction_division_setup": {
- "current_issues": [
- {
- "identity_verification": {
- "path": "controller.personal_verification.documents",
- "requested_documents": [
- "passport",
- "drivers_license"
], - "message": "we need to verify your date of birth"
}, - "issue_type": "identity_verification",
- "target": {
- "id": null,
- "path": "/legal_entities/672b72f5-5136-4304-b553-ec7c8544b51e/verifications",
- "resource": "verifications"
}
}
], - "enabled": true,
- "upcoming_issues": { }
}, - "payments": {
- "enabled": true,
- "current_issues": [ ],
- "upcoming_issues": { }
}, - "payouts": {
- "enabled": false,
- "current_issues": [
- {
- "issue_type": "application_block",
- "application_block": {
- "reason": "This is a sham!"
}, - "target": {
- "resource": "accounts",
- "id": "f779afd5-f860-43fb-9d19-d47d3b099bf3",
- "path": "/accounts/f779afd5-f860-43fb-9d19-d47d3b099bf3"
}
}
], - "upcoming_issues": { }
}, - "terminals": {
- "enabled": true,
- "current_issues": [ ],
- "upcoming_issues": { }
}, - "id": null,
- "resource": "capabilities",
- "path": "/accounts/f779afd5-f860-43fb-9d19-d47d3b099bf3/capabilities",
- "owner": {
- "id": "f779afd5-f860-43fb-9d19-d47d3b099bf3",
- "resource": "accounts",
- "path": "/accounts/f779afd5-f860-43fb-9d19-d47d3b099bf3"
}, - "api_version": "3.0"
}