Interacting with the organization warehouse
The organization warehouse is a place where a credit owner can put credits they wish to sell and give apps / marketplace access to reserver and transfer those credits.
Last updated
The organization warehouse is a place where a credit owner can put credits they wish to sell and give apps / marketplace access to reserver and transfer those credits.
Last updated
await axios.post(
`${env.ICR_API_URL}/organizations/${input.organizationId}/warehouse/inventory/reservations`,
{
creditId: input.creditId,
organizationId: input.organizationId,
amount: input.amount,
},
{
headers: {
Authorization: `Bearer ${accessToken.token}`,
"x-icr-api-version": "2023-06-16",
},
},
) await axios.post(
`${env.ICR_API_URL}/organizations/${input.organizationId}/warehouse/inventory/reservations/${input.reservationId}/${input.action}`,
{
receiverId: input.receiverId,
retirementData: input.retirementData,
},
{
headers: {
Authorization: `Bearer ${accessToken.token}`,
"x-icr-api-version": "2023-06-16",
},
},
);