Api referenceControl
Receive a Stripe-signed webhook and credit through the ledger
Authorization
stripeWebhookSignature Stripe-Signature<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v2/control/payments/stripe/webhook" \ -H "Content-Type: application/json" \ -d '{}'{ "order_id": "string", "provider": "sandbox", "status": "pending", "processing_status": "pending", "reversal_status": "none", "risk_status": "none", "reconcile_status": "unreconciled", "amount": "string", "currency": "USD", "operation_id": "string", "brand_id": "string", "legal_entity_id": "string", "merchant_of_record": "string", "provider_account_id": "string", "amount_breakdown": { "gross": "string", "fee": "string", "tax": "string", "net": "string", "currency": "USD" }, "fx_snapshot": {}, "provider_payment_id": "string", "provider_charge_id": "string", "provider_event_id": "string", "provider_event_ids": [ "string" ], "ledger_operation_refs": [ "string" ], "reversal_operation_ids": [ "string" ], "reversal_refs": [ "string" ], "provider_balance_transaction_ids": [ "string" ], "provider_balance_transaction_refs": [ { "id": "string", "source_id": "string", "source_type": "charge", "event_id": "string", "type": "string", "reporting_category": "string", "amount": "string", "fee": "string", "net": "string", "currency": "USD", "available_on": "2019-08-24T14:15:22Z", "scanned_at": "2019-08-24T14:15:22Z" } ], "state_history": [ { "status": "pending", "processing_status": "pending", "reversal_status": "none", "risk_status": "none", "reconcile_status": "unreconciled", "source": "string", "at": "2019-08-24T14:15:22Z", "event_id": "string", "operation_id": "string", "reason": "string" } ], "reconcile_cursor": { "provider": "stripe", "brand_id": "string", "provider_account_id": "string", "provider_object_type": "payment_intent", "provider_object_id": "string", "event_id": "string", "event_type": "string", "synthetic_event_id": "string", "scan_strategy": "order_retrieve", "reconciled_at": "2019-08-24T14:15:22Z" }, "credited_at": "2019-08-24T14:15:22Z", "failed_at": "2019-08-24T14:15:22Z", "refunded_at": "2019-08-24T14:15:22Z", "disputed_at": "2019-08-24T14:15:22Z", "chargeback_at": "2019-08-24T14:15:22Z", "reconciled_at": "2019-08-24T14:15:22Z", "expires_at": "2019-08-24T14:15:22Z"}