Skip to content

Commit fee02f9

Browse files
authored
Merge pull request #209 from hollyabrams/customer-portal-account-link
Adding CustomerPortalAccountLink curl example and response
2 parents bd597a8 + e1524c2 commit fee02f9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
curl -X POST https://api.easypost.com/v2/customer_portal/account_link \
2+
-u "EASYPOST_API_KEY": \
3+
-H 'Content-Type: application/json' \
4+
-d '{
5+
"session_type": "account_management",
6+
"user_id": "user_...",
7+
"refresh_url": "https://example.com/refresh",
8+
"return_url": "https://example.com/return",
9+
"metadata": {"target": "wallet"}
10+
}'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"object": "CustomerPortalAccountLink",
3+
"created_at": "2025-16-17T17:30:30Z",
4+
"expires_at": "2025-16-17T17:35:30Z",
5+
"link": "https://app.easypost.com/customer-portal/onboarding?session_id={SESSION_ID}"
6+
}

0 commit comments

Comments
 (0)