POST
/v1/integrations/stripe/{familyId}/payment-intents/charge-payment-method
curl \
--request POST 'https://classmanager.test/v1/integrations/stripe/fml_123123123123/payment-intents/charge-payment-method' \
--header "Content-Type: application/json" \
--data '{"amount":1999,"paymentMethodId":"pm_123456789"}'
Request examples
{
"amount": 1999,
"paymentMethodId": "pm_123456789"
}
Response examples (200)
{
"aggregateId": "trn_xxxxxxxxxxx",
"transaction": {
"id": "trn_123123123123",
"companyId": "co_123123123123",
"familyId": "fml_123123123123",
"familyName": "Potter",
"relatedTransactionId": "trn_123123123123",
"type": "debit",
"date": "2023-12-05",
"description": "This is a transaction",
"orderId": "ord_xxxxxxxxxxxxxxxxxxxxxxxxxx",
"deletedAt": "2023-12-05 14:30:41"
},
"details": [
{
"details": {
"id": "trn_123123123123",
"companyId": "co_123123123123",
"transactionId": "trn_123123123123",
"type": "manual-debit",
"amount": 100,
"description": "This is a transaction",
"deletedAt": "2023-12-05 14:30:41"
},
"relatedEntities": [
{
"id": "trn_123123123123",
"companyId": "co_123123123123",
"transactionDetailId": "trnd_123123123123",
"entityId": "cls_123123123123"
}
]
}
],
"stats": {
"total": 1000,
"subtotal": 950,
"discountTotal": 30,
"taxTotal": 20
}
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (404)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}