- Get API keys for your public sandbox.
- View a transaction’s history.
- Manage your webhooks.
Get API keys for your public sandbox
Use API keys to set up authorization credentials that allow you to send requests to your public sandbox. For more information, see Authentication in the Core API Reference. To access your credentials and set up your public sandbox:- Select the Public Sandbox button in the top navigation bar and sign in to your account.
- Your API Key information is displayed here on the API Keys tab.
View a transaction’s history
You can view the lifecycle of a card token in your public sandbox using the interactive transaction timeline tool. All public sandbox accounts include access to the Transaction Timeline. The transaction timeline helps newcomers to the Marqeta platform quickly understand the role played by transaction flows in their integration, as well as in the broader payments space. It demonstrates line-by-line how individual transactions impact each other, and how they affect the account balance. To view a card token’s transaction history using the Transaction Timeline:- Simulate at least one transaction in your public sandbox.
- Select the Public Sandbox button in the top navigation bar and sign in to your account.
- Select the Transaction timeline tab in the side panel.
- From the dropdown, select one of your card tokens from the list of existing active cards. The Transaction timeline tool automatically builds and displays a history of all the transactions completed on the selected card
New transactions are added to the timeline as they occur in your sandbox. Content in the transaction timeline is not cleared when you log out of your dashboard and it never expires
- To view available and ledger balances for a transaction event, select the event in the event’s table.
- You can filter on transactions and copy them to your clipboard by using the action buttons available in each event row.
Manage your webhooks
Webhooks are real-time notifications to keep you informed of specific events that occur within your public sandbox or integration. For example, you could create a webhook to sendstate.activated events to your application’s webhook URL that would inform your cardholder when a card has been activated.
You can manage webhooks in your sandbox from the Webhooks page. For information about working with webhooks in production, see About Webhooks.
With your public sandbox, you can configure and manage up to five webhooks.
Add a webhook in sandbox
- Select the Public Sandbox button in the top navigation bar and sign in to your account.
- Select the Webhooks tab in the side panel.
- Select Add webhook.
- In the Webhook details page, fill out the details for the webhook you wish to set up:
- In the Event listeners tab, select the events you would like to webhook to listen for.
- Select Save details to save your webhook configuration.
Test a webhook in sandbox
To test your webhook do the following:- Select the Public Sandbox button in the top navigation bar and sign in to your account.
- Select the Webhooks tab in the side panel.
- Select the webhook you would like to test, this will open the webhook details page.
- Select Send test event and check that a webhook event occurred on your webhook endpoint.
Disable a webhook in sandbox
You have the option of disabling an activated webhook that you do not want to use; you can always reactivate it later on if necessary. It is not currently possible to delete a webhook once it has been created.- Select the Public Sandbox button in the top navigation bar and sign in to your account.
- Select the Webhooks tab in the side panel.
- In the list of webhooks, select the dropdown in the table’s State column. Select Disable.
- Confirm you want to disable the webhook by selecting Disable on the popup notification.
To reactivate a disabled webhook
If you have previously disabled a webhook, you must reactivate it before the Marqeta platform will resume sending event notifications to the specified URL.- Select the Public Sandbox button in the top navigation bar and sign in to your account.
- Select the Webhooks tab in the side panel.
- In the list of webhooks, select the dropdown in the table’s State column. Select Reactivate.
- Confirm you want to disable the webhook by selecting Reactivate on the popup notification.
Update a webhook in sandbox
In order order to make changes to an existing webhook do the following:- Select the Public Sandbox**** button in the top navigation bar and sign in to your account.
- Select the Webhooks tab in the side panel.
- Select the webhook you want to update, this will open the Webhook details page.
- Select Save details to save your webhook configuration.
Manage event listeners
You can manage which Marqeta events you want your webhooks to listen to. You can add as many or as few events as you need to a webhook, then fine-tune your webhooks as your development progresses. For example, when starting out, you might want your application to listen for all event types. Later on, you might subscribe only to specific transaction events such asauthorization.clearing and authorization.atm.withdrawal
- Select the Public Sandbox button in the top navigation bar and sign in to your account.
- Select the Webhooks tab in the side panel.
- Select the webhook you want to update event listeners for, this will open the Webhook details page.
- Select the Event listeners tab. A searchable, hierarchical list of all events you can listen on is displayed.
- Select the Marqeta events you want this webhook to listen for. Select Save selected events.