---
title: "Generate signature hash"
method: POST
path: "/api/merchant/generate-signature"
tags: ["Payment APIs"]
---

# Generate signature hash

`POST /api/merchant/generate-signature`

This endpoint allows you to generate a signature for a merchant transaction
The response will include the generated signature for the provided transaction details.

## Headers

- `Authorization` string
- `X-Portone-Client-Key` string
- `Content-Type` string

## Request body

- object
  - `portone_key` string, required — The merchant's Portone API key.
  - `currency` string, required — The currency of the transaction.
  - `amount` number, double, required — The amount of the transaction.
  - `merchant_order_id` string, required — The unique merchant order reference generated by the merchant.
  - `success_url` string, required — The URL to redirect to upon successful transaction.
  - `failure_url` string, required — The URL to redirect to upon failed transaction.

## Response `200`

OK

- object
  - `content` SignatureHashContent — The JSON object containing the signature hash information.
    - `signature` string — The signature hash.
  - `message` string — The description of the API request execution result
  - `status_code` string — The status code of API response
  - `status_reason` string — The status reason of API response

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/portone/apis/payment-apis.md) · [All operations](https://skmtc.net/portone/apis/payment-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portone/payment-apis/versions/f3ccea652555/schema)
