Skip to main content
PATCH
/
merchant
/
price
/
edit
{
  "success": false,
  "error": {
    "status": 404,
    "code": "PRICE_NOT_FOUND",
    "message": "Price not found"
  },
  "data": null
}
Edit an existing price.
priceId
string
required
Price ID to edit
amount
string
Updated price amount
currency
string
Updated currency code
active
boolean
Whether the price is active
success
boolean
Indicates if the request was successful
data
object
Updated price data

Example Request

curl -X PATCH https://api.transaction.gg/merchant/price/edit \
  -H "Authorization: Bearer jwt_token" \
  -H "Content-Type: application/json" \
  -d '{
    "priceId": "price_i62wKFQ8sGnLxQ5G",
    "amount": "39.99",
    "currency": "EUR",
    "active": true
  }'

Example Response

{
  "success": true,
  "data": {
    "id": "price_i62wKFQ8sGnLxQ5G",
    "amount": "39.99",
    "currency": "EUR",
    "active": true,
    "updatedAt": "2024-01-01T00:00:00Z"
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 404,
    "code": "PRICE_NOT_FOUND",
    "message": "Price not found"
  },
  "data": null
}