Skip to content

Commit

Permalink
Add deactivate payment routing documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Harits514 committed Dec 2, 2024
1 parent 20c57f7 commit 680f872
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions source/includes/_payment_routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,50 @@ Use those mock receiver bank account for testing Payment Routing purpose. To sim
|1234567893|PENDING|
|1234567894|PENDING FORCE CREDIT|

## Deactivate Payment Routing

Use this API to **deactivate** an existing **QRIS transaction** created via payment routing using the same partner_trx_id inputted at creation.
Currently, only QRIS transaction created with **need_frontend** param set as false are able to be deactivated.

``` shell
curl --location --request DELETE 'https://partner.oyindonesia.com/api/payment-routing/mypartnertrxid123' \
--header 'Content-Type: application/json' \
--header 'x-oy-username: yourusername' \
--header 'x-api-key: apikeymu' \
```

> The above command returns JSON structured similar like this:
```json
{
"status": {
"code": "000",
"message": "Success"
}
}
```

### HTTPS Request
Endpoint:
**[Production]** `DELETE https://partner.oyindonesia.com/api/payment-routing/:partnerTrxId` <br/>
**[Staging]** `DELETE https://api-stg.oyindonesia.com/api/payment-routing/:partnerTrxId`

### Header
| Field | Description | Example |
| ------------- |:-------------:| ---------- |
| x-oy-username |Partner username | username |
| x-api-key | Partner api key | 6e87432c-2726-11ec-9621-0242ac130002 |

### URL Parameters
| Parameter | Type | Required | Description |
| ------------- |:-------------:| :----------: |:-----:|
|partnerTrxId | String | TRUE | Unique id inputted in creation process |

### Response Parameters
| Parameter | Type | Nullable | Description |
| ------------- |:-------------:| ----- | :----------: |
|status|Object| FALSE |Status of response in Object|


## Check Status Payment Routing Transaction

Expand Down

0 comments on commit 680f872

Please sign in to comment.