Send Catering Offer

Send email with a catering offer.

Parameters
  • idpath integerRequired

    Send email with a catering offer by specific catering id.

PATCH/api/v1/caterings/{id}/send

  {
    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();
  }

RESPONSE


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

PATCH/api/v1/caterings/accept

  {
    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();
  }

RESPONSE


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

PATCH/api/v1/caterings/reject

  {
    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();
  }

RESPONSE