---
title: "Update payment method"
method: POST
path: "/api/v1.4/direct/payments/intents/{intent_id}/update-method/"
tags: ["v1.1"]
---

# Update payment method

`POST /api/v1.4/direct/payments/intents/{intent_id}/update-method/`

## Request

- Base URL: `https://web.moneyhash.io`
- URL: `https://web.moneyhash.io/api/v1.4/direct/payments/intents/{intent_id}/update-method/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in query parameter `access_token`

Update Payment Intent Method

## Path parameters

- `intent_id` string, required

## Request body

- PaymentMethod
  - `payment_method` string: optional: payment method name to be selected in the intent
  - `reset_intent` boolean: optional: determine if we going to reset the intent or not
  - `method_id` string: optional: payin method id to be selected in the intent
  - `partial_wallet` boolean
  - `loyalty` LoyaltyData
    - `provider_id` string, required
    - `identifier` string, required
    - `identifier_type` 'PHONE_NUMBER' | 'NATIONAL_ID' | 'EMAIL': * `PHONE_NUMBER` - PHONE_NUMBER * `NATIONAL_ID` - NATIONAL_ID * `EMAIL` - EMAIL

## Response `200`

- DirectIntentNativeForm
  - `intent` object, required
  - `selected_method` string, required
  - `transaction` object, nullable, required
  - `state` string, required
  - `state_details` object, required
  - `customer` object, nullable, required
  - `tokenized_card_token` object, nullable, required
  - `payment_status` string, required

## Other responses

- `400`
- `401`
- `404`

---

[API](https://skmtc.dev/moneyhash/apis/moneyhash-api.md) - [All operations](https://skmtc.dev/moneyhash/apis/moneyhash-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moneyhash/apis/moneyhash-api/revisions/4b67c1cef57d?raw)
