Custom Payment Settlements
Last update: 4 months 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.