Send Catering Offer
Send email with a catering offer.
Parameters
idpath integerRequired
Send email with a catering offer by specific catering
id
.
{
const res = await fetch(`${BASE_URL}/api/v1/caterings/${id}/send`, {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)});
const data = await res.json();
}
Accept Catering Offer
Accept a catering offer.
Parameters
data[type]formData stringRequired
Provide Catering
type
. Current selection is only caterings.data[attributes][auth_token]formData stringRequired
{
const res = await fetch(`${BASE_URL}/api/v1/caterings/accept`, {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)});
const data = await res.json();
}
Reject Catering Offer
Reject a catering offer.
Parameters
data[type]formData stringRequired
Provide Catering
type
. Current selection is only caterings.data[attributes][auth_token]formData stringRequired
{
const res = await fetch(`${BASE_URL}/api/v1/caterings/reject`, {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)});
const data = await res.json();
}