Flow | Status Code | State(Success/Failed) | Returns | Explanation |
---|
Account Linking | 200 | Success | Account exist & linked | Account existed and linking is already successful |
| 201 | Success | PENDING | Account linking not completed, waiting for action from user |
| 202 | Failed | Internal server error | Please refer to the error message specified |
| 310 | Failed | Malformed data | validation error on one of the fields |
| 400 | Failed | Bad request | Something wrong in the request sent |
| 401 | Failed | Unauthorized | Please recheck authorization credentials |
| 9xx | Failed | server problem | Intermittent gopay error |
Account Enquiry | 200 | Success | Success | Account info returned |
| 201 | Success | Pending | Account linking process hasn't been completed |
| 400 | Failed | Bad request | Something wrong in the request sent |
| 404 | Failed | Not found | Account you want to check does not exist |
Create Transaction | 200 | Success | Create transaction success | Transaction created successfully, no action needed |
| 201 | Success | Pending | Transaction pending, action needed |
| 202 | Failed | Denied | Transaction denied |
| 400 | Failed | Bad request | Something wrong in the request sent |
| 401 | Failed | Unauthorized | Please recheck authorization credentials |
| 502 | Failed | Timeout | Timeout from gopay during creation |
Unlink Account | 204 | Success | Account disabled | Account unlinked successfully |
| 202 | Failed | Authentication error | Recheck account authentication |
| 400 | Failed | Bad request | Something wrong in the request sent |
| 401 | Failed | Unauthorized | Please recheck authorization credentials |
| 404 | Failed | Not found | Account does not exist |