Error
A valid request URL is required to generate request examples{
"id": "<string>",
"object": "account_authorization",
"status": "approved",
"account": "<string>",
"permissions": [
"<string>"
],
"livemode": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Platform Connect
Exchange an Account-approved code
Consumes the one-time callback code with the original PKCE verifier and exact redirect URI. A successful response identifies the connected Account and the permissions it granted. The exchange delivers an already-approved result; it does not create or expand access.
POST
/
account_authorizations
/
{id}
/
exchange
Error
A valid request URL is required to generate request examples{
"id": "<string>",
"object": "account_authorization",
"status": "approved",
"account": "<string>",
"permissions": [
"<string>"
],
"livemode": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
A Platform Connect secret key (sk_…) sent as Authorization: Bearer <key>.
Headers
A unique key that makes a retry return the original result.
Required string length:
1 - 255Path Parameters
Account authorization ID.
Pattern:
^aauth_[0-9A-Za-z]{24}$Body
application/json
Response
The approved authorization result.
Pattern:
^aauth_[0-9A-Za-z]{24}$Available options:
account_authorization Available options:
approved Ionic Account ID to use with supported Platform API calls.
Pattern:
^mer_[0-9A-Za-z]{14}$Permissions granted by the connected Account.

