Introduction
This documentation aims to provide all the information you need to work with our API.
Authenticating requests
This API is not authenticated.
Endpoints
GET api/user
Example request:
curl --request GET \
--get "https://api-imp-services.impconcursos.com.br/api/user" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api-imp-services.impconcursos.com.br/api/user"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());
Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
As notificações de pagamento chegam até este endpoint
Example request:
curl --request POST \
"https://api-imp-services.impconcursos.com.br/api/shopify/webhooks/orders_paid" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api-imp-services.impconcursos.com.br/api/shopify/webhooks/orders_paid"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
As notificações de pagamento chegam até este endpoint
Example request:
curl --request POST \
"https://api-imp-services.impconcursos.com.br/api/shopify/webhooks/orders_update" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
const url = new URL(
"https://api-imp-services.impconcursos.com.br/api/shopify/webhooks/orders_update"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
POST api/g1/mail/queue
Example request:
curl --request POST \
"https://api-imp-services.impconcursos.com.br/api/g1/mail/queue" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"from\": \"ahauck@example.org\",
\"from_name\": \"illo\",
\"to\": [
\"botsford.selena@example.org\"
],
\"subject\": \"sequi\",
\"body\": \"ad\",
\"cc\": [
\"stiedemann.branson@example.net\"
],
\"bcc\": [
\"hector.schuster@example.org\"
],
\"reply_to\": \"fherman@example.org\",
\"reply_to_name\": \"suscipit\"
}"
const url = new URL(
"https://api-imp-services.impconcursos.com.br/api/g1/mail/queue"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"from": "ahauck@example.org",
"from_name": "illo",
"to": [
"botsford.selena@example.org"
],
"subject": "sequi",
"body": "ad",
"cc": [
"stiedemann.branson@example.net"
],
"bcc": [
"hector.schuster@example.org"
],
"reply_to": "fherman@example.org",
"reply_to_name": "suscipit"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.