---
title: "Get/Update payment estimate"
method: POST
path: "/v1/payment/{id}/update-merchant-estimate"
tags: ["Payments"]
---

# Get/Update payment estimate

`POST /v1/payment/{id}/update-merchant-estimate`

## Request

- Base URL: `https://api.nowpayments.io`
- URL: `https://api.nowpayments.io/v1/payment/{id}/update-merchant-estimate`
- Auth: none declared
- TypeScript: <https://skmtc.dev/nowpayments/apis/np-open-api/docs/v1/payment/:id/update-merchant-estimate/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint is required to get the current estimate on the payment and update the current estimate.  
Please note! Calling this estimate before `expiration_estimate_date` will return the current estimate, it won’t be updated.

`:id` - payment ID, for which you want to get the estimate

Response:  
`id` - payment ID  
`token_id` - id of api key used to create this payment (please discard this parameter)  
`pay_amount` - payment estimate, the exact amount the user will have to send to complete the payment  
`expiration_estimate_date` - expiration date of this estimate

## Headers

- `x-api-key` string

## Response `200`

200

- object
  - `id` string
  - `token_id` string
  - `pay_amount` number
  - `expiration_estimate_date` string, date-time

---

[API](https://skmtc.dev/nowpayments/apis/np-open-api.md) - [All operations](https://skmtc.dev/nowpayments/apis/np-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nowpayments/apis/np-open-api/revisions/32c28317af15?raw)
