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
200
Body
{
"code": "OK",
"data": {
"id": "cb6eaffb-386c-4396-a3c9-0bbb9c619f51",
"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": 1760470089.793844,
"updated_at": 1760470089.793844,
"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
200
Body
{
"code": "OK",
"data": [
{
"id": "cb6eaffb-386c-4396-a3c9-0bbb9c619f51",
"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": 1760470089.793844,
"updated_at": 1760470089.793844,
"deleted_at": null,
"type": "stripe_customer"
}
],
"info": {
"count": 1,
"total": 0
}
}