Create Organisation Purchase Info
This API endpoint allows creating a purchase information record for an organisation.

Authorization: Bearer YOUR_TOKEN


Expected Behavior:


  • On success, the system will create the purchase info and return a confirmation message.
  • If the request is unauthorized or invalid, the system will respond with an error message.
JavaScript
Response codes
const axios = require('axios');

const url = "https://customer-cmd.api.pinghome.io/v1/organisation/purchase-info";

axios.post(url, {}, {
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json'
  }
})
.then(response => {
  console.log(response.data);
})
.catch(error => {
  console.error(error);
});
ResponseThis section is used to view the possible HTTP response codes returned by the API. These codes indicate the status of a request, such as 201 (Created), 401 (Unauthorized), 409 (Conflict), or 422 (Unprocessable Entity).