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

# Generate signature hash

`POST /api/merchant/generate-signature`

## Request

- Base URL: `https://api.portone.cloud`
- URL: `https://api.portone.cloud/api/merchant/generate-signature`
- Auth: none declared

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.dev/portone/apis/payment-apis.md) - [All operations](https://skmtc.dev/portone/apis/payment-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/portone/apis/payment-apis/revisions/ba1cf0767f99?raw)
