Create a customer
POST {{baseUrl}}/{{version}}/stripe/customer/create
Your payment journey start here by creating a customer.
We use Stripe as our default payment provider and we don't currently support any other provider.
Please follow https://stripe.com/docs/payments/quickstart to learn more about the payment flow
Create Customer object: https://stripe.com/docs/api/customers
Request Body
[{"name"=>"description", "value"=>"Some new coach account", "datatype"=>"string"}, {"name"=>"price_id", "value"=>"Price Unique Identification", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"Customer has been created","customer":{"id":"cus_L9jZGqN5NTZ0J9","object":"customer","address":null,"balance":0,"created":1644927925,"currency":null,"default_source":null,"delinquent":false,"description":"My First Test Customer (created for API docs)","discount":null,"email":"francisco@teamsportz.pro","invoice_prefix":"184B9E2C","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null},"livemode":false,"metadata":{"org_id":"20","user_id":"1"},"name":null,"phone":null,"preferred_locales":[],"shipping":null,"tax_exempt":"none"}}