Retrieve Payment
Retrieves a payment, including its status, amount, and transaction details
/payments/{paymentId}This endpoint retrieves a single Stedi Treasury payment, including its status, amount, transaction details, and the date and time it reached each status.
- Call this endpoint with the
paymentIdof the payment you want to retrieve. You can get the payment ID from theidproperty in List Payments responses. - The endpoint returns the payment's details.
A Stedi API Key for authentication.
Path Parameters
^[a-z]{3,5}_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$The unique identifier for the payment you want to retrieve, in the format pay_ followed by a UUID. You can retrieve payment IDs with the List Payments endpoint.
Response
^-?\d+\.\d{2}$The payment amount as a decimal string, such as 1250.00.
The date and time the payment reached each status.
Show attributes
^[a-z]{3,5}_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$The identifier of the billing entity that received this payment.
The name of the company that sent the payment, when available.
The date and time Stedi created the payment record. For example, 2026-04-04T12:00:00Z.
The payment description, such as HCCLAIMPMT, when available.
^[a-z]{3,5}_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$The payment's identifier, in the format pay_ followed by a UUID. For example, pay_9f8e7d6c-5b4a-4c3d-8e2f-1a0b9c8d7e6f.
The payer that sent the payment. Absent for check payments, and when Stedi can't match the payment to a single payer.
Show attributes
The number of payouts linked to this payment, across all payout statuses. Use ListPayouts with paymentId to retrieve them. Payments that haven't settled and VERIFICATION payments have 0. This is 0 until the payment's payout is created, so a SETTLED payment can briefly have 0.
The reassociation trace number. It matches the trace number in the payment's 835 Electronic Remittance Advice (ERA), so you can use it to match the payment to its ERA. For check payments, this is the check number.
In the ERA, the trace number is in:
- JSON:
transactions[].paymentAndRemitReassociationDetails.checkOrEFTTraceNumber - X12 EDI:
TRN02(Check or EFT Trace Number)
The reassociation trace segment, as it appears in the payment's 835 ERA, such as TRN*1*REASSO456*1234567890~. Absent for check payments.
In the ERA, the segment is in:
- JSON:
transactions[].paymentAndRemitReassociationDetails - X12 EDI:
TRN(Reassociation Trace Number)
The payment's status. Can be:
PENDING: Your Stedi Treasury account received the inbound ACH transfer or check deposit and is waiting for the funds to settle.SETTLED: Your Stedi Treasury account received the inbound transfer or check deposit, and the funds are available.FAILED: The bank returned, rejected, or canceled the transfer. This status can occur at any point in the payment lifecycle.
FAILEDPENDINGSETTLEDTransaction details for this payment. Contains exactly one of the following:
ach: Details for an Electronic Funds Transfer (EFT), which payers send through the Automated Clearing House (ACH) network.check: Details for a check deposit.
Details for an Electronic Funds Transfer (EFT), which payers send through the Automated Clearing House (ACH) network.
Show attributes
Whether the transaction is a payment (PAYMENT) or a bank verification transaction (VERIFICATION).
PAYMENTVERIFICATIONThe date and time Stedi last updated the payment record. For example, 2026-04-04T14:30:00Z.
curl --request GET \ --url "https://treasury.us.stedi.com/2025-11-01/payments/{paymentId}" \ --header "Authorization: <api_key>"{
"amount": "1250.00",
"audit": {
"pendingAt": "2026-04-04T12:00:00Z",
"settledAt": "2026-04-04T12:05:00Z"
},
"billingEntityId": "bil_c2b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c53",
"companyName": "AETNA HEALTH INC",
"createdAt": "2026-04-04T12:00:00Z",
"description": "HCCLAIMPMT",
"id": "pay_9f8e7d6c-5b4a-4c3d-8e2f-1a0b9c8d7e6f",
"payer": {
"name": "Aetna",
"stediPayerId": "HPQRS"
},
"payoutCount": 1,
"reassociationTraceNumber": "REASSO456",
"reassociationTraceSegment": "TRN*1*REASSO456*1234567890~",
"status": "SETTLED",
"transaction": {
"ach": {
"acceptance": {
"acceptedAt": "2026-04-04T12:05:00Z"
},
"automaticallyResolvesAt": "2026-04-04T14:30:00Z",
"effectiveDate": "2026-04-04",
"settlement": {
"expectedFundsSettlementAt": "2026-04-04T14:30:00Z",
"schedule": "SAME_DAY"
},
"traceNumber": "021000021234567"
}
},
"transactionPurpose": "PAYMENT",
"updatedAt": "2026-04-04T12:06:00Z"
}- Request
- Path parameters
- paymentId
- Response
- 200GetPayment
- amount
- audit
- billingEntityId
- companyName
- createdAt
- description
- id
- payer
- payoutCount
- reassociationTraceNumber
- reassociationTraceSegment
- status
- transaction
- Variant 1ach
- ach
- Variant 2check
- transactionPurpose
- updatedAt
- 400ValidationException
- 401AuthenticationFailedException
- 403ForbiddenException
- 404NotFoundException
- 413ContentTooLargeException
- 429TooManyRequestsException
- 500InternalServerException