KashierDevelopersKashier Developers

Update payment page

curl -X PUT "https://test-api.kashier.io/v2/paymentPage/string" \  -H "Content-Type: application/json" \  -d '{    "pageName": "Updated Page Name",    "description": "Updated description",    "currency": "EGP",    "paymentObject": {      "isFixed": true,      "amount": "100.00"    },    "isMobileRequired": true,    "isEmailRequired": false  }'
{  "body": {    "_id": "507f1f77bcf86cd799439011",    "linkId": "PP-XXXXXXXXXX",    "merchantId": "MID-XXXX-XXXX",    "pageName": "Updated Page Name",    "description": "Updated description",    "currency": "EGP",    "paymentObject": {      "isFixed": true,      "amount": 100    }  },  "message": "success"}

Updates a payment page. Send only the fields you want to change; anything you omit keeps its current value. Unpublishing a page (isPublished: false) takes it offline without deleting it.

Authorization

secretKey
Authorization<token>

Merchant secret key used to identify the merchant, obtained from Kashier's dashboard. Pass the raw secret key value in the Authorization header (NOT a "Bearer" token).

In: header

Path Parameters

id*string

The payment page identifier.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

The fields to change on an existing payment page. Omitted fields are left as they are.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

PUT
/v2/paymentPage/{id}