Skip to content

Commit

Permalink
add account linking
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmadiantio committed Apr 25, 2024
1 parent 982aad2 commit 357b714
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions source/includes/_api_account_linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ print(data.decode("utf-8"))

### Response Parameters

|Parameter |Type |Description |
|--- |--- |--- |
|success |Boolean |Will be `true` if the account linking process is successful and vice versa |
|error |Object |Error detail of the account linking process in Object `{code: <error_code>, message: <error_message>}`. This value is not null if the value of field `success` is `false` |
|data |Object |Account linking data, the detail will be explained in the next section |
|reason |String(255) |Will be filled with error reason if the linking status is failed |
|status_code |Integer |Will be `200` if the account linking process is success and will be the same as error code if the linking process is failed |
|Parameter |Type | Nullable |Description |
|--- |--- | ----- |--- |
|success |Boolean | FALSE |Will be `true` if the account linking process is successful and vice versa |
|error |Object | FALSE |Error detail of the account linking process in Object `{code: <error_code>, message: <error_message>}`. This value is not null if the value of field `success` is `false` |
|data |Object | FALSE |Account linking data, the detail will be explained in the next section |
|reason |String(255) | FALSE |Will be filled with error reason if the linking status is failed |
|status_code |Integer | FALSE |Will be `200` if the account linking process is success and will be the same as error code if the linking process is failed |

### Account Linking Response Data

Expand Down Expand Up @@ -463,13 +463,13 @@ print(data.decode("utf-8"))

### Response Parameters

|Parameter |Type |Description |
|--- |--- |--- |
|success |Boolean |Will be `true` if the account linking process is successful and vice versa |
|error |Object |Error detail of the account linking process in Object `{code: <error_code>, message: <error_message>}`. This value is not null if the value of field `success` is `false` |
|data |Object |Account linking data, the detail will be explained in the next section |
|reason |String(255) |Will be filled with error reason if the linking status is failed |
|status_code |Integer |Will be `200` if the account linking process is success and will be the same as error code if the linking process is failed |
|Parameter |Type | Nullable |Description |
|--- |--- | ----- |--- |
|success |Boolean | FALSE |Will be `true` if the account linking process is successful and vice versa |
|error |Object | FALSE |Error detail of the account linking process in Object `{code: <error_code>, message: <error_message>}`. This value is not null if the value of field `success` is `false` |
|data |Object | FALSE |Account linking data, the detail will be explained in the next section |
|reason |String(255) | FALSE |Will be filled with error reason if the linking status is failed |
|status_code |Integer | FALSE |Will be `200` if the account linking process is success and will be the same as error code if the linking process is failed |

### Account Linking Response Data

Expand Down Expand Up @@ -508,15 +508,15 @@ EWALLET | shopeepay_ewallet | Send Callback | -

### Callback Parameters

Parameter | Type | Description
--------- | ---- | -----------
username | String | Partner username
partner_user_id | String | ID generated by Partner for a specific user/customer
payment_method | String | The payment method type that user want to linked to (Currently only support `EWALLET`. In the future we will have another payment method type, such as `CARDS`)
channel_code | String | The payment channel type that user want to linked to (Currently support `dana_ewallet` and `shopeepay_ewallet`)
phone_number |String | The user phone number (format 08xxxxxxxxxx)
status | String | User's account linking status
expiration_time | String | User's account linking expiration time (example: `01/02/2020T15:00:00.000+0000`)
Parameter | Type | Nullable | Description
--------- | ---- | ----- | -----------
username | String | FALSE | Partner username
partner_user_id | String | FALSE | ID generated by Partner for a specific user/customer
payment_method | String | FALSE | The payment method type that user want to linked to (Currently only support `EWALLET`. In the future we will have another payment method type, such as `CARDS`)
channel_code | String | FALSE | The payment channel type that user want to linked to (Currently support `dana_ewallet` and `shopeepay_ewallet`)
phone_number |String | FALSE | The user phone number (format 08xxxxxxxxxx)
status | String | FALSE | User's account linking status
expiration_time | String | FALSE | User's account linking expiration time (example: `01/02/2020T15:00:00.000+0000`)

- Other than that, at the end of account linking process, we will redirect the user to your redirect page with `partner_user_id` and result status embedded in your redirect URL. You could set your redirect url on your [dashboard](https://desktop-business.oyindonesia.com/settings/developer-options) on tab `Redirect URL`. Below are the example of redirect url result.

Expand Down Expand Up @@ -734,12 +734,12 @@ print(data.decode("utf-8"))

### Response Parameters

|Parameter |Type |Description |
|--- |--- |--- |
|status |Object |Status of response in Object `{code: <status_code>, message: <status_message>}`. |
|partner_user_id |String(255) |ID generated by Partner for a specific user/customer |
|channel_code |String(255) |The payment channel type (Currently support `dana_ewallet` and `shopeepay_ewallet`) |
|amount |BigDecimal |User e-wallet balance amount |
|Parameter |Type | Nullable |Description |
|--- |--- | ----- |--- |
|status |Object | FALSE |Status of response in Object `{code: <status_code>, message: <status_message>}`. |
|partner_user_id |String(255) | FALSE |ID generated by Partner for a specific user/customer |
|channel_code |String(255) | FALSE |The payment channel type (Currently support `dana_ewallet` and `shopeepay_ewallet`) |
|amount |BigDecimal | FALSE |User e-wallet balance amount |

## Response Codes

Expand Down

0 comments on commit 357b714

Please sign in to comment.