Register payment order return details

​

Set the return recipient and return wallets for this payment order. This request replaces all previously saved return wallets. userId is the system user id returned by the user endpoints, not the user label. Each wallet must be ACTIVE and registered to that user in the order's account. Include one wallet per chain; the list accepts 1–32 wallets.

Read returns on GET /payment-orders/{id} and pass its revision in If-Match (0 before the first registration). Use a new Idempotency-Key for each replacement; retry the same request with the same key, body, and revision.

Register before or after funding. Cover every observed deposit whose return destination can still change. Recorded destinations stay fixed. The response includes the saved details, new revision, per-deposit return state, and affected transaction hashes. Registration does not send a return immediately.

See Direct payment returns for destination selection, examples, and error recovery.

Path Parameters

Headers

Body

required
application/json
  • Properties: 2

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for put/api/v1/payment-orders/{id}/return-details
curl https://api.bettermoney.com/api/v1/payment-orders/123e4567-e89b-12d3-a456-426614174000/return-details \
  --request PUT \
  --header 'idempotency-key: ' \
  --header 'if-match: ' \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "123e4567-e89b-12d3-a456-426614174000",
  "wallets": [
    {
      "chain": "",
      "address": ""
    }
  ]
}'
{
  "details": {
    "userId": "123e4567-e89b-12d3-a456-426614174000",
    "wallets": [
      {
        "chain": "string",
        "address": "string"
      }
    ],
    "revision": 1,
    "registeredAt": "2026-11-13T22:40:18.090Z",
    "requestId": "string"
  },
  "revision": 0,
  "transfers": [
    {
      "transactionHash": "string",
      "detailsRevision": 0,
      "decisionId": "string",
      "chain": "string",
      "asset": "string",
      "status": "ROUTED",
      "destination": {
        "source": "details",
        "address": "string"
      }
    }
  ],
  "affectedTransfers": [
    "string"
  ]
}