Close
logo

Custom Payment Settlements

Git RepositoryEdit on Github
Last update: 2 years ago by luigi mangaReading time: 2 min

Vendor payments can usually be settled manually or upon specific events happening within Onport's platform (e.g. after shipping).

However, some custom integrations may require an external system to perform a payment settlement. This could be a bi-weekly job to generate transfers against a given dropship Provider Id or set of ids.

The following cURL request settles a transfer for an array of invoices specified in the toPay array.

curl --request POST \
--url https://api.jetti.io/api/dropship-providers/:id/settle-transfer.json \
--header 'Authorization: Bearer {{token}}' \
--header 'Content-Type: application/json' \
--data '{"toPay":[id],"additionalAmount":0,"name":"name","paymentMethodId":id}'

The paymentMethodId will need to match one of the payment method Ids available at https://app.jetti.io/payment-methods. Once you open the single Payment Method, you will be able to find the Id in the URL bar.

๐Ÿ’ฒ Payments โ€” Previous
Custom Payment Method
Next โ€” ๐Ÿ” Recipes
Allow-list of IP addresses for Onport resources