Payment Sessions

List payment session refunds

Changed on

Returns a paginated list of refunds for a payment session. Each refund includes its status, amount, reason, associated onchain transactions, and timestamps. Only refunds accessible by the current API key are returned.

get/v2/payment-sessions/{paymentSessionId}/refunds

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

paymentSessionId, string required

The ID of the payment session, a UUID prefixed by paymentSession_.

Example:paymentSession_82c879c1-84e1-44ed-a8c2-1ac239cf09ad

The unique identifier of the payment session.

Query parameters

pageSize, integer

The number of resources to return per page.

pageToken, string

The token for the next page of resources, if any.

Response

Successfully listed refunds.

intersection required
object
refunds, Refund[] required

The list of refunds.

Example response

{
  "refunds": [
    {
      "refundId": "refund_82c879c1-84e1-44ed-a8c2-1ac239cf09ad",
      "paymentSessionId": "paymentSession_82c879c1-84e1-44ed-a8c2-1ac239cf09ad",
      "source": {
        "accountId": "account_af2937b0-9846-4fe7-bfe9-ccc22d935114",
        "asset": "usdc"
      },
      "status": "succeeded",
      "amount": "0.50",
      "metadata": {
        "customer_id": "cust_12345",
        "order_reference": "order-67890"
      },
      "reason": "Customer returned the item.",
      "onchainTransactions": [
        {
          "transactionHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
          "network": "base"
        }
      ],
      "createdAt": "2025-06-15T12:40:00.000Z",
      "updatedAt": "2025-06-15T12:41:00.000Z"
    }
  ],
  "nextPageToken": "eyJsYXN0X2lkIjogImFiYzEyMyIsICJ0aW1lc3RhbXAiOiAxNzA3ODIzNzAxfQ=="
}

Changes

    • breaking

      added to the allOf[subschema #1]/refunds/items/source/allOf[#/components/schemas/RefundSource] response property oneOf list for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    3 more changes in this revision