Operations 9
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
GET
/storefront/api/v1/loyalty/get_balance
Get a user's loyalty balance · Get loyalty account balance of the user
#
Ask an LLM
“How many loyalty points does a user have?”
“Can I check a user's loyalty balance with the loyalty provider?”
Tell an agent
Get the loyalty balance for user {external_user_id} on provider {provider}.
Check how many points user {external_user_id} has with reference {provider_reference_id}.
POST
/storefront/api/v1/loyalty/profile
Get a user's loyalty member profile · Get loyalty member profile of the user
#
Ask an LLM
“What's in a user's loyalty member profile?”
“Can I include loyalty info when fetching a member profile?”
Tell an agent
Get the loyalty member profile for session {session_id}.
Fetch the member profile with loyalty info for session {session_id} on integration {integration_id}.
POST
/storefront/api/v1/loyalty/revoke_session
Revoke a user's loyalty session · Revoke a user's session with the loyalty provider
#
Ask an LLM
“How do I log a user out of the loyalty provider?”
“Can I revoke a user's loyalty session?”
Tell an agent destructive · confirm first
Revoke loyalty session {session_id} for integration {integration_id}.
Log session {session_id} out of the loyalty provider.
Ask an LLM
“How do I delete a user's loyalty account?”
“Can a user permanently close their account from the app?”
Tell an agent destructive · confirm first
Delete the account for session {session_id} on integration {integration_id}.
Permanently remove the user account behind session {session_id}.
POST
/storefront/api/v1/loyalty/session
Get a user's loyalty session info · Retrieve a user's session info with the loyalty provider
#
Ask an LLM
“What session info does the loyalty provider hold for a user?”
“Is a user's loyalty session still valid?”
Tell an agent
Get loyalty session info for {session_id}.
Look up session {session_id} with the loyalty provider on integration {integration_id}.
POST
/storefront/api/v1/loyalty/qr_code
Get a user's loyalty QR code · Get QR code for user loyalty account
#
Ask an LLM
“Where do I get a user's loyalty QR code to show at a store?”
“Can I set the size of the loyalty QR code image?”
Tell an agent
Generate a loyalty QR code for session {session} at store {store_id}.
Make a {width}x{height} loyalty QR code for session {session} at store {store_id}.
POST
/storefront/api/v1/loyalty/get_user_rewards
List a user's loyalty rewards at a store · Retrieve user loyalty rewards
#
Ask an LLM
“Which loyalty rewards can a user redeem at a store?”
“Can I see a user's rewards for one particular store?”
Tell an agent
List loyalty rewards for session {session_id} at store {store_id}.
Show the rewards available to session {session_id} at store {store_id}.
POST
/storefront/api/v1/loyalty/store/check_in
Check a user in at a store for points · Check a user in to earn loyalty points for visiting a store location
#
Ask an LLM
“How does a user check in at a store to earn loyalty points?”
“Can I pass the user's location when checking in?”
Tell an agent
Check session {session} in at store {store_id}.
Check in session {session} at store {store_id} from {latitude},{longitude}.
POST
/storefront/api/v1/loyalty/store/redeem
Redeem a loyalty reward in store · Redeem a customer's loyalty reward in store
#
Ask an LLM
“How do I redeem a customer's loyalty reward in store?”
“Can a customer use a loyalty promotion at the counter?”
Tell an agent
Redeem reward {promotion_id} for session {session}.
Apply loyalty reward {promotion_id} in store for session {session}.
Documentation
APIReference
https://developer.doordash.com/en-US/api/ads
APIReference
https://developer.doordash.com/en-US/api/storefront
APIReference
https://developer.doordash.com/en-US/api/drive_v2_parcel
Documentation
https://developer.doordash.com/en-US/docs/drive/how_to/Parcel/error_handling
APIReference
https://developer.doordash.com/en-US/api/drive_refunds
APIReference
https://developer.doordash.com/en-US/api/drive_redelivery
APIReference
https://developer.doordash.com/en-US/api/drive_dasher_feedback
APIReference
https://developer.doordash.com/en-US/api/external_checkout
APIReference
https://developer.doordash.com/en-US/api/marketplace_legacy
Documentation
https://developer.doordash.com/en-US/docs/marketplace/faq/legacy_partner_migration