-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add timeout section * fix typo
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Timeout | ||
|
||
Timeouts can be set by partners when making requests to our API. This allows partners to control the maximum duration for which they are willing to wait for a response from our server. | ||
|
||
## Timeout Durations for OY's API | ||
|
||
Below is the list of timeout durations for OY's API: | ||
|
||
API | Timeout in seconds | ||
---------- | ------- | ||
E-Wallet Aggregator | 60 | ||
|
||
## Setting Timeout | ||
|
||
Partners can set the timeout by including the `timeout` parameter in the request headers. The value of the `timeout` parameter should be specified in seconds. | ||
|
||
## Example | ||
|
||
```http | ||
POST https://partner.oyindonesia.com/api/e-wallet-aggregator/create-transaction | ||
Host: partner.oyindonesia.com | ||
Content-Type: application/json | ||
X-Oy-Username: yourusername | ||
X-Api-Key: yourapikey | ||
Timeout: 60 | ||
``` | ||
|
||
In this example, the partner is setting a timeout of 60 seconds for the request to POST /api/e-wallet-aggregator/create-transaction. Please note that OY's server will respond within this specified timeout duration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters