Authorize Charge
POST {{ BASE_URL }}/v1/corporate/authorize-chargeBody Parameters
Property
Data Type
Description
Example
Required
import Axios from 'axios';
// set the api url
const API_URL = `${BASE_URL}/v1/corporate/authorize-charge`;
// define request body
const data = {
type: "pin",
reference: "TSX64D469F547F04752",
deviceIp: "",
authorize: {
pin: "1111",
otp: "",
phone: "",
birthday: "",
address: {
city: "",
state: "",
zipCode: "",
address: ""
}
}
}
// 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)
})Authorization types
Type
Description
Last updated