WalletD developers
Payments and refunds

Fetch a payment

Fetches one payment with its captured and refunded totals, its fee, and any marketplace commission.

GET/v1/payments/{paymentId}

Fetches one payment with its captured and refunded totals, its fee, and any marketplace commission. Requires payments:read; a user token may read only payments it made (forbidden, 403) and an unknown id gives payment_not_found (404).

Authorization

bearerAuth
AuthorizationBearer <token>

A tenant API key (sk_{env}_{id}_{secret}), a wallet user token, or an IdP access token. Which principal the credential resolves to decides the scopes it carries; see the authentication guide.

In: header

Path Parameters

paymentId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/payments/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "status": "requires_capture",  "mode": "string",  "payer_user_id": "295f0b28-ae85-4d57-93b3-e87e18f208b4",  "merchant_id": "500924a8-3f5e-4c00-beb8-2efcde988aea",  "amount": 0,  "captured_amount": 0,  "refunded_amount": 0,  "fee": 0,  "commission": 0,  "hold_expires_at": "2019-08-24T14:15:22Z",  "line_items": [    {      "name": "string",      "amount": 0    }  ],  "created_at": "2019-08-24T14:15:22Z"}