Integrating an External Application for Enterprise
IMPORTANT: For legibility the "\" at the end of each line were removed
curl -v
-X GET $URL
--header "x-api-key: ${BEARER}"
--header 'Content-Type: application/json'
--data '{
"method":"createCustomer",
"params": {
"id":"ABC",
"name":"ABC Company",
"admin": {
"email":"test3@example.com",
"phone":"111111111",
"displayName": "Isa Aswath"
}
}
}'
STATUS: 200
BODY:
{
"name":"ABC Company",
"partner":0,
"createdAt":1684313717,
"id":1,
"isActive":true,
"admin":{"email":"test3@example.com"},
"remoteId":"ABC"
}
curl -v
-X GET $URL
--header "x-api-key: ${BEARER}"
--header 'Content-Type: application/json'
--data '{
"method":"createFirstOrder",
"params": {
"customer":"ABC",
"id":"REMOTEORDER1",
"product":"oo-lite",
"licenses":20,
"duration":"monthly"
}
}'
curl -v
-X GET $URL
--header "x-api-key: ${BEARER}"
--header 'Content-Type: application/json'
--data '{
"method":"createRenewalOrder",
"params": {
"parent":"REMOTEORDER1",
"id":"REMOTEORDER2"
}
}'
curl -v
-X GET $URL
--header "x-api-key: ${BEARER}"
--header 'Content-Type: application/json'
--data '{
"method":"cancelOrder",
"params":{
"id":"REMOTEORDER1"
}
}'
curl -v
-X GET $URL
--header "x-api-key: ${BEARER}"
--header 'Content-Type: application/json'
--data '{
"method":"suspendOrder",
"params":{
"id":"REMOTEORDER1"
}
}'