Fee Tutorial
Last updated
Was this helpful?
Last updated
Was this helpful?
The Fee Service allows you to manage additional fees that you want to connect to specific items. For example, you can add a fee and link it to a product or a payment type.
Follow these steps to create a fee and connect it to a product.
Create a fee
To create a fee in the system, send the request to the endpoint.
Make sure you provide the relevant siteCode
of a site that you want to apply the fee to.
In the request path parameter, provide the productId
to add the fee to.
The siteCode
in the query parameter must correspond to the site you've created the fee for.
The Fee Service supports adding fees to payments methods. See the example of creating a fee for a payment type.
Notice the part of itemYrn
contains the payment mode code
which is identical with the fee code
.
This operation overwrites the item's fees. For each payment mode you can create and connect one fee only.
The response contains the details of the fee applied to the payment for a given site.
Copy the feeId
of the created fee. To add the fee to the specific product, send the request to the endpoint.
To make sure the fee has been added properly, you can send the request to the ) endpoint.
In the query parameter, provide the siteCode
of the specific site the fee was applied to, for example ?siteCode=DE
.
Or, you can check if the fee was applied by sending the request to the endpoint.
First, create a fee by sending the request to the endpoint.
When creating a payment fee, the fee code
has to be identical with the payment mode code
. To check the available payment modes for a given site, make a call to the endpoint first.
Notice the code
in the above payload corresponds to the payment mode code
we want ta apply the fee to.
Copy the feeId
. To connect the fee to the specific payment type, create the item fee by sending the request to the endpoint
and specify the itemYrn
of the chosen payment type in the request body.
Apply the fee to the payment mode. Make a call to the endpoint.
You need to specify the itemYrn
of the chosen payment type in the request path and pass the feeId
in the body.
To make sure the fee has been applied to the payment, send the request to the endpoint.
To test the endpoint, open the API reference below or check the example of a curl request.
To test the endpoint, open the API reference below or check the example of a curl request.
To test the endpoint, open the API reference below or check the example of a curl request.
To test the endpoint, open the API reference below or check the example of a curl request.
To test the endpoint, open the API reference below or check the example of a curl request.
To test the endpoint, open the API reference below or check the example of a curl request.
To test the endpoint, open the API reference below or check the example of a curl request.
To test the endpoint, open the API reference below or check the example of a curl request.