additionalfees_payload = {
"id": "addtional_fee_3",
"fee": {
"fixedRate": 5,
},
"memo": "테스트 추가수수료",
"vatPayer": "PARTNER"
}
headers = {
'Authorization': f'PortOne ${PORTONE_API_SECRET}',
'Content-Type': 'application/json'
}
fee_A = requests.post('https://api.portone.io/platform/additional-fee-policies', headers=headers, json=additionalfees_payload)
const axios = require("axios");
const additionalfees_payload = {
id: "addtional_fee_3", //추가 수수료 아이디
fee: {
fixedRate: 5, // 5%분담
},
memo: "테스트 추가수수료",
vatPayer: "PARTNER",
};
axios
.post(
"https://api.portone.io/platform/additional-fee-policies",
additionalfees_payload,
{
headers: {
"Content-Type": "application/json",
Authorization: `PortOne ${PORTONE_API_SECRET}`,
},
},
)
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.error("Error:", error.response.data);
});