Skip to main content

Transaction Cost

Introduction

The "Transaction Cost" feature allows users to retrieve the cost of a transaction by making an HTTP GET request to our API. This documentation provides details on how to retrieve transaction cost and includes code examples in various programming languages.

Retrieving Transaction Cost

To retrieve transaction cost, users need to make an HTTP GET request to the specified endpoint with the required parameters.

Endpoint

https://api.mypayd.app/api/v1/transaction-costs?amount=100&type=withdrawal&channel=mobile

Authorization

Users need to include basic authentication credentials in the request headers.

AUTHORIZATION: Basic Auth

Username <username>
Password <password>

Params

amount   100
type withdrawal or bank
channel mobile

Code Examples

Below are code examples in different programming languages demonstrating how to retrieve transaction cost using an HTTP GET request.

curl --location 'https://api.mypayd.app/api/v1/transaction-costs?amount=100&type=withdrawal&channel=mobile' \
--data ''

Conclusion

The "Transaction Cost" feature provides a convenient way for users to calculate the cost of a transaction before initiating it. By following the instructions outlined in this documentation, users can easily integrate transaction cost retrieval into their applications or services.