POST
/
ext-stripe
/
payment-intent
curl --request POST \
  --url https://prod01-apigw.{customer_name}.fabric.zone/ext-stripe/payment-intent \
  --header 'Content-Type: application/json' \
  --data '{
  "amount": 1000,
  "currency": "USD",
  "customer": "cus_HRp23wXfXMqSao",
  "confirm": false,
  "off_session": false,
  "payment_method": "pm_1Gsv4BFbKq2PvwXbl4XEl1O3",
  "payment_method_types": [
    "card"
  ],
  "receipt_email": "joedoe@fabric.inc",
  "setup_future_usage": "off_session",
  "capture_method": "manual",
  "application_fee_amount": 100,
  "transfer_data": {
    "destination": "acct_1GtG8vJwgwMmQiI2",
    "amount": 1000
  },
  "metadata": {
    "orderId": "1234-1234-12345"
  }
}'
{
  "id": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
  "object": "payment_intent",
  "amount": 1000,
  "amount_capturable": 0,
  "amount_received": 0,
  "application": "<string>",
  "application_fee_amount": 123,
  "canceled_at": "<string>",
  "cancellation_reason": "<string>",
  "capture_method": "manual",
  "client_secret": "pi_1GsyhzFbKq2Pvw1bwAI3ZluI_secret_GKG6hcap7VCggeoqJICAqSsRW",
  "confirmation_method": "automatic",
  "created": 1591913835,
  "currency": "usd",
  "customer": "<string>",
  "description": "<string>",
  "invoice": "<string>",
  "last_payment_error": "<string>",
  "livemode": true,
  "metadata": {},
  "next_action": "<string>",
  "on_behalf_of": "<string>",
  "payment_method": "<string>",
  "payment_method_options": {
    "card": {
      "installments": "<string>",
      "network": "<string>",
      "request_three_d_secure": "automatic"
    }
  },
  "payment_method_types": [
    "card"
  ],
  "receipt_email": "<string>",
  "review": "<string>",
  "setup_future_usage": "on_session",
  "shipping": "<string>",
  "source": "<string>",
  "statement_descriptor": "<string>",
  "statement_descriptor_suffix": "<string>",
  "status": "requires_payment_method",
  "transfer_data": "<string>",
  "transfer_group": "<string>",
  "charges": {
    "object": "list",
    "data": [
      "<any>"
    ],
    "has_more": false,
    "total_count": 0,
    "url": "/v1/charges?payment_intent=pi_1GsyhzFbKq2PvwXbwAI3ZluI"
  }
}

Headers

x-api-key
string

Body

application/json
amount
integer
Required range: x > 1
currency
string
Required string length: 3
customer
string
confirm
boolean
default:
false
off_session
boolean
default:
false
payment_method
string
payment_method_types
enum<string>[]
Available options:
card
receipt_email
string
setup_future_usage
enum<string>
default:
off_session
Available options:
on_session,
off_session
capture_method
enum<string>
default:
manual
Available options:
automatic,
manual
application_fee_amount
integer
Required range: x > 1
transfer_data
object
metadata
object

Response

200
application/json
Created stripe payment intent
id
string
object
string
amount
number
amount_capturable
number
amount_received
number
application
string
application_fee_amount
number
canceled_at
string
cancellation_reason
string
capture_method
string
client_secret
string
confirmation_method
string
created
number
currency
string
customer
string
description
string
invoice
string
last_payment_error
string
livemode
boolean
metadata
object
next_action
string
on_behalf_of
string
payment_method
string
payment_method_options
object
payment_method_types
string[]
receipt_email
string
review
string
setup_future_usage
string
shipping
string
source
string
statement_descriptor
string
statement_descriptor_suffix
string
status
string
transfer_data
string
transfer_group
string
charges
object