Payments
Create payment method
Authentication v1
- Identity APIs
- User
- Address
- Auth
User Self Service APIs
- Introduction
- User Self Service APIs
- Authentication APIs
Experiences v2 (XM v2)
- XM
- Pages
- Global Components
- Menu
Experiences v1 (XM v1)
- XM
- Pages
- Global Components
- Menu
Product Catalog
- Product Catalog
- Category
- Product
- Attributes
- Bulk Import
Orders v2 (OMS v2)
- Order Management System
- Order
- Order Attribute
- Developer Guide
- Order Return
- Payment Status
- Package Tracking
- Cross Border
- Order Cancellation
- Appeasement
- Allocation
- Configuration
- Fraud Configuration
- Target Configuration
- Location
- Location Attribute
- Inventory Network
- Inventory
- Inventory Counter
- Inventory Bulk Operation
- Inventory Attribute
- Inventory Upload Log
- Shipment
- Shipping Method
- Webhook
- Notification
- Export
- Invoice
- Fraud
- Backorder Preorder Reservation
- List
Orders v1 (OMS v1)
- Order Management System
- Cart
- Bill To
- Ship To
- Wishlist
- Cart Decoupled
- Warehouse
- Inventory
- Attributes
- List
- Tax/Address Validate
- Shipping
- Payments
- Order
Offers v2
- Offers
- Developer Guide
- Promotion
- Price Kind
- Dynamic Pricing Engine
- Segment
- Coupon
- Coupon Codes
- Product
- Price List
- Attributes
- Item
- Price Guard
- Global Exclusion
- Upload Price CSV
- Pricing
- Redemption
- Exports
Offers v1
- Offers
- Login API
- Promotions
- Pricing
Subscriptions (SMT API)
- Subscriptions API
- Cancellation Reasons
- Subscription Discounts
- Subscriptions
- Subscribers
- Orders
Loyalty (Member)
- Member APIs
- Inquire
- Discounts
- Redeem
- Earn
- Members
Dropship
- Dropship API
- Shipments
- Products
- Invoices
- Connections
- Inventory
- Developer Guide
- Returns
- Orders
Cart API
- Cart
- Order Draft
- Attribute
- Adjustments
- Shipping
- Cart
Checkout API
- Checkout
- Checkout
Customer
- Core Concepts
- Customer Service
- Organization
- User Party
- Organization Group Addresses
- User Internal Party
- Organization Contracts
- Party
- Party Contracts
- Contracts
- User
- Search
- User Trait
- Organization Users
- Address
- User Address
- Trait
- Party Address
- Party Trait
- Organization Group Users
- Internal Party
- Contract Pricelist
- Internal Parties Party
- Account
- Party Account
- Organization Addresses
- Organization Groups
- Individual Addresses
- Users Organization
- Individual
Payments
Create payment method
Create payment method
POST
/
ext-stripe
/
payment-method
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/ext-stripe/payment-method \
--header 'Content-Type: application/json' \
--data '{
"type": "card",
"metadata": {
"keyName": "key value"
},
"card": {
"number": "4242424242424242",
"exp_month": 6,
"exp_year": 21,
"cvc": "021"
},
"billing_details": {
"address": {
"line1": "3520 Millenio",
"line2": "Crowley Drive",
"city": "Vancouver",
"state": "BC",
"country": "CA",
"postal_code": "V5R 6G9"
},
"name": "John Smith",
"email": "john@fabric.inc",
"phone": "123-456-7890"
}
}'
{
"id": "pm_1Ij5zBJxr7zyIFb9u3cfbHJG",
"object": "payment_method",
"card": {
"brand": "visa",
"checks": {
"address_line1_check": "unchecked",
"address_postal_code_check": "unchecked",
"cvc_check": "unchecked"
},
"country": "US",
"exp_month": 2,
"exp_year": 2023,
"fingerprint": "lf55OlXOOfjcvjan",
"funding": "credit",
"generated_from": null,
"last4": "4242",
"networks": {
"available": [
"visa"
],
"preferred": null
},
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1619111201,
"customer": null,
"livemode": false,
"metadata": {},
"type": "card",
"billing_details": {
"address": {
"line1": "3520 Millenio",
"line2": "Crowley Drive",
"city": "Vancouver",
"state": "BC",
"country": "CA",
"postal_code": "V5R 6G9"
},
"name": "John Smith",
"email": "john@fabric.inc",
"phone": "123-456-7890"
}
}
Headers
Body
application/json
Available options:
au_becs_debit
, bacs_debit
, bancontact
, card
, eps
, fpx
, giropay
, ideal
, p24
, sepa_debit
Response
200
application/json
Created payment method
Was this page helpful?
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/ext-stripe/payment-method \
--header 'Content-Type: application/json' \
--data '{
"type": "card",
"metadata": {
"keyName": "key value"
},
"card": {
"number": "4242424242424242",
"exp_month": 6,
"exp_year": 21,
"cvc": "021"
},
"billing_details": {
"address": {
"line1": "3520 Millenio",
"line2": "Crowley Drive",
"city": "Vancouver",
"state": "BC",
"country": "CA",
"postal_code": "V5R 6G9"
},
"name": "John Smith",
"email": "john@fabric.inc",
"phone": "123-456-7890"
}
}'
{
"id": "pm_1Ij5zBJxr7zyIFb9u3cfbHJG",
"object": "payment_method",
"card": {
"brand": "visa",
"checks": {
"address_line1_check": "unchecked",
"address_postal_code_check": "unchecked",
"cvc_check": "unchecked"
},
"country": "US",
"exp_month": 2,
"exp_year": 2023,
"fingerprint": "lf55OlXOOfjcvjan",
"funding": "credit",
"generated_from": null,
"last4": "4242",
"networks": {
"available": [
"visa"
],
"preferred": null
},
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1619111201,
"customer": null,
"livemode": false,
"metadata": {},
"type": "card",
"billing_details": {
"address": {
"line1": "3520 Millenio",
"line2": "Crowley Drive",
"city": "Vancouver",
"state": "BC",
"country": "CA",
"postal_code": "V5R 6G9"
},
"name": "John Smith",
"email": "john@fabric.inc",
"phone": "123-456-7890"
}
}