Skip to content

Commit

Permalink
Merge pull request #173 from hollyabrams/adding-billing-curls-request…
Browse files Browse the repository at this point in the history
…s-responses

Adding billing section curls and responses
  • Loading branch information
Justintime50 authored Feb 11, 2025
2 parents a9a1715 + 7985741 commit 3b044dd
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 1 deletion.
12 changes: 12 additions & 0 deletions official/docs/curl/current/billing/create-bank-account.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
curl -X POST "https://api.easypost.com/v2/bank_accounts" \
-u "$REFERRAL_USER_API_KEY:" \
-H "Content-Type: application/json" \
-d '{
"financial_connections_id": "fca_...",
"mandate_data": {
"ip_address": "127.0.0.1",
"user_agent": "Mozilla/5.0",
"accepted_at": 1722510730,
},
"priority": "primary"
}'
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ curl -X POST https://api.easypost.com/v2/credit_cards \
-H "Content-Type: application/json" \
-d '{
"credit_card": {
"stripe_object_id": "tok_...",
"payment_method_id": "pm_...",
"priority": "primary"
}
}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
curl -X POST "https://api.easypost.com/beta/financial_connections_sessions" \
-u "$REFERRAL_USER_API_KEY:" \
-H "Content-Type: application/json" \
-d '{
"return_url": "https://www.yourwebsite.com/redirect"
}'
3 changes: 3 additions & 0 deletions official/docs/curl/current/billing/create-setup-intents.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
curl -X POST "https://api.easypost.com/beta/setup_intents" \
-u "$REFERRAL_USER_API_KEY:" \
-H "Content-Type: application/json"
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"client_secret": "fcsess_client_secret_..."
}
10 changes: 10 additions & 0 deletions official/docs/responses/billing/billing-create-bank-account.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bank_name": "STRIPE TEST BANK",
"country": "US",
"disabled_at": null,
"id": "pm_...",
"last4": "6789",
"object": "BankAccount",
"requires_mandate_collection": false,
"verified": true
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"id": "card_...",
"disabled_at": null,
"object": "CreditCard",
"requires_mandate_collection": false,
"name": null,
"last4": "1234",
"exp_month": 1,
Expand Down
3 changes: 3 additions & 0 deletions official/docs/responses/billing/billing-setup-intents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"client_secret": "seti_0PzjqKDqT4huGUvdpewEw5Ky_secret_..."
}

0 comments on commit 3b044dd

Please sign in to comment.