RW Telecom 2.0
Status | Description |
---|---|
200 OK | The request has succeeded |
201 Created | The request has been fulfilled and resulted in a new resource being created |
304 Not Modified | If the client has performed a conditional GET request and access is allowed, but the document has not been modified |
400 Bad Request | The request could not be understood by the server due to malformed syntax |
401 Unauthorized | The request requires user authentication |
403 Forbidden | The server understood the request, but is refusing to fulfill it |
404 Not Found | The server has not found anything matching the Request-URI |
Features related to authentication
Performs a user’s authentication in Realwave.
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
Responses
Body
POST /authentications HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
{
"login": "poc.chatr1@gmail.com",
"password": "123456"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"expires": "Thu Aug 24 07:52:12 EST 2017",
"access_token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJwb2MuY2hhdHIxQGdtYWlsLmNvbSIsImV4cCI6MTUwMzU3OTEzMiwianRpIjoiMzAzIn0.rCBPhHltkZtypksH5S0Fie-y7SJkvjA0iQxqNW-VxZ4i0qetH_GW3pjnrLWgVsBFhVbexNSCayEP7fQ-t7tYvQ",
"action": "LINE_DIGITAL"
}
When a user forgets their access password, this feature must be used to receive a validation token for password change.
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
Responses
POST /customers/forgot-password HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
{
"email": "poc.chatr1@gmail.com"
}
HTTP/1.1 204 No Content
Validate the access token to show the screen of change password
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
Responses
Body
Body
POST /reset-password/validate HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
{
"email": "poc.chatr1@gmail.com",
"token": "DJ8LQ4"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"customerId": "a2d86ca2-a20d-4354-9dc0-f1e7ab1f3a48"
}
POST /reset-password/validate HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
{
"email": "poc.chatr1@gmail.com",
"token": "dj8lq4"
}
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
{
"code": "FORGOT_PASSWORD_INVALID_TOKEN",
"detail": null,
"title": "Failed to validate token",
"message": "The token entered is not valid"
}
Performs the exchange of the password through the generated token
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
Responses
Body
PUT /customers/reset-password/change HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
{
"confirmation": "162528",
"email": "frfreitas.felipe@gmail.com",
"password": "162528",
"token": "DJ8LQ4"
}
HTTP/1.1 200 OK
PUT /customers/reset-password/change HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
{
"confirmation": "162528",
"email": "frfreitas.felipe@gmail.com",
"password": "162528",
"token": "dj8lq4"
}
HTTP/1.1 422 Unprocessable Entity
Content-Type: application/json
{
"code": "FORGOT_PASSWORD_INVALID_TOKEN",
"detail": null,
"title": "Failed to validate token",
"message": "The token entered is not valid"
}
{code}
Request headers
Authentication key of application
Realwave application ID (Segment)
Responses
Body
GET /customers HTTP/1.1
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "67e68d3d-2c14-4d1d-aa97-f01c8e11f94b",
"personType": "F",
"country": "Brasil",
"fullName": "Poc Chatr 1",
"nickname": "Chatr 1 ",
"gender": "M",
"birthDate": "1979-12-10",
"createdAt": "2017-07-07",
"status": "ACTIVE",
"documents": [
{
"id": 47433,
"number": "21470673851",
"docType": "CPF",
"createdAt": "2017-07-07T18:10:03.865"
}
],
"addresses": [
{
"id": "49050",
"name": "PRINCIPAL",
"zipCode": "38405-000",
"number": "100",
"complement": "",
"street": "Rua x",
"district": "Centro",
"city": "Uberlândia",
"state": "MG",
"country": "BRASIL"
}
],
"contacts": [
{
"id": 110417,
"contactType": "EMAIL",
"createdAt": "2017-07-07",
"status": "ACTIVE",
"content": {
"name": "MAIN",
"email": "chatr1@gmail.com"
}
}
],
"customFields": {
"hobbies": null,
"jobCode": null,
"newsletter": true,
"acceptTerms": true,
"incomeRange": 1,
"maritalStatus": 1,
"economicActivity": 1
},
"city": "",
"civilState": "",
"occupation": "",
"motherName": "",
"fatherName": "",
"numberOfChildren": 1,
"income": {
"currency": "BRL",
"amount": 1
},
"lineStatus": "ACTIVE"
}
Save the cutomer data
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
POST /customers HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
{
"customFields": {
"credential": {
"password": "123456",
"username": "chatrpoc1@gmail.com"
},
"economicActivity": 1,
"incomeRange": 1,
"maritalStatus": 1,
"newsletter": true
},
"documents": [
{
"docType": "CPF",
"number": "22479710831"
}
],
"nickname": "Client Chatr 1"
}
HTTP/1.1 200 OK
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
Responses
Body
PUT /customers HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
{
"country": "Brasil",
"customFields": {
"economicActivity": 2,
"hobbies": "cinema",
"incomeRange": 4,
"maritalStatus": 1
},
"documents": [
{
"docType": "CPF",
"number": "07573511744"
}
],
"fullName": "Client Chatr 1",
"gender": "M",
"id": "d9b1c3c7-cd8b-4595-80e5-bfabd91a6f8b",
"nickname": "Chatr 1",
"numberOfChildren": 2,
"personType": "F",
"status": "ACTIVE"
}
Make a purchase order for an activation.
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
POST /orders/subscription HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
{
"customFields": {
"addressId": "49055",
"areaCode": 21,
"fingerprint": "07db9ebe-3560-4085-85c8-8d39e07af81f",
"iccid": "89553930500000173357",
"origin": "ANDROID"
},
"order": {
"offers": [
{
"id": "a5a1eb05-6f00-4379-8824-61d297119d2b",
"offerType": "CUSTOM",
"price": 1,
"serviceType": "LOCAL_VOICE",
"validityPeriod": "DAY",
"validityValue": 7,
"volumeType": "TIME",
"volumeUnit": "Min",
"volumeValue": 100
},
{
"id": "6e6b0258-9158-431b-8132-d12af42463a1",
"offerType": "CUSTOM",
"price": 8.99,
"serviceType": "NATIONAL_INTERNET",
"validityPeriod": "DAY",
"validityValue": 7,
"volumeType": "DATA",
"volumeUnit": "MB",
"volumeValue": 700
}
]
},
"payment": {
"data": {
"creditCard": {
"brand": "VISA",
"cvv": "000",
"expirationMonth": "08",
"expirationYear": "2018",
"holder": "Poc Chatr 1",
"main": true,
"number": "4271671845280000"
}
},
"method": "CREDIT_CARD"
}
}
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
Responses
Body
POST /customers/address HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
{
"city": "Toronto",
"country": "CANADA",
"name": "PRINCIPAL",
"state": "Ontario",
"street": "123 Broad St",
"zipCode": "A2A 2A3"
}
{code}
Path variables
Request headers
Responses
Body
GET /terms/type/ADHERENCY HTTP/1.1
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
Content-Type: application/json
{
"content": "<h1>chatr™ terms of service - 2017</h1><h3> <strong><font color=\"#5c2d90\">1. Introductory Information</font></strong></h3><strong><p>a. How do the chatr Terms of Service apply to me?</p></strong><p>These chatr Terms of Service (\"<strong>Terms</strong>\") govern your use of:</p><p> i. the mobile services that you receive from or through chatr (\"<strong>Services</strong>\"); and<br> ii. any phone, device or equipment used to access the Services or used with the Services (\"<strong>Equipment</strong>\").</p><p>In these Terms, \"<strong>chatr</strong>\",...",
"type": "ADHERENCY",
"created": "2017-08-01T00:00:01.000000",
"status": "ACTIVE"
}
{id}
List the availabes credits cards of a Customer
Request headers
Authentication key of application
Realwave application ID (Segment)
Responses
Body
GET /billing/credit-cards HTTP/1.1
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "6505",
"lastDigits": "6175",
"brand": "VISA",
"expirationMonth": "10",
"expirationYear": "2023",
"holder": "Poc Rogers 1",
"main": false,
"active": true
},
{
"id": "15650",
"lastDigits": "4016",
"brand": "MASTERCARD",
"expirationMonth": "11",
"expirationYear": "2017",
"holder": "Poc Rogers 2",
"main": true,
"active": true
}
]
Adds a new credit card to the platform and performs a charge to validate the credit card
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
Responses
Body
POST /billing/credit-cards HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
{
"brand": "MASTERCARD",
"cvv": 118,
"expirationMonth": "06",
"expirationYear": "2023",
"holder": "Poc Rogers 1",
"number": "5204050634004509"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "15658",
"lastDigits": "4509",
"brand": "MASTERCARD",
"expirationMonth": "06",
"expirationYear": "2023",
"holder": "Poc Rogers 1",
"main": true,
"active": true
}
{id}
Changes a customer credit card to default. The standard card is used as for example in recurrences
Path variables
Request headers
Authentication key of application
Realwave application ID (Segment)
Responses
PUT /billing/credit-cards/1234 HTTP/1.1
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
HTTP/1.1 200 OK
{code}
Show items in the current shopping cart
Request headers
Authentication key of application
Realwave application ID (Segment)
Responses
Body
GET /orders/cart HTTP/1.1
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
HTTP/1.1 200 OK
Content-Type: application/json
{
"items": [
{
"id": "996bfcfb-8ecb-43de-98fc-0e15cae7a18f",
"offerType": "CUSTOM",
"serviceType": "VOICE_LOCAL",
"volumeUnit": "Min",
"volumeValue": 200,
"volumeType": "TIME",
"price": 5,
"validityPeriod": "DAY",
"validityValue": 30
},
{
"id": "21feca7c-7328-42a0-b7bb-4df0b170e680",
"offerType": "CUSTOM",
"serviceType": "NATIONAL_INTERNET",
"volumeUnit": "GB",
"volumeValue": 1.5,
"volumeType": "DATA",
"price": 34.99,
"validityPeriod": "DAY",
"validityValue": 30
}
]
}
Save the shopping cart with the offers that the customer selected
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
Responses
POST /orders/cart HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
{
"items": [
{
"id": "95d0fa93-8b59-4a17-9c4e-8898278e2aea",
"offerType": "CUSTOM",
"volumeUnit": "GB",
"volumeValue": 1.5,
"price": 0
},
{
"id": "6747ceb9-6896-47ba-aaf3-e7754f78ca06",
"offerType": "CUSTOM",
"volumeUnit": "MINUTES",
"volumeValue": 100,
"price": 0
}
]
}
Make a purchase order
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
In this structure, any custom parameter that the client wishes can be sent
POST /orders HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
{
"customFields": {
"fingerprint": "33d8fc35-f275-4da2-8301-49da9ac7985c",
"origin": "ANDROID"
},
"order": {
"offers": [
{
"id": "00eabecc-6010-4ebc-a558-4b651a3100a4",
"offerType": "ADDON",
"price": 30,
"refillType": "MANUAL",
"validityPeriod": 30,
"volumeUnit": "GB",
"volumeValue": 5
}
]
},
"payment": {
"method": "CREDIT_CARD"
}
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"orderId": 246863,
"orderStatus": "PENDING",
"transactionId": "9e30468c-2b7d-41bf-bff9-722eeb993e7e"
}
Change the customer’s subscription plan for the selected offer
Request headers
Authentication key of application
Realwave application ID (Segment)
Request body
PUT /orders/subscription HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
{
"customFields": {
"fingerprint": "c89359e8-08c7-46bf-ba7a-6b632902551b",
"origin": "ANDROID"
},
"order": {
"offers": [
{
"id": "a472160d-9013-4a4b-844f-40cf4064d47f",
"offerType": "CUSTOM",
"price": 11.99,
"validityPeriod": 7,
"volumeUnit": "GB",
"volumeValue": 1
},
{
"id": "a5a1eb05-6f00-4379-8824-61d297119d2b",
"offerType": "CUSTOM",
"price": 1,
"validityPeriod": 7,
"volumeUnit": "MINUTES",
"volumeValue": 100
}
]
}
}
{code}
Path variables
Request headers
GET /cupom/{code} HTTP/1.1
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
HTTP/1.1 200 OK
Content-Type: application/json
{
"description": null,
"discountType": "PRICE",
"discountValue": 10,
"name": "Coupon Name",
"type": "DISCOUNT"
}
{type}
/{year}
/{month}
Shows real-time consumption of all customer offerings
Request headers
Authentication key of application
Realwave application ID (Segment)
Responses
Body
GET /consumptions HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
HTTP/1.1 200 OK
Content-Type: application/json
{
"msisdn": "5534999998888",
"renewalDate": "2017-07-13T23:59:59.999",
"expirationDays": 3,
"expired": true,
"bundlePrice": 39.99,
"bundles": [
{
"id": "368329",
"serviceType": "LOCAL_VOICE",
"rechargeVolume": 12000,
"remainingVolume": 11790,
"formattedRechargeVolume": 200,
"formattedRemainingVolume": 196.5,
"formattedUsedVolume": 3.5,
"formattedRechargeVolumeUnit": "Min",
"formattedRemainingVolumeUnit": "Min",
"formattedUsedVolumeUnit": "Min",
"expirationDate": "2017-07-14T12:00:00.000",
"period": "30",
"periodUnit": "DAY",
"price": 5,
"refillType": "AUTO",
"offerType": "CUSTOM",
"current": true,
"isBonus": true
},
{
"id": "368327",
"serviceType": "NATIONAL_INTERNET",
"rechargeVolume": 0,
"remainingVolume": 0,
"formattedRechargeVolume": 1.5,
"formattedRemainingVolume": 0,
"formattedUsedVolume": 1.5,
"formattedRechargeVolumeUnit": "GB",
"formattedRemainingVolumeUnit": "GB",
"formattedUsedVolumeUnit": "GB",
"expirationDate": "2017-07-13T23:59:59.999",
"period": "30",
"periodUnit": "DAY",
"price": 34.99,
"refillType": "AUTO",
"offerType": "CUSTOM",
"current": false,
"isBonus": false
}
],
"offers": [
{
"id": "403553",
"serviceType": "LOCAL_VOICE",
"rechargeVolume": 143,
"remainingVolume": 143,
"formattedRechargeVolume": 2.38,
"formattedRemainingVolume": 2.38,
"formattedUsedVolume": 1,
"formattedRechargeVolumeUnit": "Min",
"formattedRemainingVolumeUnit": "Min",
"formattedUsedVolumeUnit": "Min",
"expirationDate": "2017-07-21T12:00:00.000",
"period": "30",
"periodUnit": "DAY",
"price": 1,
"refillType": "MANUAL",
"offerType": "COUNTERCHARGE",
"current": true,
"isBonus": true
}
]
}
Shows all the financial transactions of a customer
Request headers
Authentication key of application
Realwave application ID (Segment)
Responses
Body
Lists the plans according to the customer profile
Request parameters
Request headers
Responses
Body
GET /rto/plans HTTP/1.1
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "0d43114f-a499-479e-bca2-e5854de21648",
"price": 20,
"name": "Local Talk Plan",
"validityPeriod": "DAY",
"validityValue": 30,
"products": [
{
"name": "Unlimited Local Calls",
"volumeValue": 9999,
"volumeType": "TIME",
"volumeTypeUnit": "MINUTES",
"productTypeCode": "VOICE_LOCAL"
}
]
},
{
"id": "5aaa337c-7a30-47d9-81a8-edf05e2b4247",
"price": 25,
"name": "Talk + Text Starter Pack",
"validityPeriod": "DAY",
"validityValue": 30,
"products": [
{
"name": "Unlimited Local Calls",
"volumeValue": 9999,
"volumeType": "TIME",
"volumeTypeUnit": "MINUTES",
"productTypeCode": "VOICE_LOCAL"
},
{
"name": "100 International Text",
"volumeValue": 100,
"volumeType": "UNITS",
"volumeTypeUnit": "UNITS",
"productTypeCode": "SMS_INTERNATIONAL"
}
]
},
{
"id": "ae5ad23f-c9f1-4f3d-804c-53d8c4a2f8c6",
"price": 30,
"name": "Talk, Text and 6GB Data",
"validityPeriod": "DAY",
"validityValue": 30,
"products": [
{
"name": "Unlimited International Calls",
"volumeValue": 9999,
"volumeType": "TIME",
"volumeTypeUnit": "MINUTES",
"productTypeCode": "VOICE_INTERNATIONAL"
},
{
"name": "Unlimited International Text",
"volumeValue": 9999,
"volumeType": "UNITS",
"volumeTypeUnit": "UNITS",
"productTypeCode": "SMS_INTERNATIONAL"
},
{
"name": "Data 6GB",
"volumeValue": 6,
"volumeType": "DATA",
"volumeTypeUnit": "GB",
"productTypeCode": "DATA_PLAN"
}
]
},
{
"id": "604d855f-38fa-4e8f-821e-24edd3177ef5",
"price": 60,
"name": "Test Package",
"validityPeriod": "DAY",
"validityValue": 30,
"products": [
{
"name": "Data 10GB",
"volumeValue": 10,
"volumeType": "DATA",
"volumeTypeUnit": "GB",
"productTypeCode": "DATA_PLAN"
},
{
"name": "Unlimited International Calls",
"volumeValue": 9999,
"volumeType": "TIME",
"volumeTypeUnit": "MINUTES",
"productTypeCode": "VOICE_INTERNATIONAL"
}
]
}
]
List the addons according to the client profile
Request headers
Authentication key of application
Realwave application ID (Segment)
Responses
Body
GET /rto/addons HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"expiration": 15,
"products": [
{
"code": "DATA_ADDON",
"mandatory": false,
"offers": [
{
"id": "ac967516-0ed5-420b-a352-4208a03d54b9",
"name": "Data Addon 2GB",
"offerType": "ADDON",
"volumeValue": 2,
"volumeUnit": "GB",
"price": 15,
"focus": false
}
]
}
]
},
{
"expiration": 7,
"products": [
{
"code": "DATA_ADDON",
"mandatory": false,
"offers": [
{
"id": "463bacbe-617f-4cf4-9986-06afda3af53a",
"name": "Data Addon 1GB",
"offerType": "ADDON",
"volumeValue": 1,
"volumeUnit": "GB",
"price": 10,
"focus": false
}
]
}
]
}
]
Request headers
Request body
Responses
Body
GET /locations/stores HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"latitude": 43.651189,
"longitude": -79.384465,
"address":{
"street": "Queen Street West Toronto",
"number": "123",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M5H3M9",
"complement": ""
}
},{
"latitude": 43.654754,
"longitude": -79.368901,
"address":{
"street": "Queen St E Toronto",
"number": "230 ",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M5A 1S3",
"complement": ""
}
},{
"latitude": 43.656501,
"longitude": -79.435589,
"address":{
"street": "Dufferin St.",
"number": "900",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M4H4A9",
"complement": "Unit 0455"
}
},{
"latitude": 43.653544,
"longitude": -79.379984,
"address":{
"street": "Yonge St,",
"number": "218",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M5B 2P9",
"complement": ""
}
},{
"latitude": 43.655838,
"longitude": -79.381964,
"address":{
"street": "Dundas St W",
"number": "65",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M5G 2C3",
"complement": ""
}
},{
"latitude": 43.643836,
"longitude": -79.386778,
"address":{
"street": "Front St W",
"number": "255",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M5V 2W6",
"complement": ""
}
},{
"latitude": 43.656643,
"longitude": -79.377479,
"address":{
"street": "Dundas St. E. Toronto",
"number": "104",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "",
"complement": ""
}
},{
"latitude": 43.656036 ,
"longitude": -79.380246,
"address":{
"street": "Dundas St E Toronto",
"number": "1",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M5B 2R8",
"complement": ""
}
},{
"latitude": 43.644609 ,
"longitude": -79.370053,
"address":{
"street": "Lower Jarvis Street",
"number": "10",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M5E 1Z2",
"complement": ""
}
},{
"latitude": 43.671066 ,
"longitude": -79.385743,
"address":{
"street": "Bloor Street East",
"number": "2",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M4W 1A8",
"complement": "Unit C10"
}
},{
"latitude": 43.667914 ,
"longitude": -79.369676,
"address":{
"street": "Parliament St",
"number": "588",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "",
"complement": ""
}
},{
"latitude": 43.671067 ,
"longitude": -79.385743,
"address":{
"street": "Bloor St East",
"number": "2",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M4W 1A8",
"complement": "Unit C12"
}
},{
"latitude": 43.656221 ,
"longitude": -79.435576,
"address":{
"street": "Dufferin St",
"number": "900",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M6H 4A9",
"complement": ""
}
},{
"latitude": 43.661004 ,
"longitude": -79.328335,
"address":{
"street": "Leslie Street",
"number": "17",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M4M 3H9",
"complement": ""
}
},{
"latitude": 43.667504 ,
"longitude": -79.442086,
"address":{
"street": "Dupont Street",
"number": "1245",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M6H 2A6",
"complement": ""
}
},{
"latitude": 43.667948 ,
"longitude": -79.484677,
"address":{
"street": "St Clair Ave W",
"number": "2525",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M6N 4Z5",
"complement": ""
}
},{
"latitude": 43.677155 ,
"longitude": -79.495851,
"address":{
"street": "Jane Street",
"number": "885A",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M6N 4C4",
"complement": ""
}
},{
"latitude": 43.695457,
"longitude": -79.450700,
"address":{
"street": "Eglinton Ave West Toronto",
"number": "1855",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M6E 2J3",
"complement": ""
}
},{
"latitude": 43.689680,
"longitude": -79.290668,
"address":{
"street": "Danforth Avenue",
"number": "3003",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M4C 1M9",
"complement": ""
}
},{
"latitude": 43.709093,
"longitude": -79.362385,
"address":{
"street": "Laird Drive East York",
"number": "147",
"district": "",
"city": "Toronto",
"state": "Ontario",
"zipCode": "M4G 4K1",
"complement": ""
}
}
]
Request headers
Responses
Body
GET /cities HTTP/1.1
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 11,
"name": "Toronto",
"state": "Ontario",
"areaCode": "416"
}
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": 11,
"name": "Toronto",
"state": "Ontario",
"areaCode": "416"
},
{
"id": 18,
"name": "Vancouver",
"state": "British Columbia",
"areaCode": "604"
},
{
"id": 19,
"name": "Montreal",
"state": "Quebec",
"areaCode": "514"
},
{
"id": 20,
"name": "Ottawa",
"state": "Ontario",
"areaCode": "613"
},
{
"id": 14,
"name": "Quebec",
"state": "Quebec",
"areaCode": "418"
},
{
"id": 21,
"name": "Calgary",
"state": "Alberta",
"areaCode": "587"
},
{
"id": 16,
"name": "Regina",
"state": "Saskatchewan",
"areaCode": "306"
},
{
"id": 5,
"name": "Winnipeg",
"state": "Manitoba",
"areaCode": "204"
},
{
"id": 1,
"name": "Edmonton",
"state": "Alberta",
"areaCode": "780"
}
]
{type}
/{year}
/{month}
Path variables
Request headers
Authentication key of application
Realwave application ID (Segment)
Responses
Body
GET /protocols/{type}/{year}/{month} HTTP/1.1
Content-Type: application/json
X-Application-Key: 0b19dcd0ebdd0134bb84021e75abe44c
X-Application-Id: 9bda286a775a2325177934ed753e3333433a3ae9
X-Customer-Id: 94b6d39d-f263-48ad-9199-74deba21c007
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": 979,
"number": "201720000000979",
"statusDescription": "Closed",
"status": "CLOSED",
"title": "Ticket for Order",
"createdAt": "2017-07-10T10:55:49.912",
"tickets": null
}
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": 979,
"number": "201720000000979",
"statusDescription": "Closed",
"status": "CLOSED",
"title": "Ticket for Order",
"createdAt": "2017-07-10T10:55:49.912",
"tickets": null
},
{
"id": 978,
"number": "201720000000978",
"statusDescription": "Closed",
"status": "CLOSED",
"title": "Ticket for Change password",
"createdAt": "2017-07-10T10:26:20.913",
"tickets": null
},
{
"id": 961,
"number": "201720000000961",
"statusDescription": "Closed",
"status": "CLOSED",
"title": "Ticket for Change password",
"createdAt": "2017-07-10T05:25:39.982",
"tickets": null
},
{
"id": 960,
"number": "201720000000960",
"statusDescription": "Closed",
"status": "CLOSED",
"title": "Ticket for Add payment method",
"createdAt": "2017-07-10T05:22:34.718",
"tickets": null
},
{
"id": 959,
"number": "201720000000959",
"statusDescription": "Closed",
"status": "CLOSED",
"title": "Ticket for Order",
"createdAt": "2017-07-10T05:22:34.659",
"tickets": null
},
{
"id": 958,
"number": "201720000000958",
"statusDescription": "Closed",
"status": "CLOSED",
"title": "Ticket for Change customer details",
"createdAt": "2017-07-10T05:22:34.526",
"tickets": null
}
]
Authentication key of application
Realwave application ID (Segment)
Customer ID
Body
Examples
{
"code": "ERROR_CODE",
"detail": "ERROR_CODE_DETAIL",
"title": "Error title",
"message": "Error message"
}
International Standard for the representation of dates and times
2017-07-10T12:50:08.031