无关联退款
按 ID 检索无参考退款
通过请求路径中提供的 id 检索现有无参考退款的详情。
GET
/
v1
/
unreferenced-refunds
/
{unreferenced_refund_id}
curl --request GET \
--url 'https://api.y.uno/v1/unreferenced-refunds/d290f1ee-6c54-4b01-90e6-d701748f0851?include_raw_responses=true' \
--header 'public-api-key: YOUR_PUBLIC_API_KEY' \
--header 'private-secret-key: YOUR_PRIVATE_SECRET_KEY' \
--header 'Accept: application/json'
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"account_id": "9f6e0a4c-1d2b-4e3f-8a9b-1c2d3e4f5a6b",
"merchant_order_id": "REFUND-2026-05-14-001",
"country": "US",
"amount": { "value": 25.00, "currency": "USD" },
"status": "SUCCEEDED",
"sub_status": "SUCCEEDED",
"payment_method": {
"vaulted_token": "550e8400-e29b-41d4-a716-446655440000",
"detail": {
"card": {
"card_data": { "brand": "VISA", "last_four": "1111", "type": "CREDIT" }
}
}
},
"customer_payer": {
"id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
},
"provider": {
"name": "STRIPE",
"type": "PSP",
"reference": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
"category": "APPROVED",
"raw_response_code": "succeeded",
"raw_response_message": "Refund settled",
"raw_request": {
"amount": 2500,
"currency": "usd",
"payment_method": "pm_1OqQz92eZvKYlo2C7Kx9Vbnm",
"metadata": { "merchant_order_id": "REFUND-2026-05-14-001" }
},
"raw_response": {
"id": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
"object": "refund",
"amount": 2500,
"currency": "usd",
"status": "succeeded"
}
},
"created_at": "2026-05-14T11:47:13.482Z",
"updated_at": "2026-05-14T11:47:18.030Z"
}
{
"code": "UNREFERENCED_REFUND_NOT_FOUND",
"messages": [
"No unreferenced refund with the provided id exists on this account."
]
}
此请求用于根据无参考退款的
id 检索其详情,该值需要在请求路径中提供。
服务提供商原始数据
provider 对象在两个字段中携带与服务提供商之间未经改动的交互数据。这两个字段的结构由服务提供商而不是 Yuno 定义,因此会因服务提供商和操作而异。两个字段分别控制:| 字段 | 内容 | 获取方式 |
|---|---|---|
raw_request | Yuno 发送给服务提供商的确切 payload。 | 需要您的账户已启用服务提供商原始数据。如需申请访问权限,请联系您的 Yuno 客户经理。不受 include_raw_responses 影响。 |
raw_response | 服务提供商返回的完整 payload。 | 在此请求中传入 include_raw_responses=true。 |
raw_response_code 和 raw_response_message 是服务提供商响应的摘要,始终会返回,与前述两个字段无关。当为
true 时,响应 payload 中的 provider 对象将包含 raw_response,即服务提供商返回的完整 payload。无论此参数如何设置,raw_response_code 和 raw_response_message 摘要字段始终会返回。curl --request GET \
--url 'https://api.y.uno/v1/unreferenced-refunds/d290f1ee-6c54-4b01-90e6-d701748f0851?include_raw_responses=true' \
--header 'public-api-key: YOUR_PUBLIC_API_KEY' \
--header 'private-secret-key: YOUR_PRIVATE_SECRET_KEY' \
--header 'Accept: application/json'
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"account_id": "9f6e0a4c-1d2b-4e3f-8a9b-1c2d3e4f5a6b",
"merchant_order_id": "REFUND-2026-05-14-001",
"country": "US",
"amount": { "value": 25.00, "currency": "USD" },
"status": "SUCCEEDED",
"sub_status": "SUCCEEDED",
"payment_method": {
"vaulted_token": "550e8400-e29b-41d4-a716-446655440000",
"detail": {
"card": {
"card_data": { "brand": "VISA", "last_four": "1111", "type": "CREDIT" }
}
}
},
"customer_payer": {
"id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
},
"provider": {
"name": "STRIPE",
"type": "PSP",
"reference": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
"category": "APPROVED",
"raw_response_code": "succeeded",
"raw_response_message": "Refund settled",
"raw_request": {
"amount": 2500,
"currency": "usd",
"payment_method": "pm_1OqQz92eZvKYlo2C7Kx9Vbnm",
"metadata": { "merchant_order_id": "REFUND-2026-05-14-001" }
},
"raw_response": {
"id": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
"object": "refund",
"amount": 2500,
"currency": "usd",
"status": "succeeded"
}
},
"created_at": "2026-05-14T11:47:13.482Z",
"updated_at": "2026-05-14T11:47:18.030Z"
}
{
"code": "UNREFERENCED_REFUND_NOT_FOUND",
"messages": [
"No unreferenced refund with the provided id exists on this account."
]
}
此页面对您有帮助吗?
⌘I
curl --request GET \
--url 'https://api.y.uno/v1/unreferenced-refunds/d290f1ee-6c54-4b01-90e6-d701748f0851?include_raw_responses=true' \
--header 'public-api-key: YOUR_PUBLIC_API_KEY' \
--header 'private-secret-key: YOUR_PRIVATE_SECRET_KEY' \
--header 'Accept: application/json'
{
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"account_id": "9f6e0a4c-1d2b-4e3f-8a9b-1c2d3e4f5a6b",
"merchant_order_id": "REFUND-2026-05-14-001",
"country": "US",
"amount": { "value": 25.00, "currency": "USD" },
"status": "SUCCEEDED",
"sub_status": "SUCCEEDED",
"payment_method": {
"vaulted_token": "550e8400-e29b-41d4-a716-446655440000",
"detail": {
"card": {
"card_data": { "brand": "VISA", "last_four": "1111", "type": "CREDIT" }
}
}
},
"customer_payer": {
"id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
},
"provider": {
"name": "STRIPE",
"type": "PSP",
"reference": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
"category": "APPROVED",
"raw_response_code": "succeeded",
"raw_response_message": "Refund settled",
"raw_request": {
"amount": 2500,
"currency": "usd",
"payment_method": "pm_1OqQz92eZvKYlo2C7Kx9Vbnm",
"metadata": { "merchant_order_id": "REFUND-2026-05-14-001" }
},
"raw_response": {
"id": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
"object": "refund",
"amount": 2500,
"currency": "usd",
"status": "succeeded"
}
},
"created_at": "2026-05-14T11:47:13.482Z",
"updated_at": "2026-05-14T11:47:18.030Z"
}
{
"code": "UNREFERENCED_REFUND_NOT_FOUND",
"messages": [
"No unreferenced refund with the provided id exists on this account."
]
}