Sandbox
Description
The /sandbox-transaction endpoint simulates sending transaction data to a pre-configured URL or an optional URL provided via a query parameter. It generates a sample transaction and sends the data using an HTTP POST request.
Request
HTTP Method
GET
URL
https://api.duopen.com.br/sandbox-transaction
Headers
token
string
Token for authentication*
*Request the authentication token to our support team.
Query Parameters
url
string
No
An optional URL to send the transaction data to. Defaults to the pre-configured sandbox URL.
event
string
Yes
The event type. Allowed values: "categorized", "deleted".
Responses
Successful Response (2xx)
A dictionary with the status and the consent status data.
Example
Error Responses (4xx or 5xx)
An error message indicating the reason for failure.
Example
How to Use
Requests with curl
curlYou can use curl to send a GET request to this endpoint. Below are examples of how to structure your requests.
Request (without optional URL)
Request (with optional URL)
Last updated