Retrieve
GET/payment-flows/{payment_flow_ref}
Gets a payment flow by ID or external ID.
Path Parameters
payment_flow_ref: string
Payment flow ID or external ID.
Returns
Retrieve
curl https://api.us-west-2.fragment.dev/billing/payment-flows/$PAYMENT_FLOW_REF{
"data": {
"id": "pf_abc123",
"created": "2024-01-01T00:00:00.000Z",
"external_id": "pf_123",
"invoice": {
"id": "inv_abc123",
"external_id": "inv_ext_123"
},
"modified": "2024-01-01T00:00:00.000Z",
"payment_plan": {
"batches": [
{
"batch_id": "payins",
"depends_on": [
"string"
],
"label": "Payins",
"payments": [
{
"amount": "10000",
"currency": "USD",
"direction": "payin",
"payment_id": "pmt_abc123",
"status": "settled",
"user": {
"id": "user_abc123",
"external_id": "user_ext_001"
}
}
],
"status": "settled"
}
],
"generated_at": "2024-01-01T00:00:00.000Z",
"invoice_id": "inv_abc123",
"version": 1
},
"status": "settled",
"type": "single_invoice_settlement"
}
}Returns Examples
{
"data": {
"id": "pf_abc123",
"created": "2024-01-01T00:00:00.000Z",
"external_id": "pf_123",
"invoice": {
"id": "inv_abc123",
"external_id": "inv_ext_123"
},
"modified": "2024-01-01T00:00:00.000Z",
"payment_plan": {
"batches": [
{
"batch_id": "payins",
"depends_on": [
"string"
],
"label": "Payins",
"payments": [
{
"amount": "10000",
"currency": "USD",
"direction": "payin",
"payment_id": "pmt_abc123",
"status": "settled",
"user": {
"id": "user_abc123",
"external_id": "user_ext_001"
}
}
],
"status": "settled"
}
],
"generated_at": "2024-01-01T00:00:00.000Z",
"invoice_id": "inv_abc123",
"version": 1
},
"status": "settled",
"type": "single_invoice_settlement"
}
}