Skip to content

Applies a proposal

POST/admin/v1/stores/{store_id}/agent/proposals/{proposal_id}/approve
  • Idempotency-Key supported

Applies a proposal. Only the person who asked can, and only in their session.

Path parameters

  • store_idstringrequired
  • proposal_idstringrequired

Headers

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer is replayed for 24 hours.

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • hashstringrequired

    The hash on the card: what was shown is what happens.

Returns

200 Its new status: applied, stale or failed

Errors

  • 403forbidden
  • 404not_found
  • 409