API Documentation
Payment ¶
Overview
Manage Stripe Customers
Add a Stripe Customer to a user ¶
Add a Stripe Customer to a userPOST/payments/stripe/customers
Example URI
POST /payments/stripe/customers
Request
Body
{
"token": "tok_visa"
}Response
200Body
{
"code": "OK",
"data": {
"id": "955a1e7f-683c-4e23-b2b3-3db4e08e950e",
"owner": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"customer_id": "cus_Az3sOfwEJ3XvLY",
"source": {
"id": "card_mock_id",
"name": null,
"brand": "Visa",
"last4": "4242",
"object": "card",
"country": "US",
"funding": "credit",
"customer": "cus_Az3sOfwEJ3XvLY",
"exp_year": 2019,
"metadata": {},
"cvc_check": null,
"exp_month": 8,
"address_zip": null,
"fingerprint": "KLKJoiVFXSq7RAr4",
"address_city": null,
"address_line1": null,
"address_line2": null,
"address_state": null,
"dynamic_last4": null,
"address_country": null,
"address_zip_check": null,
"address_line1_check": null,
"tokenization_method": null
},
"created_at": 1765163615.609121,
"updated_at": 1765163615.609121,
"deleted_at": null,
"type": "stripe_customer"
}
}Get a user's customer list ¶
Get a user's customer listGET/payments/stripe/customers
Example URI
GET /payments/stripe/customers
Response
200Body
{
"code": "OK",
"data": [
{
"id": "955a1e7f-683c-4e23-b2b3-3db4e08e950e",
"owner": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"customer_id": "cus_Az3sOfwEJ3XvLY",
"source": {
"id": "card_mock_id",
"name": null,
"brand": "Visa",
"last4": "4242",
"object": "card",
"country": "US",
"funding": "credit",
"customer": "cus_Az3sOfwEJ3XvLY",
"exp_year": 2019,
"metadata": {},
"cvc_check": null,
"exp_month": 8,
"address_zip": null,
"fingerprint": "KLKJoiVFXSq7RAr4",
"address_city": null,
"address_line1": null,
"address_line2": null,
"address_state": null,
"dynamic_last4": null,
"address_country": null,
"address_zip_check": null,
"address_line1_check": null,
"tokenization_method": null
},
"created_at": 1765163615.609121,
"updated_at": 1765163615.609121,
"deleted_at": null,
"type": "stripe_customer"
}
],
"info": {
"count": 1,
"total": 0
}
}