POST
/
v1
/
orders
/
{id}
/
update_expiration
curl --request POST \
  --url https://api.ongoody.com/v1/orders/{id}/update_expiration \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "expiration": "2022-02-01T00:00:00+0000"
}'
{
  "id": "3a1d4e77-ef85-4826-b9cd-04d8fc446899",
  "status": "created",
  "individual_gift_link": "https://gifts.ongoody.com/gift/LPGIWSSWLVC00ADWGEGTTCUZ",
  "recipient_first_name": "Michael",
  "recipient_last_name": "Franci",
  "recipient_email": "michael@ongoody.com",
  "card_id": "af0aff40-e4ce-46d8-949d-ce896c37487a",
  "message": "Test Message",
  "thank_you_note": null,
  "view_count_recipient": 0,
  "is_swapped": false,
  "order_batch_id": "3a3e0097-bd74-42bb-a6f6-fd331983a575",
  "expires_at": "2022-02-01T00:00:00Z",
  "cart": {
    "id": "9d43e055-0160-4fef-b4f3-36feb0adc4b1",
    "items": [
      {
        "id": "ce221d75-7536-4749-bbcc-379221e42793",
        "quantity": 1,
        "product": {
          "id": "24f4ebb8-abb1-4167-ad3f-203126d08340",
          "name": "Cookies",
          "brand": {
            "id": "ad1394ec-531b-48c3-bb26-7986124fa9cc",
            "name": "Cookie Company"
          }
        }
      }
    ]
  },
  "shipments": [],
  "amounts": {
    "amount_product": 2000,
    "amount_shipping": 500,
    "amount_processing_fee": 0,
    "amount_pre_tax_total": 2500,
    "amount_tax": null,
    "amount_total": null,
    "amount_global_relay_cost": null
  },
  "sender": {
    "first_name": "Test",
    "last_name": "User",
    "email": "15555335191@test.ongoody.com"
  },
  "workspace_id": "50c4fa01-1beb-40b7-9ad6-a3e0a23bbec4",
  "workspace_name": "Test Team",
  "original_cart": null,
  "original_amounts": null,
  "reference_id": "QRE5FHXLVXOPBHSMMOYXS6OB",
  "payment_link": null
}

Authorizations

Authorization
string
header
required

Your Goody API key.

Path Parameters

id
string
required

id

Body

application/json

Response

200
application/json

Expiration updated

An individual order contains the gift link to be sent to the recipient (if applicable) and other information about the order.