Search payments
Changed onSearch for payments, including charges and payouts, using a variety of criteria. This endpoint supports advanced sorting and filtering options.
Request
- Base URLhttps://sandbox.straddle.com
- URLhttps://sandbox.straddle.com/v1/payments
- AuthHTTP bearer
Query parameters
Results page number. Starts at page 1.
Results page size. Max value: 1000
The field to sort the results by.
Payment type.
Search by the type of a charge or payout.
Payment status.
Search by the status of a charge or payout.
Payment id.
Search using the id of a charge or payout.
External id.
Search using the external_id of a charge or payout.
Customer id.
Search using the customer_id of a charge or payout.
Paykey id.
Search using the paykey_id of a charge or payout.
Paykey.
Search using the paykey of a charge or payout.
Minimum amount.
Search using the minimum amount of a chargeorpayout`.
Maximum amount.
Search using a maximum amount of a charge or payout.
Minimum payment date.
Search using the earliest of a charge or payout.
Maximum payment date.
Search using the latest payment_date of a charge or payout.
Minimum created at.
Search using the earliest created_at date of a charge or payout.
Maximum created at.
Search using the latest created_at date of a charge or payout.
Minimum effective at.
Search using the earliest effective_date of a charge or payout.
Maximum effective at.
Search using the latest effective_date of a charge or payout.
Funding id.
Search using the funding_id of a charge or payout.
Search text.
Search using a text string associated with a charge or payout.
The field to sort the results by.
Reason for latest payment status change.
Source of latest payment status change.
Include the metadata for payments in the returned data.
Is the payment a refund of an original charge (only applicable to payouts).
Has the payment been refunded by an associated payout (only applicable to charges).
Is the payment a resubmit of an original payment.
Has the payment been resubmitted.
Filter to payments last updated on or after this timestamp.
Filter to payments last updated on or before this timestamp.
Headers
For use by platforms to specify an account id and set scope of a request.
Optional client generated identifier to trace and debug a request.
Optional client generated identifier to trace and debug a series of requests.
Response
OK
Example response
{
"data": [
{
"description": "Invoice payment for 100 widgets",
"customer_details": {
"name": "Ron Swanson",
"email": "ron@swanson.com",
"phone": "+1234567890"
},
"paykey_details": {
"label": "Bank of America ****1234"
},
"status_details": {
"message": "Payment successfully created and awaiting validation."
}
}
]
}Changes
- breaking
the
//response's property type changed fromobjecttoarrayfor status (media type: text/plain) - breaking
the
//response's property type changed fromobjecttoarrayfor status (media type: application/json) - breaking
the
//response's property type changed fromobjecttoarrayfor status (media type: text/json) - info
added the new optional
queryrequest parameterhas_refund - info
added the new optional
queryrequest parameterhas_resubmit - info
added the new optional
queryrequest parameteris_refund - info
added the new optional
queryrequest parameteris_resubmit - info
added the new optional
queryrequest parametermax_updated_at - info
added the new optional
queryrequest parametermin_updated_at - info
added the new enum value
updated_atto thequeryrequest parameterdefault_sort - info
added the new enum value
updated_atto thequeryrequest parametersort_by - info
added the required property
//to the response with the status (media type: text/plain) - info
added the required property
//to the response with the status (media type: application/json) - info
added the required property
//to the response with the status (media type: text/json) - info
added the required property
//to the response with the status (media type: text/plain) - info
added the required property
//to the response with the status (media type: application/json) - info
added the required property
//to the response with the status (media type: text/json) - info
added the required property
//to the response with the status (media type: text/plain) - info
added the required property
//to the response with the status (media type: application/json) - info
added the required property
//to the response with the status (media type: text/json) - info
added the required property
//to the response with the status (media type: text/plain) - info
added the required property
//to the response with the status (media type: application/json) - info
added the required property
//to the response with the status (media type: text/json)
- breaking
- info
added the optional property
//to the response with the status (media type: text/plain) - info
added the optional property
//to the response with the status (media type: application/json) - info
added the optional property
//to the response with the status (media type: text/json)
- info