72 lines
1.1 KiB
HTTP
Executable File
72 lines
1.1 KiB
HTTP
Executable File
@host = https://magento.local
|
|
@url = {{host}}/rest/V1/report-adapter
|
|
@email = magento_integration@ltsecurityinc.com
|
|
@secret = TestingIntegration!
|
|
|
|
###
|
|
POST {{url}}/internalaccounts HTTP/1.1
|
|
content-type: application/json
|
|
|
|
{
|
|
"email":"{{email}}",
|
|
"secret":"{{secret}}"
|
|
}
|
|
|
|
###
|
|
|
|
POST {{url}}/disableaccounts HTTP/1.1
|
|
content-type: application/json
|
|
|
|
{
|
|
"email":"{{email}}",
|
|
"secret":"{{secret}}",
|
|
"ids":"[1,2]"
|
|
}
|
|
|
|
###
|
|
|
|
POST {{url}}/setoffice HTTP/1.1
|
|
content-type: application/json
|
|
|
|
{
|
|
"email":"{{email}}",
|
|
"secret":"{{secret}}",
|
|
"id":"2",
|
|
"office":"LA"
|
|
}
|
|
|
|
###
|
|
|
|
POST {{url}}/setsales HTTP/1.1
|
|
content-type: application/json
|
|
|
|
{
|
|
"email":"{{email}}",
|
|
"secret":"{{secret}}",
|
|
"id":"2",
|
|
"sales_rep": "Test Sales Rep"
|
|
}
|
|
|
|
###
|
|
|
|
POST {{url}}/confirm HTTP/1.1
|
|
content-type: application/json
|
|
|
|
{
|
|
"email":"{{email}}",
|
|
"secret":"{{secret}}",
|
|
"id":"2",
|
|
"sales_rep": "Test Sales Rep"
|
|
}
|
|
|
|
###
|
|
|
|
POST {{url}}/deny HTTP/1.1
|
|
content-type: application/json
|
|
|
|
{
|
|
"email":"{{email}}",
|
|
"secret":"{{secret}}",
|
|
"id":"2",
|
|
"customer_group": "Enduser"
|
|
} |