Project

General

Profile

Wiki » History » Version 2

Soh Keong, 03/22/2023 05:12 PM

1 1 Soh Keong
{{toc}}
2
3
h1. Wiki
4
5
h2. Specification
6
7
See [[Specification]]
8
9
h2. Status Code
10
11
h3. SMS status code
12
13
|_.Code |_.Description                                                                                       |
14
|  0	| OK. No error encountered.                                                                          |
15
|  1	| Authorization failed. Invalid mocean-api-key or mocean-api-secret.                                 |
16
|       | NOTE: When this error is encountered, NO SMS is sent to any of the receivers.                      |
17
|  2	| Insufficient balance. Not enough credit in the account to send to at least one of the receivers.   |
18
|  4	| At least one of the destination numbers is not white listed.                                       |
19
|  5	| At least one of the destination numbers is black listed.                                           |
20
|  6	| No destination number specified.                                                                   |
21
|  8	| Sender ID not found.                                                                               |
22
| 19	| Invalid character set or message body.                                                             |
23
| 20	| Insufficient headers for sending SMS.                                                              |
24
| 23	| Empty mocean-text.                                                                                 |
25
| 24	| Unknown error.                                                                                     |
26
| 27	| Max number of receivers in a single request reached. Too many receivers in mocean-to field.        |
27
| 28	| Invalid destination number. Receiver is invalid after stripping all non-numerics.                  |
28
| 29	| Message body is too long.                                                                          |
29
| 32	| Message throttled.                                                                                 |
30
| 34	| Unknown request.                                                                                   |
31
| 37	| Invalid sender length.                                                                             |
32
| 40	| System down for maintenance.                                                                       |
33
| 43	| SMS flooding detected.                                                                             |
34
| 44	| Invalid Sender ID.                                                                                 |
35
| 45	| System error, please try again.                                                                    |
36
| 48	| At least one of the senders is black listed.                                                       |
37
| 49	| At least one of the senders is not white listed.                                                   |
38
| 50	| Inappropriate content detected.                                                                    |
39
| 65	| Destination not found.                                                                             |
40
| 69	| Message contains unsupported character.                                                            |
41
| 70	| Invalid service                                                                                    |
42
| 73	| Destination number and sender are blacklisted                                                      |
43
44
For more status code, pls refer to https://moceanapi.com/docs/?java#send-sms
45
46
h3. OTP status code
47
48
|_.Code |_.Description                                                                                       |
49
|  0	| OK. No error encountered.                                                         |
50
|  1	| Throttled error. You are trying to send more than allowed requests per minute.    |
51
|  2	| Authorization failed. Invalid mocean-api-key or mocean-api-secret.                |
52
|  	| (NOTE: When this error is encountered, NO Request is sent to the receiver.)       |
53
|  3	| System error, please try again.                                                   |
54
|  4	| Missing mandatory parameter: brand                                                |
55
|  5	| Missing mandatory parameter: receiver                                             |
56
|  6	| Invalid destination number. Receiver is invalid after stripping all non-numerics. |
57
|  7	| Missing mandatory parameter: request id                                           |
58
|  8	| Missing mandatory parameter: pin code                                             |
59
|  9	| Brand provided is too long.                                                       |
60
| 10	| Sender id provided is too long.                                                   |
61
| 11	| Code length provided is unsupported.                                              |
62
| 13	| Pin validity provided is invalid, valid range is between 60 and 3600 seconds.     |
63
| 15	| Incorrect code was provided too many times. Maximum retry limit is 3.             |
64
| 16	| The code inserted does not match the expected value.                              |
65
| 17	| Associated verify request has already expired or invalid.                         |
66
| 18	| Insufficient balance. Not enough credit in the account for verification.          |
67
| 20	| The request could not be routed.                                                  |
68
| 21	| System error, request could not be processed.                                     |
69
| 22	| Unknown request.                                                                  |
70
| 25	| Rejected due to phone number is not reachable or invalid.                         |
71
| 	| (Only applicable to pay-per-attempt API with opt-in Number Lookup.)               |
72
73
For more status code, pls refer to https://moceanapi.com/docs/?java#verify-code
74
75 2 Soh Keong
h2. Test link
76
77
"SMS":http://202.129.164.38:8442/TestPage/page/message/sendMoceanSms
78
"OTP":http://202.129.164.38:8442/TestPage/page/message/sendMoceanOTP
79 1 Soh Keong
80
h2. SCM
81
82
<pre>
83
Host: cwapp4 [IP address:192.168.2.66]
84
Path: /cvs/ecoswayNew
85
Module: Mocean
86
Tag: HEAD
87
</pre>