Update Payment Link
PUT {{ BASE_URL }}/v1/corporate/payment/{{slug}}Body Parameters
Property
Data Type
Description
Example
Required
import Axios from 'axios';
// set the api url
const API_URL = `${BASE_URL}/v1/corporate/payment/${slug}`;
// define request body
const data = {
name: "",
feature: "",
type: "fixed",
amount: 1500.00,
redirectUrl: "",
message: "Thank you for your payment",
slug: "",
description: "",
splits: []
}
// make request using axios
Axios({
method: "POST",
url: `${API_URL}`,
headers: {
lg: 'en',
ch: 'web'
Authorization: `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
},
data: data
}).then((resp) => {
console.log(resp)
}).catch((err) => {
console.log(err)
})Last updated